diff --git a/Applications/DataExplorer/mainwindow.cpp b/Applications/DataExplorer/mainwindow.cpp index 81ec73a23d38ad1d63c585fb580b5a8e63ff9d0d..db380c501d905930383273699bcdf2af2f62ecde 100644 --- a/Applications/DataExplorer/mainwindow.cpp +++ b/Applications/DataExplorer/mainwindow.cpp @@ -64,6 +64,7 @@ #include "MeshLib/IO/FEFLOW/FEFLOWMeshInterface.h" #include "MeshLib/IO/Legacy/MeshIO.h" #include "MeshLib/IO/readMeshFromFile.h" +#include "MeshLib/IO/GmshReader.h" #include "FileIO/GMSHInterface.h" #include "FileIO/TetGenInterface.h" #include "PetrelInterface.h" @@ -565,9 +566,9 @@ void MainWindow::loadFile(ImportFileType::type t, const QString &fileName) else if (t == ImportFileType::GMSH) { std::string msh_name (fileName.toStdString()); - if (FileIO::GMSHInterface::isGMSHMeshFile (msh_name)) + if (MeshLib::IO::GMSH::isGMSHMeshFile (msh_name)) { - std::unique_ptr<MeshLib::Mesh> mesh(FileIO::GMSHInterface::readGMSHMesh(msh_name)); + std::unique_ptr<MeshLib::Mesh> mesh(MeshLib::IO::GMSH::readGMSHMesh(msh_name)); if (mesh) _meshModel->addMesh(std::move(mesh)); else diff --git a/Applications/Utils/FileConverter/CMakeLists.txt b/Applications/Utils/FileConverter/CMakeLists.txt index 1a2bca68837f80b2e88f848bb144011d55c21e56..1177f49dee479579a5693fcc8fa5a099446dcf47 100644 --- a/Applications/Utils/FileConverter/CMakeLists.txt +++ b/Applications/Utils/FileConverter/CMakeLists.txt @@ -30,7 +30,7 @@ set_target_properties(generateMatPropsFromMatID add_executable(GMSH2OGS GMSH2OGS.cpp) set_target_properties(GMSH2OGS PROPERTIES FOLDER Utilities) -target_link_libraries(GMSH2OGS MeshLib FileIO) +target_link_libraries(GMSH2OGS MeshLib) ADD_VTK_DEPENDENCY(GMSH2OGS) add_executable(OGS2VTK OGS2VTK.cpp) diff --git a/Applications/Utils/FileConverter/GMSH2OGS.cpp b/Applications/Utils/FileConverter/GMSH2OGS.cpp index 5fbdaa41658af5fcf96bc778ba569cb509a57e7d..0fa07708d33d12cd7dffe35691136c56748a727a 100644 --- a/Applications/Utils/FileConverter/GMSH2OGS.cpp +++ b/Applications/Utils/FileConverter/GMSH2OGS.cpp @@ -28,8 +28,7 @@ #include "MemWatch.h" #endif -// FileIO -#include "FileIO/GMSHInterface.h" +#include "MeshLib/IO/GmshReader.h" #include "MeshLib/IO/writeMeshToFile.h" #include "MeshLib/MeshSearch/ElementSearch.h" @@ -74,7 +73,8 @@ int main (int argc, char* argv[]) #endif BaseLib::RunTime run_time; run_time.start(); - MeshLib::Mesh * mesh(FileIO::GMSHInterface::readGMSHMesh(gmsh_mesh_arg.getValue())); + MeshLib::Mesh* mesh( + MeshLib::IO::GMSH::readGMSHMesh(gmsh_mesh_arg.getValue())); if (mesh == nullptr) { INFO("Could not read mesh from %s.", gmsh_mesh_arg.getValue().c_str());