diff --git a/applications/utilities/postProcessing/stressField/solidStress/solidStress.C b/applications/utilities/postProcessing/stressField/solidStress/solidStress.C index 432cc283d..2bfa1f6d4 100644 --- a/applications/utilities/postProcessing/stressField/solidStress/solidStress.C +++ b/applications/utilities/postProcessing/stressField/solidStress/solidStress.C @@ -36,7 +36,6 @@ Description int main(int argc, char *argv[]) { - # include "addTimeOptions.H" # include "setRootCase.H" @@ -53,7 +52,7 @@ int main(int argc, char *argv[]) # include "createMesh.H" # include "readMechanicalProperties.H" - for (label i=startTime; i::destroyFilter() ptr_.reset(); } + // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // template diff --git a/src/sampling/probes/probes.C b/src/sampling/probes/probes.C index b6864cb6d..2596f5ac4 100644 --- a/src/sampling/probes/probes.C +++ b/src/sampling/probes/probes.C @@ -323,6 +323,7 @@ void Foam::probes::write() { // Check if the mesh is changing and if so, resample const fvMesh& mesh = refCast(obr_); + if (mesh.moving() || mesh.changing()) { cellList_.clear();