Git Product home page Git Product logo

gftools's People

Contributors

aeantipov avatar dongqy avatar egull avatar hmenke avatar kleinhenz avatar krivenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gftools's Issues

Example01 has bad index when run

Using clang, the example compiles but does complete successfully

...
/Users/user/UMICH/software/gftools/./gftools/real_grid.hpp:155: Invoking find
/Users/user/UMICH/software/gftools/./gftools/real_grid.hpp:158: Point to find is out of bounds, 6.28319>5
libc++abi.dylib: terminating with uncaught exception of type std::logic_error: wrong index: 6.283185
Abort trap: 6

The offending line is here
std::cout << G1(2*PI) << std::endl;


I am running OSX 10.10.5 with clang version:

Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

cmake/UseDoxygen.cmake problem

I believe we had the same issue in ALPSCore and fixed it there: CMake's UseDoxygen complains:

CMake Warning (dev) at cmake/UseDoxygen.cmake:138 (get_target_property):
Policy CMP0045 is not set: Error on non-existent target in
get_target_property. Run "cmake --help-policy CMP0045" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

get_target_property() called with non-existent target "doc".
Call Stack (most recent call first):
CMakeLists.txt:28 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

Example01 fails to compile on GCC 4.8.5

example01.cpp fails to compile on my machine. The compiler error in question:

In file included from /Users/user/UMICH/software/gftools/./gftools/grid_object.hpp:281:0,
                 from /Users/user/UMICH/software/gftools/example/example01.cpp:12:
/Users/user/UMICH/software/gftools/./gftools/grid_object.hxx: In instantiation of 'gftools::grid_object_base<ContainerType, GridTypes>::grid_object_base(const gftools::grid_object_base<ContainerType, GridTypes>&) [with ContainerType = gftools::container<double, 1ul>; GridTypes = {gftools::real_grid}]':
/Users/user/UMICH/software/gftools/./gftools/grid_object.hpp:240:108:   required from 'gftools::grid_object<typename ContainerType::value_type, GridTypes ...> gftools::grid_object_base<ContainerType, GridTypes>::operator+(const gftools::grid_object_base<ContainerType, GridTypes>&) const [with ContainerType = gftools::container<double, 1ul>; GridTypes = {gftools::real_grid}; gftools::grid_object<typename ContainerType::value_type, GridTypes ...> = gftools::grid_object_base<gftools::container<double, 1ul>, gftools::real_grid>; typename ContainerType::value_type = double]'
/Users/user/UMICH/software/gftools/example/example01.cpp:72:30:   required from here
/Users/user/UMICH/software/gftools/./gftools/grid_object.hxx:61:20: error: use of deleted function 'gftools::container<double, 1ul>::container(const gftools::container<double, 1ul>&)'
     tail_(rhs.tail_)
                    ^
In file included from /Users/user/UMICH/software/gftools/example/example01.cpp:10:0:
/Users/user/UMICH/software/gftools/./gftools/container.hpp:244:8: note: 'gftools::container<double, 1ul>::container(const gftools::container<double, 1ul>&)' is implicitly declared as deleted because 'gftools::container<double, 1ul>' declares a move constructor or move assignment operator
 struct container : container_base<ValueType,N,typename boost::multi_array<ValueType, N>> {
        ^

My GCC version

Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/local/libexec/gcc/x86_64-apple-darwin14/4.8.5/lto-wrapper
Target: x86_64-apple-darwin14
Configured with: /opt/local/var/macports/build/_opt_mports_dports_lang_gcc48/gcc48/work/gcc-4.8.5/configure --prefix=/opt/local --build=x86_64-apple-darwin14 --enable-languages=c,c++,objc,obj-c++,lto,fortran,java --libdir=/opt/local/lib/gcc48 --includedir=/opt/local/include/gcc48 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-4.8 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-4.8 --with-gxx-include-dir=/opt/local/include/gcc48/c++/ --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --disable-isl-version-check --with-cloog=/opt/local --disable-cloog-version-check --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --with-pkgversion='MacPorts gcc48 4.8.5_0'
Thread model: posix
gcc version 4.8.5 (MacPorts gcc48 4.8.5_0) 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.