diff --git a/src/finiteVolume/finiteVolume/ddtSchemes/CrankNicolsonDdtScheme/CrankNicolsonDdtScheme.H b/src/finiteVolume/finiteVolume/ddtSchemes/CrankNicolsonDdtScheme/CrankNicolsonDdtScheme.H index 42fc3328ccb723cac1c3960909970d89158b3eeb..78c343c3b4ccedec8acb48210e27eb9cc07c11b5 100644 --- a/src/finiteVolume/finiteVolume/ddtSchemes/CrankNicolsonDdtScheme/CrankNicolsonDdtScheme.H +++ b/src/finiteVolume/finiteVolume/ddtSchemes/CrankNicolsonDdtScheme/CrankNicolsonDdtScheme.H @@ -200,7 +200,11 @@ public: ocCoeff_(1.0) { // Ensure the old-old-time cell volumes are available - mesh.V00(); + // for moving meshes + if (mesh.moving()) + { + mesh.V00(); + } } //- Construct from mesh and Istream @@ -220,7 +224,11 @@ public: } // Ensure the old-old-time cell volumes are available - mesh.V00(); + // for moving meshes + if (mesh.moving()) + { + mesh.V00(); + } } diff --git a/src/finiteVolume/finiteVolume/ddtSchemes/backwardDdtScheme/backwardDdtScheme.H b/src/finiteVolume/finiteVolume/ddtSchemes/backwardDdtScheme/backwardDdtScheme.H index 0b9c82b6dc4d022a3ce0fd92c73842d6fb0873bc..c17b1f16a401a6c43b7c31bcc8634d5a05330338 100644 --- a/src/finiteVolume/finiteVolume/ddtSchemes/backwardDdtScheme/backwardDdtScheme.H +++ b/src/finiteVolume/finiteVolume/ddtSchemes/backwardDdtScheme/backwardDdtScheme.H @@ -91,7 +91,11 @@ public: ddtScheme<Type>(mesh) { // Ensure the old-old-time cell volumes are available - mesh.V00(); + // for moving meshes + if (mesh.moving()) + { + mesh.V00(); + } } //- Construct from mesh and Istream @@ -100,7 +104,11 @@ public: ddtScheme<Type>(mesh, is) { // Ensure the old-old-time cell volumes are available - mesh.V00(); + // for moving meshes + if (mesh.moving()) + { + mesh.V00(); + } }