Commit f17e4868 authored by mattijs's avatar mattijs
Browse files

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.
parent 9e345c58
...@@ -67,11 +67,12 @@ void Foam::geomDecomp::checkDecompositionDirections ...@@ -67,11 +67,12 @@ void Foam::geomDecomp::checkDecompositionDirections
{ {
if (n_[dir] > 1 && meshDirs[dir] == -1) 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] << " into " << n_[dir]
<< " parts in direction " << " parts in direction "
<< Vector<label>::componentNames[dir] << Vector<label>::componentNames[dir]
<< exit(FatalError); << endl;
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment