mirror of
https://github.com/NGSolve/netgen.git
synced 2025-05-10 12:40:49 +05:00
fix for 1D meshing (without region names)
This commit is contained in:
parent
1db8ea3500
commit
109e7ffcf7
@ -7416,7 +7416,7 @@ namespace netgen
|
||||
string_view Mesh :: defaultmat_sv = "default";
|
||||
const string & Mesh :: GetMaterial (int domnr) const
|
||||
{
|
||||
if (domnr <= materials.Size())
|
||||
if (domnr <= materials.Size() && materials[domnr-1])
|
||||
return *materials[domnr-1];
|
||||
static string emptystring("default");
|
||||
return emptystring;
|
||||
|
Loading…
x
Reference in New Issue
Block a user