13 std::string file_path = __FILE__;
19 for (
int i = file_path.length() - 1; i >= 0; --i) {
20 if (file_path[i] ==
'/' || file_path[i] ==
'\\') {
24 separator = file_path[i];
29 std::string directory_path = file_path.substr(0, index + 1);
30 return directory_path +
"test" + separator +
"msh_files" + separator +
35 return GmshReader(std::make_unique<mesh::hybrid2d::MeshFactory>(dim_world),
Reads a Gmsh *.msh file into a mesh::MeshFactory and provides a link between mesh::Entity objects and...
unsigned int dim_t
type for dimensions and co-dimensions and numbers derived from them
std::string getMeshPath(std::string mesh_name)
Retrieve the full path to the file lib/lf/io/test/msh_files/<mesh_name>
GmshReader getGmshReader(std::string mesh_name, base::dim_t dim_world)
Get a GmshReader from the file lib/lf/io/test/msh_files/<mesh_name>.