Skip to content
Snippets Groups Projects
Commit 72485e88 authored by wenqing's avatar wenqing
Browse files

Correct a tring name in a ptree

parent d1d9c91e
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ PETScKSP_GMRES_Option(const boost::property_tree::ptree &option)
auto val = option.get_optional<double>("restart_number");
restart_number = *val;
boost::optional<bool> bool_vals = option.get_optional<bool>("is_modified_gram_schmidt_orthog");
boost::optional<bool> bool_vals = option.get_optional<bool>("modified_gram_schmidt");
is_modified_gram_schmidt = *bool_vals;
auto refine_type = option.get_optional<int>("refine_type");
......
......@@ -350,7 +350,7 @@ TEST(Math, CheckInterface_PETSc_Linear_Solver_gmres_amg)
// the default setting will be taken.
boost::property_tree::ptree t_solver_spec;
t_solver_spec.put("restart_number", 20);
t_solver_spec.put("is_modified_ram_schmidt_orthog", false);
t_solver_spec.put("modified_gram_schmidt", false);
t_solver_spec.put("refine_type", 1);
t_solver.put_child("gmres", t_solver_spec);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment