working on loop exit condition

This commit is contained in:
James E McClure
2018-12-17 14:38:31 -05:00
parent f1d2bfa842
commit 61d3eaf78e

View File

@@ -361,7 +361,7 @@ double MorphGrow(DoubleArray &BoundaryDist, DoubleArray &Dist, Array<char> &id,
MAX_DISPLACEMENT *= TargetGrowth/GrowthEstimate;
if (MAX_DISPLACEMENT > 2.0 ){
morph_delta /= 0.5*MAX_DISPLACEMENT;
if (COUNT_FOR_LOOP > 2) COUNT_FOR_LOOP = 100;
//if (COUNT_FOR_LOOP > 2) COUNT_FOR_LOOP = 100;
//COUNT_FOR_LOOP = 100; // exit loop if displacement is too large
}
}