use grading for boundray partition and set default value for elto0

This commit is contained in:
Christoph Wintersteiger 2017-09-13 18:33:59 +02:00
parent 045a271c2e
commit 2e07ee9962
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ namespace netgen
} }
// limit slope // limit slope
double gradh = 1/elto0; double gradh = min(1/elto0,mp.grading);
for (int i = 0; i < n-1; i++) for (int i = 0; i < n-1; i++)
{ {
double hnext = hi[i] + gradh * (xi[i+1]-xi[i]).Length(); double hnext = hi[i] + gradh * (xi[i+1]-xi[i]).Length();

View File

@ -129,7 +129,7 @@ namespace netgen
Array<bool> tensormeshing; Array<bool> tensormeshing;
Array<int> layer; Array<int> layer;
Array<string*> bcnames; Array<string*> bcnames;
double elto0; double elto0 = 1.0;
public: public: