Loading tools/mesh_converter/MeshParser.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ MeshParser::getField(const std::string& file, const std::string& observable, con // Populate field map once: if(field_map_[file].empty()) { LOG(STATUS) << "Reading field from file \"" << file << "\""; field_map_[file] = read_fields(file); field_map_[file] = read_fields(file, observable); LOG(INFO) << "Field sizes for all regions and observables:"; for(auto& reg : field_map_[file]) { LOG(INFO) << " " << reg.first << ":"; Loading tools/mesh_converter/MeshParser.hpp +2 −1 Original line number Diff line number Diff line Loading @@ -55,9 +55,10 @@ namespace mesh_converter { /** * @brief Method to read fields from the given file * @param file_name Canonical path pof the input file * @param observable Optionally the observable of interest, required by some parsers * @return Map with all fields for the different regions */ virtual FieldMap read_fields(const std::string& file_name) = 0; virtual FieldMap read_fields(const std::string& file_name, const std::string& observable = "") = 0; private: // Cache of parsed meshes for all regions Loading tools/mesh_converter/parsers/DFISEParser.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -378,7 +378,7 @@ MeshMap DFISEParser::read_meshes(const std::string& file_name) { return ret_map; } FieldMap DFISEParser::read_fields(const std::string& file_name) { FieldMap DFISEParser::read_fields(const std::string& file_name, const std::string&) { std::ifstream file(file_name); if(!file) { throw std::runtime_error("file cannot be accessed"); Loading tools/mesh_converter/parsers/DFISEParser.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ namespace mesh_converter { MeshMap read_meshes(const std::string& file_name) override; // Read the electric field FieldMap read_fields(const std::string& file_name) override; FieldMap read_fields(const std::string& file_name, const std::string& observable) override; }; } // namespace mesh_converter Loading Loading
tools/mesh_converter/MeshParser.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ MeshParser::getField(const std::string& file, const std::string& observable, con // Populate field map once: if(field_map_[file].empty()) { LOG(STATUS) << "Reading field from file \"" << file << "\""; field_map_[file] = read_fields(file); field_map_[file] = read_fields(file, observable); LOG(INFO) << "Field sizes for all regions and observables:"; for(auto& reg : field_map_[file]) { LOG(INFO) << " " << reg.first << ":"; Loading
tools/mesh_converter/MeshParser.hpp +2 −1 Original line number Diff line number Diff line Loading @@ -55,9 +55,10 @@ namespace mesh_converter { /** * @brief Method to read fields from the given file * @param file_name Canonical path pof the input file * @param observable Optionally the observable of interest, required by some parsers * @return Map with all fields for the different regions */ virtual FieldMap read_fields(const std::string& file_name) = 0; virtual FieldMap read_fields(const std::string& file_name, const std::string& observable = "") = 0; private: // Cache of parsed meshes for all regions Loading
tools/mesh_converter/parsers/DFISEParser.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -378,7 +378,7 @@ MeshMap DFISEParser::read_meshes(const std::string& file_name) { return ret_map; } FieldMap DFISEParser::read_fields(const std::string& file_name) { FieldMap DFISEParser::read_fields(const std::string& file_name, const std::string&) { std::ifstream file(file_name); if(!file) { throw std::runtime_error("file cannot be accessed"); Loading
tools/mesh_converter/parsers/DFISEParser.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -46,7 +46,7 @@ namespace mesh_converter { MeshMap read_meshes(const std::string& file_name) override; // Read the electric field FieldMap read_fields(const std::string& file_name) override; FieldMap read_fields(const std::string& file_name, const std::string& observable) override; }; } // namespace mesh_converter Loading