Skip to content
Snippets Groups Projects
Commit 6d1becb1 authored by mark's avatar mark
Browse files

STYLE: clear names of selected fields when re-reading

parent 94e12506
Branches
Tags
1 merge request!121Merge develop into master for v1706 release
......@@ -282,6 +282,7 @@ bool Foam::surfMeshSamplers::write()
bool Foam::surfMeshSamplers::read(const dictionary& dict)
{
fieldSelection_.clear();
derivedNames_.clear();
const bool createOnRead =
......
......@@ -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) 2016-2017 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -38,7 +38,7 @@ Description
// Sample at every time-step
executeControl timeStep;
executeInterval 1;
executeInterval 1;
// Disable writing (or write at same frequency as fields)
writeControl none;
......@@ -153,20 +153,20 @@ public:
// Constructors
//- Construct from Time and dictionary
//- Construct from name, Time and dictionary
surfMeshSamplers
(
const word& name,
const Time& time,
const Time& runTime,
const dictionary& dict
);
//- Construct for given objectRegistry and dictionary
//- Construct from name, objectRegistry and dictionary
surfMeshSamplers
(
const word& name,
const objectRegistry&,
const dictionary&
const objectRegistry& obr,
const dictionary& dict
);
......@@ -192,19 +192,19 @@ public:
void verbose(const bool verbosity = true);
//- Read the surfMeshSamplers dictionary
virtual bool read(const dictionary&);
virtual bool read(const dictionary&) override;
//- Execute, does sampling
virtual bool execute();
virtual bool execute() override;
//- Write sampled values
virtual bool write();
virtual bool write() override;
//- Update for changes of mesh - expires the surfaces
virtual void updateMesh(const mapPolyMesh&);
virtual void updateMesh(const mapPolyMesh&) override;
//- Update for mesh point-motion - expires the surfaces
virtual void movePoints(const polyMesh&);
virtual void movePoints(const polyMesh&) override;
//- Update for changes of mesh due to readUpdate - expires the surfaces
virtual void readUpdate(const polyMesh::readUpdateState state);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment