ENH: autoHexMesh: check for both locationInMesh and locationsInMesh.

This commit is contained in:
mattijs
2015-12-17 09:35:13 +00:00
parent 9cad906403
commit 0347bc5ae2

View File

@ -75,6 +75,13 @@ Foam::refinementParameters::refinementParameters(const dictionary& dict)
{ {
locationsInMesh_.append(locationInMesh); locationsInMesh_.append(locationInMesh);
zonesInMesh_.append("none"); // special name for no cellZone zonesInMesh_.append("none"); // special name for no cellZone
if (dict.found("locationsInMesh"))
{
FatalIOErrorInFunction(dict)
<< "Cannot both specify 'locationInMesh' and 'locationsInMesh'"
<< exit(FatalIOError);
}
} }
List<Tuple2<point, word> > pointsToZone; List<Tuple2<point, word> > pointsToZone;