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 0ecfbc4 commit 20b2214Copy full SHA for 20b2214
source/module_io/read_input_item_output.cpp
@@ -45,7 +45,7 @@ void ReadInput::item_output()
45
{
46
ModuleBase::WARNING_QUIT("ReadInput", "out_chg should have 1 or 2 values");
47
}
48
- para.input.out_chg[0] = assume_as_boolean(item.str_values[0]);
+ para.input.out_chg[0] = (item.str_values[0] == "-1")? -1: assume_as_boolean(item.str_values[0]);
49
para.input.out_chg[1] = (count == 2) ? std::stoi(item.str_values[1]) : 3;
50
};
51
item.reset_value = [](const Input_Item& item, Parameter& para) {
0 commit comments