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 32a7958 commit ceaefdcCopy full SHA for ceaefdc
source/module_io/read_input_item_elec_stru.cpp
@@ -538,6 +538,12 @@ void ReadInput::item_elec_stru()
538
Input_Item item("scf_os_thr");
539
item.annotation = "charge density threshold for oscillation";
540
read_sync_double(input.scf_os_thr);
541
+ item.check_value = [](const Input_Item& item, const Parameter& para) {
542
+ if (para.input.scf_os_thr >= 0)
543
+ {
544
+ ModuleBase::WARNING_QUIT("ReadInput", "scf_os_thr should be negative");
545
+ }
546
+ };
547
this->add_item(item);
548
}
549
{
0 commit comments