mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-12 16:17:29 +05:00
Fix loading of short mesh file names
This commit is contained in:
parent
9477fb0321
commit
3c4fe43fcc
@ -696,7 +696,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
|||||||
int strs;
|
int strs;
|
||||||
|
|
||||||
if( id == 0) {
|
if( id == 0) {
|
||||||
if (filename.substr (filename.length()-8, 8) == ".vol.bin")
|
if (filename.length() > 8 && filename.substr (filename.length()-8, 8) == ".vol.bin")
|
||||||
mesh -> Load(filename);
|
mesh -> Load(filename);
|
||||||
else if (filename.substr (filename.length()-3, 3) == ".gz")
|
else if (filename.substr (filename.length()-3, 3) == ".gz")
|
||||||
infile = new igzstream (filename.c_str());
|
infile = new igzstream (filename.c_str());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user