Closed rezah closed 8 years ago
issue with -DBUILD_ARPACK_SUPPORT
cmake works well and finds path to arpak library :
Build APPACK Support: YES ARPACK Libraries: /usr/lib/libarpack.so
But when you use 'make', it finds the following problem:
Building CXX object src/uni10/numeric/arpack/lib/CMakeFiles/uni10-arpack.dir/uni10_arpack.cpp.o
/uni10-develop/uni10/src/uni10/numeric/arpack/lib/uni10_arpack.cpp:34:0: ..../uni10-develop/uni10/src/uni10/numeric/arpack/uni10_arpack.h:39:106: error: default argument given for parameter 4 of ‘size_t uni10::lanczosEigh(uni10::Matrix&, double&, uni10::Matrix&, size_t, double)’ [-fpermissive] size_t lanczosEigh(Matrix& ori_mat, double& E0, Matrix& psi, size_t max_iter=1000, double err_tol = 5E-15);
Bug reproduced.
@rezah Please comment out the lanczosEigh in Block.h and Block.cpp or pull the commit 32d1faa
lanczosEigh
Block.h
Block.cpp
issue with -DBUILD_ARPACK_SUPPORT
cmake works well and finds path to arpak library :
Build APPACK Support: YES ARPACK Libraries: /usr/lib/libarpack.so
But when you use 'make', it finds the following problem:
Building CXX object src/uni10/numeric/arpack/lib/CMakeFiles/uni10-arpack.dir/uni10_arpack.cpp.o
/uni10-develop/uni10/src/uni10/numeric/arpack/lib/uni10_arpack.cpp:34:0: ..../uni10-develop/uni10/src/uni10/numeric/arpack/uni10_arpack.h:39:106: error: default argument given for parameter 4 of ‘size_t uni10::lanczosEigh(uni10::Matrix&, double&, uni10::Matrix&, size_t, double)’ [-fpermissive] size_t lanczosEigh(Matrix& ori_mat, double& E0, Matrix& psi, size_t max_iter=1000, double err_tol = 5E-15);