mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 05:20:34 +05:00
set 2d maxh
This commit is contained in:
parent
3b53350913
commit
c4b532aac2
@ -943,6 +943,19 @@ namespace netgen
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void SplineGeometry2d :: SetDomainMaxh (int domnr, double h)
|
||||||
|
{
|
||||||
|
int oldsize = maxh.Size();
|
||||||
|
if (domnr > maxh.Size()) maxh.SetSize (domnr);
|
||||||
|
for (int i = oldsize; i < domnr; i++)
|
||||||
|
maxh[i] = 1e99;
|
||||||
|
|
||||||
|
if (domnr >= 1)
|
||||||
|
maxh[domnr] = h;
|
||||||
|
else
|
||||||
|
throw NgException ("material index out of range");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
extern void MeshFromSpline2D (SplineGeometry2d & geometry,
|
extern void MeshFromSpline2D (SplineGeometry2d & geometry,
|
||||||
|
@ -163,6 +163,8 @@ namespace netgen
|
|||||||
void SetMaterial (int domnr, const string & material);
|
void SetMaterial (int domnr, const string & material);
|
||||||
|
|
||||||
double GetDomainMaxh ( const int domnr );
|
double GetDomainMaxh ( const int domnr );
|
||||||
|
void SetDomainMaxh ( const int domnr, double maxh );
|
||||||
|
|
||||||
bool GetDomainQuadMeshing ( int domnr )
|
bool GetDomainQuadMeshing ( int domnr )
|
||||||
{
|
{
|
||||||
if ( quadmeshing.Size() ) return quadmeshing[domnr-1];
|
if ( quadmeshing.Size() ) return quadmeshing[domnr-1];
|
||||||
|
Loading…
Reference in New Issue
Block a user