From adf95d483c9e88f660c3d4fc96d0a153b146d211 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 24 Nov 2022 14:57:26 +0000 Subject: [PATCH] BUG: redistributePar: softlink uniform. Fixes #163 --- .../parallelProcessing/decomposePar/decomposePar.C | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/applications/utilities/parallelProcessing/decomposePar/decomposePar.C b/applications/utilities/parallelProcessing/decomposePar/decomposePar.C index c0a02132a2..f8bdc64af5 100644 --- a/applications/utilities/parallelProcessing/decomposePar/decomposePar.C +++ b/applications/utilities/parallelProcessing/decomposePar/decomposePar.C @@ -251,8 +251,18 @@ void decomposeUniform << runTime.timePath()/uniformDir << endl; - const fileName timePath = - fileHandler().filePath(processorDb.timePath()); + // Bit of trickery to synthesise the correct directory base, + // e.g. processors4/0.01 + const fileName timePath = fileHandler().objectPath + ( + IOobject + ( + "dummy", + runTime.timeName(), + processorDb + ), + word::null + ).path(); // If no fields have been decomposed the destination // directory will not have been created so make sure.