mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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;
|
||||
|
||||
|
||||
@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user