Merge branch 'fixcalcpartition' into 'master'

use grading for boundray partition and set default value for elto0

See merge request !61
This commit is contained in:
Joachim Schöberl 2017-09-13 21:51:03 +02:00
commit 977c358d7b
2 changed files with 2 additions and 2 deletions

View File

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

View File

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