We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34f2e8b commit fa4e5b1Copy full SHA for fa4e5b1
source/module_hamilt_general/module_vdw/vdw.cpp
@@ -28,12 +28,13 @@ std::unique_ptr<Vdw> make_vdw(const UnitCell &ucell,
28
vdw_ptr->parameter().initial_parameters(input, plog);
29
return vdw_ptr;
30
}
31
- else
+ else if (input.vdw_method != "none")
32
{
33
ModuleBase::WARNING_QUIT("ModuleHamiltGeneral::ModuleVDW::make_vdw",
34
"Unrecognized Van der Waals correction method: " + input.vdw_method);
35
return nullptr;
36
37
+ return nullptr; // "none" method
38
39
40
} // namespace vdw
0 commit comments