Skip to content

Commit fa4e5b1

Browse files
committed
ouch... stupid mistake
1 parent 34f2e8b commit fa4e5b1

File tree

1 file changed

+2
-1
lines changed
  • source/module_hamilt_general/module_vdw

1 file changed

+2
-1
lines changed

source/module_hamilt_general/module_vdw/vdw.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ std::unique_ptr<Vdw> make_vdw(const UnitCell &ucell,
2828
vdw_ptr->parameter().initial_parameters(input, plog);
2929
return vdw_ptr;
3030
}
31-
else
31+
else if (input.vdw_method != "none")
3232
{
3333
ModuleBase::WARNING_QUIT("ModuleHamiltGeneral::ModuleVDW::make_vdw",
3434
"Unrecognized Van der Waals correction method: " + input.vdw_method);
3535
return nullptr;
3636
}
37+
return nullptr; // "none" method
3738
}
3839

3940
} // namespace vdw

0 commit comments

Comments
 (0)