allow cd2names in 2d meshes

This commit is contained in:
Matthias Hochsteger 2021-02-05 17:40:43 +01:00
parent 9e080ee9e0
commit 6d30186279

View File

@ -1211,9 +1211,9 @@ namespace netgen
ReadNumberAndName( infile, cd2nrs[i], nextcd2name ); ReadNumberAndName( infile, cd2nrs[i], nextcd2name );
cd2names[cd2nrs[i]-1] = new string(nextcd2name); cd2names[cd2nrs[i]-1] = new string(nextcd2name);
} }
if (GetDimension() == 2) if (GetDimension() < 2)
{ {
throw NgException("co dim 2 elements not implemented for dimension 2"); throw NgException("co dim 2 elements not implemented for dimension < 2");
} }
} }