yingjerkao / uni10

Official Repo for Uni10
28 stars 9 forks source link

-DBUILD_ARPACK_SUPPORT=on does not work #6

Closed rezah closed 8 years ago

rezah commented 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);

yingjerkao commented 8 years ago

Bug reproduced.

yingjerkao commented 8 years ago

@rezah
Please comment out the lanczosEigh in Block.h and Block.cpp or pull the commit 32d1faa