Skip to content

Commit 036af83

Browse files
author
Fei Yang
committed
change BFGS name and make lattice_change_cg and ions_move_cg shorter
1 parent e3baf15 commit 036af83

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/source_io/read_input_item_relax.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ void ReadInput::item_relax()
1414
item.annotation = "cg [param]; bfgs [param]; ...";
1515
read_sync_string(input.relax_method);
1616
item.read_value = [](const Input_Item& item, Parameter& para) {
17-
std::istringstream iss(para.input.relax_method);
18-
iss >> para.input.relax_method_param.method;
19-
if (!(iss >> para.input.relax_method_param.param)) {
17+
std::istringstream iss(para.input.relax_method);
18+
iss >> para.input.relax_method_param.method;
19+
if (!(iss >> para.input.relax_method_param.param)) {
2020
para.input.relax_method_param.param = 1;
21-
}
22-
};
21+
}
22+
};
2323
item.check_value = [](const Input_Item& item, const Parameter& para) {
2424
const std::vector<std::string> relax_methods = {"cg", "sd","bfgs_old" "cg_bfgs","bfgs","lbfgs"};
2525
if (std::find(relax_methods.begin(), relax_methods.end(), para.input.relax_method_param.method) == relax_methods.end()) {

0 commit comments

Comments
 (0)