mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
functionObjects: Changed options 'outputControl' -> 'writeControl' and 'outputInterval' -> 'writeInterval'
for consistency with the time controls in controlDict and to avoid unnecessary confusion. All code and tutorials have been updated. The old names 'outputControl' and 'outputInterval' are but supported for backward compatibility but deprecated.
This commit is contained in:
@ -352,9 +352,11 @@ void Foam::probes::read(const dictionary& dict)
|
||||
|
||||
void Foam::probes::updateMesh(const mapPolyMesh& mpm)
|
||||
{
|
||||
if (debug)
|
||||
DebugInfo<< "probes: updateMesh" << endl;
|
||||
|
||||
if (&mpm.mesh() != &mesh_)
|
||||
{
|
||||
Info<< "probes: updateMesh" << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
if (fixedLocations_)
|
||||
@ -427,14 +429,11 @@ void Foam::probes::updateMesh(const mapPolyMesh& mpm)
|
||||
}
|
||||
|
||||
|
||||
void Foam::probes::movePoints(const polyMesh&)
|
||||
void Foam::probes::movePoints(const polyMesh& mesh)
|
||||
{
|
||||
if (debug)
|
||||
{
|
||||
Info<< "probes: movePoints" << endl;
|
||||
}
|
||||
DebugInfo<< "probes: movePoints" << endl;
|
||||
|
||||
if (fixedLocations_)
|
||||
if (fixedLocations_ && &mesh == &mesh_)
|
||||
{
|
||||
findElements(mesh_);
|
||||
}
|
||||
|
||||
@ -30,6 +30,7 @@ License
|
||||
#include "ListListOps.H"
|
||||
#include "SortableList.H"
|
||||
#include "volPointInterpolation.H"
|
||||
#include "mapPolyMesh.H"
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
@ -296,15 +297,21 @@ void Foam::sampledSets::correct()
|
||||
}
|
||||
|
||||
|
||||
void Foam::sampledSets::updateMesh(const mapPolyMesh&)
|
||||
void Foam::sampledSets::updateMesh(const mapPolyMesh& mpm)
|
||||
{
|
||||
correct();
|
||||
if (&mpm.mesh() == &mesh_)
|
||||
{
|
||||
correct();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Foam::sampledSets::movePoints(const polyMesh&)
|
||||
void Foam::sampledSets::movePoints(const polyMesh& mesh)
|
||||
{
|
||||
correct();
|
||||
if (&mesh == &mesh_)
|
||||
{
|
||||
correct();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ functions
|
||||
|
||||
functionObjectLibs ("libsampling.so");
|
||||
|
||||
outputControl outputTime;
|
||||
writeControl outputTime;
|
||||
setFormat gnuplot;
|
||||
fields (p U);
|
||||
interpolationScheme cellPoint;
|
||||
|
||||
@ -30,6 +30,7 @@ License
|
||||
#include "IOmanip.H"
|
||||
#include "volPointInterpolation.H"
|
||||
#include "PatchTools.H"
|
||||
#include "mapPolyMesh.H"
|
||||
|
||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||
|
||||
@ -245,17 +246,23 @@ void Foam::sampledSurfaces::read(const dictionary& dict)
|
||||
}
|
||||
|
||||
|
||||
void Foam::sampledSurfaces::updateMesh(const mapPolyMesh&)
|
||||
void Foam::sampledSurfaces::updateMesh(const mapPolyMesh& mpm)
|
||||
{
|
||||
expire();
|
||||
if (&mpm.mesh() == &mesh_)
|
||||
{
|
||||
expire();
|
||||
}
|
||||
|
||||
// pointMesh and interpolation will have been reset in mesh.update
|
||||
}
|
||||
|
||||
|
||||
void Foam::sampledSurfaces::movePoints(const polyMesh&)
|
||||
void Foam::sampledSurfaces::movePoints(const polyMesh& mesh)
|
||||
{
|
||||
expire();
|
||||
if (&mesh == &mesh_)
|
||||
{
|
||||
expire();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user