Update handling of merge tolerance

This commit is contained in:
Hrvoje Jasak 2019-06-02 17:49:26 +01:00
parent b6c9f0c577
commit d5167a6d5d
2 changed files with 7 additions and 2 deletions

View file

@ -179,7 +179,10 @@ int main(int argc, char *argv[])
const boundBox& bb = mesh.globalData().bb();
const vector span = bb.span();
const scalar mergeDim = 1e-4 * bb.minDim();
// Read merge tolerance
const scalar mergeTolerance = readScalar(dict.lookup("mergeTolerance"));
const scalar mergeDim = mergeTolerance*bb.minDim();
Info<< "Mesh bounding box : " << bb << nl
<< " with span : " << span << nl
@ -200,7 +203,7 @@ int main(int argc, char *argv[])
// Collapse edges
// ~~~~~~~~~~~~~~
if (mergeTolerance > SMALL)
{
Info<< "Collapsing edges < " << mergeDim << " ..." << nl << endl;

View file

@ -70,5 +70,7 @@ sigmaRadialCoeffs
pStrat 1;
}
mergeTolerance 1e-4;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //