Skip to content

Commit 20b2214

Browse files
authoredNov 20, 2024
Fix: recover the use of -1 value of out_chg (deepmodeling#5540)
1 parent 0ecfbc4 commit 20b2214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎source/module_io/read_input_item_output.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void ReadInput::item_output()
4545
{
4646
ModuleBase::WARNING_QUIT("ReadInput", "out_chg should have 1 or 2 values");
4747
}
48-
para.input.out_chg[0] = assume_as_boolean(item.str_values[0]);
48+
para.input.out_chg[0] = (item.str_values[0] == "-1")? -1: assume_as_boolean(item.str_values[0]);
4949
para.input.out_chg[1] = (count == 2) ? std::stoi(item.str_values[1]) : 3;
5050
};
5151
item.reset_value = [](const Input_Item& item, Parameter& para) {

0 commit comments

Comments
 (0)
Please sign in to comment.