Commit 7e6f180
Zanthoxylum
Fix: compile reciprocal_grid.cpp in deepks unit tests
The ReciprocalGrid refactor made K_Vectors derive from
ModuleCell::ReciprocalGrid, so klist.cpp.o and k_vector_utils.cpp.o now
reference ReciprocalGrid member functions and its vtable. The
deepks_unit_support object library (DEEPKS_UNIT_COMMON_SOURCES, gated
behind ENABLE_MLALGO and thus only compiled in the gnu Test CI job)
compiles klist.cpp without reciprocal_grid.cpp, failing to link all 30
MODULE_LCAO_DEEPKS_* test executables with undefined references to
ModuleCell::ReciprocalGrid::renew/Monkhorst_Pack/build_star_ops/... and
its vtable/typeinfo. Add the missing translation unit to the common
source set; the symmetry library (incl. little_group.cpp) is already on
the link line.1 parent a321bf1 commit 7e6f180
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments