Skip to content

Commit

Permalink
disable out_mul to prohibit segfault error (deepmodeling#5102)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirk0830 authored Sep 14, 2024
1 parent 0339173 commit 7fa03ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/module_io/read_input_item_output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ void ReadInput::item_output()
Input_Item item("out_mul");
item.annotation = "mulliken charge or not";
read_sync_bool(input.out_mul);
item.check_value = [](const Input_Item& item, const Parameter& para) {
if (para.input.basis_type == "pw" && para.input.out_mul)
{
ModuleBase::WARNING_QUIT("ReadInput", "out_mul is only for lcao");
}
};
this->add_item(item);
}
{
Expand Down

0 comments on commit 7fa03ca

Please sign in to comment.