mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-12 22:20:35 +05:00
Merge branch 'fix_short_mesh_filenames' into 'master'
Fix loading of short mesh file names See merge request jschoeberl/netgen!452
This commit is contained in:
commit
74192981cf
@ -696,7 +696,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
|
||||
int strs;
|
||||
|
||||
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);
|
||||
else if (filename.substr (filename.length()-3, 3) == ".gz")
|
||||
infile = new igzstream (filename.c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user