Skip to content

Commit 7fa03ca

Browse files
authored
disable out_mul to prohibit segfault error (#5102)
1 parent 0339173 commit 7fa03ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/module_io/read_input_item_output.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ void ReadInput::item_output()
141141
Input_Item item("out_mul");
142142
item.annotation = "mulliken charge or not";
143143
read_sync_bool(input.out_mul);
144+
item.check_value = [](const Input_Item& item, const Parameter& para) {
145+
if (para.input.basis_type == "pw" && para.input.out_mul)
146+
{
147+
ModuleBase::WARNING_QUIT("ReadInput", "out_mul is only for lcao");
148+
}
149+
};
144150
this->add_item(item);
145151
}
146152
{

0 commit comments

Comments
 (0)