diff --git a/src/mesh/extrudeModel/linearNormal/linearNormal.C b/src/mesh/extrudeModel/linearNormal/linearNormal.C index e08b79737c601a05aeaae45abbc46ec4af5e379c..06e0aafc2cec8faba5ba9337778c59ffc292ef36 100644 --- a/src/mesh/extrudeModel/linearNormal/linearNormal.C +++ b/src/mesh/extrudeModel/linearNormal/linearNormal.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -101,7 +101,14 @@ point linearNormal::operator() const label layer ) const { - return surfacePoint + layerPoints_[layer - 1]*surfaceNormal; + if (layer == 0) + { + return surfacePoint; + } + else + { + return surfacePoint + layerPoints_[layer - 1]*surfaceNormal; + } }