From bd58348f248aab573b095a00949d830106485036 Mon Sep 17 00:00:00 2001 From: andy <andy> Date: Tue, 2 Oct 2012 14:24:11 +0100 Subject: [PATCH] ENH: Improved plane select from dict messages --- src/OpenFOAM/meshes/primitiveShapes/plane/plane.C | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/OpenFOAM/meshes/primitiveShapes/plane/plane.C b/src/OpenFOAM/meshes/primitiveShapes/plane/plane.C index b7efdbb6437..c191f44c3ea 100644 --- a/src/OpenFOAM/meshes/primitiveShapes/plane/plane.C +++ b/src/OpenFOAM/meshes/primitiveShapes/plane/plane.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -208,7 +208,7 @@ Foam::plane::plane(const dictionary& dict) } else if (planeType == "embeddedPoints") { - const dictionary& subDict = dict.subDict("embeddedPoints"); + const dictionary& subDict = dict.subDict("embeddedPointsDict"); point point1(subDict.lookup("point1")); point point2(subDict.lookup("point2")); @@ -226,11 +226,10 @@ Foam::plane::plane(const dictionary& dict) } else { - FatalIOErrorIn - ( - "plane::plane(const dictionary&)", - dict - ) << "Invalid plane type: " << planeType + FatalIOErrorIn("plane::plane(const dictionary&)", dict) + << "Invalid plane type: " << planeType << nl + << "Valid options include: planeEquation, embeddedPoints and " + << "pointAndNormal" << abort(FatalIOError); } } -- GitLab