mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: chtMultiRegionFoam: protect against Co and Di both 0
This commit is contained in:
@ -33,13 +33,12 @@ if (adjustTimeStep)
|
||||
{
|
||||
if ((runTime.timeIndex() == 0) && ((CoNum > SMALL) || (DiNum > SMALL)))
|
||||
{
|
||||
|
||||
if (CoNum == -GREAT)
|
||||
if (CoNum < SMALL)
|
||||
{
|
||||
CoNum = SMALL;
|
||||
}
|
||||
|
||||
if (DiNum == -GREAT)
|
||||
if (DiNum < SMALL)
|
||||
{
|
||||
DiNum = SMALL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user