BUG: redistributePar: single-step. See #1211

- override casename, procesorCase flags to guarantee reconstructed
case to be written to the undecomposed directory
- alternative is to construct a Zero mesh on the undecomposed
runTime and add all other bits to that but that has not been
pursued
This commit is contained in:
mattijs
2021-03-11 16:00:55 +00:00
parent 273741c052
commit db343351f7
7 changed files with 47 additions and 25 deletions

View File

@ -6,7 +6,7 @@
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2011-2014 OpenFOAM Foundation
Copyright (C) 2016-2018 OpenCFD Ltd.
Copyright (C) 2016-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -118,6 +118,9 @@ public:
//- Return true if this is a processor case
inline bool processorCase() const;
//- Set processor case status. Return old one
inline bool processorCase(const bool isProcessorCase);
//- Return root path
inline const fileName& rootPath() const;

View File

@ -5,7 +5,7 @@
\\ / A nd | www.openfoam.com
\\/ M anipulation |
-------------------------------------------------------------------------------
Copyright (C) 2018 OpenCFD Ltd.
Copyright (C) 2018-2021 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
@ -39,6 +39,14 @@ inline bool Foam::TimePaths::processorCase() const
}
inline bool Foam::TimePaths::processorCase(const bool newProcCase)
{
const bool oldProcCase = processorCase_;
processorCase_ = newProcCase;
return oldProcCase;
}
inline const Foam::fileName& Foam::TimePaths::rootPath() const
{
return rootPath_;