diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C index 3afc843a4c8a16894b69265f9895eeddf77edf3b..f5bfcc5f7524e887ea04fe855481dce91a56614d 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C @@ -75,6 +75,13 @@ Foam::refinementParameters::refinementParameters(const dictionary& dict) { locationsInMesh_.append(locationInMesh); 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;