ENH: decompositionMethod: check dimensions. See #937.

Changed into warning since e.g. tutorials/combustion/fireFoam/LES/compartmentFire
uses columns of 1D stacks so they've got empty but are still 3D.
This commit is contained in:
mattijs
2018-07-26 16:21:51 +01:00
parent 9e345c5820
commit f17e486801

View File

@ -67,11 +67,12 @@ void Foam::geomDecomp::checkDecompositionDirections
{
if (n_[dir] > 1 && meshDirs[dir] == -1)
{
FatalErrorInFunction << "Trying to decompose a 1/2D mesh"
WarningInFunction
<< "Trying to decompose a 1/2D mesh"
<< " into " << n_[dir]
<< " parts in direction "
<< Vector<label>::componentNames[dir]
<< exit(FatalError);
<< endl;
}
}
}