ENH: autoHexMesh: check for both locationInMesh and locationsInMesh.

Fixes #31
This commit is contained in:
mattijs
2015-12-11 12:35:40 +00:00
parent 907b962e88
commit f44d211fd3

View File

@ -75,6 +75,13 @@ Foam::refinementParameters::refinementParameters(const dictionary& dict)
{ {
locationsInMesh_.append(locationInMesh); locationsInMesh_.append(locationInMesh);
zonesInMesh_.append("noneIfNotSet");// special name for no cellZone zonesInMesh_.append("noneIfNotSet");// 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;