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
\\ / 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> 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),

View File

@ -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