Commit 7dd32473 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

MeshConverter: progress logs should be STATUS level

parent 1cfea8a1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -417,8 +417,8 @@ int main(int argc, char** argv) {
            }

            mesh_points_done += divisions.z();
            LOG_PROGRESS(INFO, "m") << "Interpolating new mesh: " << mesh_points_done << " of " << mesh_points_total << ", "
                                    << (mesh_points_done / (mesh_points_total / 100)) << "%";
            LOG_PROGRESS(STATUS, "m") << "Interpolating new mesh: " << mesh_points_done << " of " << mesh_points_total
                                      << ", " << (mesh_points_done / (mesh_points_total / 100)) << "%";

            return new_mesh;
        };
+4 −4
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ MeshMap DFISEParser::read_meshes(const std::string& file_name) {

        // Log the parsing progress:
        if(num_lines > 0 && num_lines_parsed % 1000 == 0) {
            LOG_PROGRESS(INFO, "gridlines") << "Parsing grid file: " << (100 * num_lines_parsed / num_lines) << "%";
            LOG_PROGRESS(STATUS, "gridlines") << "Parsing grid file: " << (100 * num_lines_parsed / num_lines) << "%";
        }
        num_lines_parsed++;

@@ -352,7 +352,7 @@ MeshMap DFISEParser::read_meshes(const std::string& file_name) {
            break;
        }
    }
    LOG_PROGRESS(INFO, "gridlines") << "Parsing grid file: done.";
    LOG_PROGRESS(STATUS, "gridlines") << "Parsing grid file: done.";

    std::map<std::string, std::vector<Point>> ret_map;
    for(auto& name_region_vertices : regions_vertices) {
@@ -406,7 +406,7 @@ FieldMap DFISEParser::read_fields(const std::string& file_name) {

        // Log the parsing progress:
        if(num_lines > 0 && num_lines_parsed % 1000 == 0) {
            LOG_PROGRESS(INFO, "fieldlines") << "Parsing field data file: " << (100 * num_lines_parsed / num_lines) << "%";
            LOG_PROGRESS(STATUS, "fieldlines") << "Parsing field data file: " << (100 * num_lines_parsed / num_lines) << "%";
        }
        num_lines_parsed++;

@@ -678,7 +678,7 @@ FieldMap DFISEParser::read_fields(const std::string& file_name) {
            }
        }
    }
    LOG_PROGRESS(INFO, "fieldlines") << "Parsing field data file: done.";
    LOG_PROGRESS(STATUS, "fieldlines") << "Parsing field data file: done.";

    return region_electric_field_map;
}