Loading src/libnptm/Configuration.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -340,13 +340,15 @@ GeometryConfiguration* GeometryConfiguration::from_legacy(const std::string& fil // Read optional configuration data used only by the C++ code. while (num_lines > last_read_line) { str_target = file_lines[last_read_line++]; if (str_target.size() > 0) { if (str_target.size() > 15) { if (str_target.substr(0, 15).compare("USE_REFINEMENT=") == 0) { regex_search(str_target, m, re); short refine_flag = (short)stoi(m.str()); conf->_refine_flag = refine_flag; } else if (str_target.substr(0, 14).compare("USE_DYN_ORDER=") == 0) { } if (str_target.size() > 14) { if (str_target.substr(0, 14).compare("USE_DYN_ORDER=") == 0) { regex_search(str_target, m, re); short dyn_order_flag = (short)stoi(m.str()); conf->_dyn_order_flag = dyn_order_flag; Loading Loading
src/libnptm/Configuration.cpp +4 −2 Original line number Diff line number Diff line Loading @@ -340,13 +340,15 @@ GeometryConfiguration* GeometryConfiguration::from_legacy(const std::string& fil // Read optional configuration data used only by the C++ code. while (num_lines > last_read_line) { str_target = file_lines[last_read_line++]; if (str_target.size() > 0) { if (str_target.size() > 15) { if (str_target.substr(0, 15).compare("USE_REFINEMENT=") == 0) { regex_search(str_target, m, re); short refine_flag = (short)stoi(m.str()); conf->_refine_flag = refine_flag; } else if (str_target.substr(0, 14).compare("USE_DYN_ORDER=") == 0) { } if (str_target.size() > 14) { if (str_target.substr(0, 14).compare("USE_DYN_ORDER=") == 0) { regex_search(str_target, m, re); short dyn_order_flag = (short)stoi(m.str()); conf->_dyn_order_flag = dyn_order_flag; Loading