From cae652ba015186f3bd567fdb2e0b15bcbcc37dc6 Mon Sep 17 00:00:00 2001 From: gtheler Date: Mon, 18 Oct 2021 16:17:16 -0300 Subject: [PATCH] allow ".msh2" as valid extension for the native reader --- src/mesh/rawmesh.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesh/rawmesh.cpp b/src/mesh/rawmesh.cpp index f433b09f..5fd89488 100755 --- a/src/mesh/rawmesh.cpp +++ b/src/mesh/rawmesh.cpp @@ -123,7 +123,8 @@ void rawmesh::readfromfile(std::string tool, std::string source) } if (tool == "native") { - if (source.length() >= 5 && source.compare(source.size()-4,4,".msh") == 0) + if (source.length() >= 5 && source.compare(source.size()-4,4,".msh") == 0 || + source.length() >= 6 && source.compare(source.size()-5,5,".msh2") == 0) { gmshinterface::readfromfile(source, mynodes, myelements, myphysicalregions); return;