working on loop exit condition
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user