BUG: cellSizeFunction. Bad logic for triggering warning for bothSides

default whern surface does not support volumeType.

BUG: conformalVoronoiMesh.  Making test "totalHits >= hitLimit" rather than
"totalHits = hitLimit" to be strictly consistent and always trigger
the iteration termination message.
This commit is contained in:
graham 2010-02-26 16:11:30 +00:00
parent 0eea2bab54
commit 378b557cd3
5 changed files with 13 additions and 10 deletions

View File

@ -1,4 +1,4 @@
//EXE_DEBUG = -DFULLDEBUG -g -O0
EXE_DEBUG = -DFULLDEBUG -g -O0
EXE_FROUNDING_MATH = -frounding-math
EXE_NDEBUG = -DNDEBUG

View File

@ -68,7 +68,7 @@ int main(int argc, char *argv[])
<< nl << endl;
}
mesh.writeMesh();
mesh.writeMesh(runTime.constant());
Info<< nl << "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
<< " ClockTime = " << runTime.elapsedClockTime() << " s"

View File

@ -1,4 +1,4 @@
//EXE_DEBUG = -DFULLDEBUG -g -O0
EXE_DEBUG = -DFULLDEBUG -g -O0
EXE_FROUNDING_MATH = -frounding-math
EXE_NDEBUG = -DNDEBUG

View File

@ -76,16 +76,19 @@ cellSizeFunction::cellSizeFunction
else
{
FatalErrorIn("cellSizeFunction::cellSizeFunction")
<< "Unknown mode, expected: inside, outside or bothSides" << nl
<< "Unknown mode, expected: inside, outside or bothSides" << nl
<< exit(FatalError);
}
}
else if (mode != rmBothsides)
else
{
WarningIn("cellSizeFunction::cellSizeFunction")
<< "surface does not support volumeType, defaulting mode to "
<< "bothSides."
<< endl;
if (mode != "bothSides")
{
WarningIn("cellSizeFunction::cellSizeFunction")
<< "surface does not support volumeType, defaulting mode to "
<< "bothSides."
<< endl;
}
sideMode_ = rmBothsides;
}

View File

@ -230,7 +230,7 @@ void Foam::conformalVoronoiMesh::buildSurfaceConformation
while
(
totalHits > 0
&& totalHits > hitLimit
&& totalHits >= hitLimit
&& iterationNo < maxIterations
)
{