SetDomainQuadMeshing for 2d geometry

This commit is contained in:
Matthias Hochsteger 2020-09-11 09:05:53 +02:00
parent 24782ccc04
commit f6c94035c5

View File

@ -215,6 +215,20 @@ namespace netgen
if ( quadmeshing.Size() ) return quadmeshing[domnr-1];
else return false;
}
void SetDomainQuadMeshing ( int domnr, bool quad_meshing )
{
auto oldsize = quadmeshing.Size();
if ( oldsize<domnr )
{
quadmeshing.SetSize(domnr);
for(auto dom : IntRange(oldsize, domnr-1))
quadmeshing[dom] = false;
}
quadmeshing[domnr-1] = quad_meshing;
}
bool GetDomainTensorMeshing ( int domnr )
{
if ( tensormeshing.Size()>=domnr ) return tensormeshing[domnr-1];