We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1919027 commit bb6a29bCopy full SHA for bb6a29b
1 file changed
source/source_io/module_parameter/read_input_item_ofdft.cpp
@@ -382,6 +382,15 @@ Note: Even dimensions may cause slight errors in FFT. It should be ignorable in
382
item.default_value = "False";
383
item.unit = "";
384
item.availability = "Used only for KSDFT with plane wave basis";
385
+ item.check_value = [](const Input_Item& item, const Parameter& para) {
386
+ if (para.input.of_ml_gene_data
387
+ && (para.input.esolver_type != "ksdft" || para.input.basis_type != "pw" || GlobalV::NPROC != 1))
388
+ {
389
+ ModuleBase::WARNING_QUIT(
390
+ "ReadInput",
391
+ "of_ml_gene_data is only available for KSDFT with PW basis on a single core (NPROC = 1)");
392
+ }
393
+ };
394
read_sync_bool(input.of_ml_gene_data);
395
this->add_item(item);
396
}
0 commit comments