ENH: sampledSurface: construct from components

This commit is contained in:
mattijs
2012-02-29 11:48:48 +00:00
parent 0b17de6901
commit 644dfbbffd
2 changed files with 8 additions and 6 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -152,12 +152,13 @@ Foam::autoPtr<Foam::sampledSurface> Foam::sampledSurface::New
Foam::sampledSurface::sampledSurface Foam::sampledSurface::sampledSurface
( (
const word& name, const word& name,
const polyMesh& mesh const polyMesh& mesh,
const bool interpolate
) )
: :
name_(name), name_(name),
mesh_(mesh), mesh_(mesh),
interpolate_(false), interpolate_(interpolate),
SfPtr_(NULL), SfPtr_(NULL),
magSfPtr_(NULL), magSfPtr_(NULL),
CfPtr_(NULL), CfPtr_(NULL),

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -81,7 +81,7 @@ class sampledSurface
const polyMesh& mesh_; const polyMesh& mesh_;
//- Do we intend to interpolate the information? //- Do we intend to interpolate the information?
bool interpolate_; const bool interpolate_;
// Demand-driven data // Demand-driven data
@ -197,7 +197,8 @@ public:
sampledSurface sampledSurface
( (
const word& name, const word& name,
const polyMesh& const polyMesh&,
const bool interpolate = false
); );
//- Construct from dictionary //- Construct from dictionary