Skip to content
Snippets Groups Projects
Commit 1ad983ec authored by Tom Fischer's avatar Tom Fischer Committed by Dmitri Naumov
Browse files

[FileIO] Namespace for Gmsh GeoLib::IO -> FileIO.

parent e1ebb60e
No related merge requests found
Showing
with 44 additions and 74 deletions
......@@ -427,9 +427,9 @@ void MainWindow::save()
std::vector<std::string> selected_geometries;
_project.getGEOObjects().getGeometryNames(selected_geometries);
GeoLib::IO::GMSHInterface gmsh_io(
FileIO::GMSH::GMSHInterface gmsh_io(
_project.getGEOObjects(), true,
GeoLib::IO::GMSH::MeshDensityAlgorithm::AdaptiveMeshDensity, 0.05,
FileIO::GMSH::MeshDensityAlgorithm::AdaptiveMeshDensity, 0.05,
0.5, 2, selected_geometries);
gmsh_io.setPrecision(std::numeric_limits<double>::digits10);
bool const success = gmsh_io.writeToFile(fileName.toStdString());
......@@ -904,16 +904,16 @@ void MainWindow::callGMSH(std::vector<std::string> & selectedGeometries,
if (!fileName.isEmpty())
{
if (param4 == -1) { // adaptive meshing selected
GeoLib::IO::GMSHInterface gmsh_io(
FileIO::GMSH::GMSHInterface gmsh_io(
_project.getGEOObjects(), true,
GeoLib::IO::GMSH::MeshDensityAlgorithm::AdaptiveMeshDensity,
FileIO::GMSH::MeshDensityAlgorithm::AdaptiveMeshDensity,
param2, param3, param1, selectedGeometries);
gmsh_io.setPrecision(std::numeric_limits<double>::digits10);
gmsh_io.writeToFile(fileName.toStdString());
} else { // homogeneous meshing selected
GeoLib::IO::GMSHInterface gmsh_io(
FileIO::GMSH::GMSHInterface gmsh_io(
_project.getGEOObjects(), true,
GeoLib::IO::GMSH::MeshDensityAlgorithm::FixedMeshDensity,
FileIO::GMSH::MeshDensityAlgorithm::FixedMeshDensity,
param4, param3, param1, selectedGeometries);
gmsh_io.setPrecision(std::numeric_limits<double>::digits10);
gmsh_io.writeToFile(fileName.toStdString());
......
......@@ -26,9 +26,7 @@
#include "MathLib/MathTools.h"
namespace GeoLib
{
namespace IO
namespace FileIO
{
namespace GMSH
{
......@@ -159,5 +157,4 @@ void GMSHAdaptiveMeshDensity::getQuadTreeGeometry(std::vector<GeoLib::Point*> &p
#endif
}
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
......@@ -21,8 +21,9 @@ template <typename T> class QuadTree;
#ifndef NDEBUG
class Polyline;
#endif
}
namespace IO
namespace FileIO
{
namespace GMSH
{
......@@ -53,7 +54,6 @@ private:
};
}
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
#endif /* GMSHADAPTIVEMESHDENSITY_H_ */
......@@ -10,9 +10,7 @@
#include "GMSHFixedMeshDensity.h"
namespace GeoLib
{
namespace IO
namespace FileIO
{
namespace GMSH
{
......@@ -39,5 +37,4 @@ double GMSHFixedMeshDensity::getMeshDensityAtStation(GeoLib::Point const*const)
}
}
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
......@@ -13,9 +13,7 @@
#include "GMSHMeshDensityStrategy.h"
namespace GeoLib
{
namespace IO
namespace FileIO
{
namespace GMSH
{
......@@ -34,7 +32,6 @@ private:
};
}
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
#endif /* GMSHFIXEDMESHDENSITY_H_ */
......@@ -29,9 +29,9 @@
#include "GeoLib/PolylineWithSegmentMarker.h"
#include "GeoLib/PolygonWithSegmentMarker.h"
namespace GeoLib
namespace FileIO
{
namespace IO
namespace GMSH
{
GMSHInterface::GMSHInterface(GeoLib::GEOObjects& geo_objs,
bool /*include_stations_as_constraints*/,
......@@ -246,5 +246,5 @@ void GMSHInterface::writePoints(std::ostream& out) const
}
}
} // end namespace IO
} // end namespace GeoLib
} // end namespace GMSH
} // end namespace FileIO
......@@ -21,8 +21,9 @@ namespace GeoLib
{
class GEOObjects;
class Polygon;
}
namespace IO
namespace FileIO
{
namespace GMSH
......@@ -37,8 +38,6 @@ enum class MeshDensityAlgorithm {
AdaptiveMeshDensity //!< computing the mesh density employing a QuadTree
};
}
/**
* \brief Reads and writes GMSH-files to and from OGS data structures.
*/
......@@ -115,7 +114,7 @@ private:
bool _rotate = false;
bool _keep_preprocessed_geometry = true;
};
} // end namespace IO
} // end namespace GeoLib
} // end namespace GMSH
} // end namespace FileIO
#endif /* GMSHINTERFACE_H_ */
......@@ -11,9 +11,7 @@
#include <ostream>
#include "GMSHLine.h"
namespace GeoLib
{
namespace IO
namespace FileIO
{
namespace GMSH
{
......@@ -34,5 +32,4 @@ void GMSHLine::resetLineData(std::size_t start_point_id, std::size_t end_point_i
}
} // end namespace GMSH
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
......@@ -13,9 +13,7 @@
#include <iosfwd>
namespace GeoLib
{
namespace IO
namespace FileIO
{
namespace GMSH
{
......@@ -32,7 +30,6 @@ private:
};
} // end namespace GMSH
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
#endif /* GMSHLINE_H_ */
......@@ -13,9 +13,7 @@
#include "GMSHLine.h"
#include "GMSHLineLoop.h"
namespace GeoLib
{
namespace IO
namespace FileIO
{
namespace GMSH
{
......@@ -56,5 +54,4 @@ void GMSHLineLoop::write(std::ostream &os, std::size_t line_offset, std::size_t
}
} // end namespace GMSH
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
......@@ -14,9 +14,7 @@
#include <vector>
#include <iosfwd>
namespace GeoLib
{
namespace IO
namespace FileIO
{
namespace GMSH
{
......@@ -38,7 +36,6 @@ private:
};
} // end namespace GMSH
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
#endif /* GMSHLINELOOP_H_ */
......@@ -16,7 +16,9 @@
namespace GeoLib
{
class Point;
namespace IO
}
namespace FileIO
{
namespace GMSH
{
......@@ -34,7 +36,6 @@ public:
};
} // end namespace GMSH
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
#endif /* GMSHMESHDENSITYSTRATEGY_H_ */
......@@ -13,9 +13,7 @@
#include "GMSHPoint.h"
namespace GeoLib
{
namespace IO
namespace FileIO
{
namespace GMSH
{
......@@ -41,5 +39,4 @@ std::ostream& operator<< (std::ostream &os, GMSHPoint const& p)
}
} // end namespace GMSH
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
......@@ -14,9 +14,7 @@
// GeoLib
#include "GeoLib/Point.h"
namespace GeoLib
{
namespace IO
namespace FileIO
{
namespace GMSH
{
......@@ -33,7 +31,6 @@ private:
std::ostream& operator<< (std::ostream &os, GMSHPoint const& p);
} // end namespace GMSH
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
#endif /* GMSHPOINT_H_ */
......@@ -20,9 +20,7 @@
#include "GeoLib/PolylineWithSegmentMarker.h"
#include "GeoLib/PolygonWithSegmentMarker.h"
namespace GeoLib
{
namespace IO
namespace FileIO
{
namespace GMSH
{
......@@ -423,5 +421,4 @@ void GMSHPolygonTree::getStationsInsideSubPolygons(std::vector<GeoLib::Point con
}
} // end namespace GMSH
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
......@@ -26,8 +26,9 @@ class GEOObjects;
class Polygon;
class PolylineWithSegmentMarker;
class PolygonWithSegmentMarker;
}
namespace IO
namespace FileIO
{
namespace GMSH
{
......@@ -100,7 +101,6 @@ private:
};
} // end namespace GMSH
} // end namespace IO
} // end namespace GeoLib
} // end namespace FileIO
#endif /* GMSHPOLYGONTREE_H_ */
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