From 0bc18a26f624c58eed1c6902be51bd1cd4a0fba0 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Mon, 11 May 2009 10:52:51 +0200 Subject: [PATCH] bugfix decomposePar - explicitly remove any previously decomposed 'mut' and 'nut' when decomposing fields since they can otherwise prevent the turbulence model from being upgraded properly. Removing all decomposed fields first might be a better idea in the long-term, but would probably be slower. --- .../parallelProcessing/decomposePar/decomposePar.C | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/applications/utilities/parallelProcessing/decomposePar/decomposePar.C b/applications/utilities/parallelProcessing/decomposePar/decomposePar.C index 644511564e..fef8c71aa1 100644 --- a/applications/utilities/parallelProcessing/decomposePar/decomposePar.C +++ b/applications/utilities/parallelProcessing/decomposePar/decomposePar.C @@ -540,6 +540,16 @@ int main(int argc, char *argv[]) processorDb.setTime(runTime); + // remove files remnants that can cause horrible problems + // - mut and nut are used to mark the new turbulence models, + // their existence prevents old models from being upgraded + { + fileName timeDir(processorDb.path()/processorDb.timeName()); + + rm(timeDir/"mut"); + rm(timeDir/"nut"); + } + // read the mesh fvMesh procMesh (