From 5b1ae76abfdc95cdec6d23904ef9471d570389bf Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 9 Aug 2016 16:42:48 +0100 Subject: [PATCH] reconstructPar: Handle the copy of the 'uniform' directory when only 1 region is reconstructed Resolves bug-report http://bugs.openfoam.org/view.php?id=2186 --- .../parallelProcessing/reconstructPar/reconstructPar.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C b/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C index 4914b0ae6b..68ed31dbe8 100644 --- a/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C +++ b/applications/utilities/parallelProcessing/reconstructPar/reconstructPar.C @@ -1006,7 +1006,7 @@ int main(int argc, char *argv[]) // For the first region of a multi-region case additionally // copy the "uniform" directory in the time directory - if (regionNames.size() > 1 && regioni == 0) + if (regioni == 0 && regionDir != word::null) { fileName uniformDir0 (