Commit 5747623
dyzheng
fix: add get_spin_constrain_energy stub to hsolver supplementary mock
ElecStatePW::get_spin_constrain_energy() is a new virtual override
that needs a definition in the vtable. Test targets (MODULE_HSOLVER_base,
MODULE_HSOLVER_pw, MODULE_HSOLVER_sdft) compile a mock implementation
of ElecStatePW methods instead of linking elecstate_pw.cpp, and were
missing a stub for this new method, causing:
undefined reference to ElecStatePW::get_spin_constrain_energy()1 parent 797d2a2 commit 5747623
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
62 | 68 | | |
63 | 69 | | |
64 | 70 | | |
| |||
0 commit comments