evaleev / libint

Libint: high-performance library for computing Gaussian integrals in quantum mechanics
Other
225 stars 95 forks source link

make Engine civil wrt disabled 1- or 2-body ints #162

Open evaleev opened 4 years ago

evaleev commented 4 years ago

e.g. if 1-body ints support is missing unit tests fail to compile:

5: [ 96%] Building CXX object CMakeFiles/unit_tests.dir/tests/unit/test.cc.o
5: In file included from /Users/evaleev/Downloads/libint-2.7.0-beta.3/tests/unit/test.cc:24:
5: In file included from /Users/evaleev/Downloads/libint-2.7.0-beta.3/include/libint2.hpp:24:
5: In file included from /Users/evaleev/Downloads/libint-2.7.0-beta.3/include/libint2/cxxapi.h:41:
5: In file included from /Users/evaleev/Downloads/libint-2.7.0-beta.3/include/libint2/./engine.h:1019:
5: /Users/evaleev/Downloads/libint-2.7.0-beta.3/include/libint2/./engine.impl.h:276:38: error: no member named '_0_Overlap_0_x' in 'Libint_t'
5:             result += primdata_[p12]._0_Overlap_0_x[0] *
5:                       ~~~~~~~~~~~~~~ ^
5: /Users/evaleev/Downloads/libint-2.7.0-beta.3/include/libint2/./engine.impl.h:277:38: error: no member named '_0_Overlap_0_y' in 'Libint_t'
5:                       primdata_[p12]._0_Overlap_0_y[0] *
5:                       ~~~~~~~~~~~~~~ ^
5: /Users/evaleev/Downloads/libint-2.7.0-beta.3/include/libint2/./engine.impl.h:278:38: error: no member named '_0_Overlap_0_z' in 'Libint_t'
5:                       primdata_[p12]._0_Overlap_0_z[0];
5:                       ~~~~~~~~~~~~~~ ^
5: /Users/evaleev/Downloads/libint-2.7.0-beta.3/include/libint2/./engine.impl.h:284:38: error: no member named '_aB_s___0___ElecPot_s___0___Ab__up_0' in 'Libint_t'
5:             result += primdata_[p12].LIBINT_T_S_ELECPOT_S(0)[0];
5:                       ~~~~~~~~~~~~~~ ^
5: /Users/evaleev/Downloads/libint-2.7.0-beta.3/include/libint2.h:31:38: note: expanded from macro 'LIBINT_T_S_ELECPOT_S'
5: #define LIBINT_T_S_ELECPOT_S(mValue) _aB_s___0___ElecPot_s___0___Ab__up_##mValue
5:                                      ^
5: <scratch space>:34:1: note: expanded from here
5: _aB_s___0___ElecPot_s___0___Ab__up_0
5: ^

this is related to #161