diff --git a/src/sampling/sampledSurface/sampledSurface/sampledSurface.C b/src/sampling/sampledSurface/sampledSurface/sampledSurface.C index 0b812717fa..5c7c5abb90 100644 --- a/src/sampling/sampledSurface/sampledSurface/sampledSurface.C +++ b/src/sampling/sampledSurface/sampledSurface/sampledSurface.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 @@ -152,12 +152,13 @@ Foam::autoPtr Foam::sampledSurface::New Foam::sampledSurface::sampledSurface ( const word& name, - const polyMesh& mesh + const polyMesh& mesh, + const bool interpolate ) : name_(name), mesh_(mesh), - interpolate_(false), + interpolate_(interpolate), SfPtr_(NULL), magSfPtr_(NULL), CfPtr_(NULL), diff --git a/src/sampling/sampledSurface/sampledSurface/sampledSurface.H b/src/sampling/sampledSurface/sampledSurface/sampledSurface.H index 5b4683bee5..9843143107 100644 --- a/src/sampling/sampledSurface/sampledSurface/sampledSurface.H +++ b/src/sampling/sampledSurface/sampledSurface/sampledSurface.H @@ -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 @@ -81,7 +81,7 @@ class sampledSurface const polyMesh& mesh_; //- Do we intend to interpolate the information? - bool interpolate_; + const bool interpolate_; // Demand-driven data @@ -197,7 +197,8 @@ public: sampledSurface ( const word& name, - const polyMesh& + const polyMesh&, + const bool interpolate = false ); //- Construct from dictionary