BUG: runTimeModifiable crashes with collated in rhoPimpleFoam
Summary
It is not possible to modify i.e. endTime
during run time in tutorial compressible/rhoPimpleFoam/RAS/aerofoilNACA0012
in parallel with -fileHandler collated
and runTimeModifiable true
. On the contrary, other solvers behaeve as expected.
Steps to reproduce
copy tutorial
OpenFOAM-v2306/tutorials/compressible/rhoPimpleFoam/RAS/aerofoilNACA0012
into run folder;
foamGetDict decomposeParDict
;
Reduce number of cores to 4 and eliminate what is after scotch from the dictionary;
Increase endTime
to 100
;
./Allrun
but in parallel with
runApplication decomposePar -fileHandler collated
;
runParallel rhoPimpleFoam -fileHandler collated
;
at the end.
Change endTime
to 101
during run time;
What is the current bug behaviour?
From virtual bool Foam::regIOobject::readIfModified()
in file db/regIOobject/regIOobjectRead.C at line 271
Re-reading object controlDict from file "/home/username/OpenFOAM/username-v2306/run/FOAM_RUN/system/controlDict"
[0]
[0]
[0] --> FOAM FATAL IO ERROR: (openfoam-2306)
[0] Cannot find file "/home/username/OpenFOAM/username-v2306/run/FOAM_RUN/processor0/system/controlDict" fileHandler : comm:0 ioRanks:4(0 1 2 3)
[0]
[0] From static Foam::autoPtr<Foam::ISstream> Foam::fileOperations::masterUncollatedFileOperation::read(Foam::IOobject&, Foam::label, bool, const fileNameList&, const boolUList&)
[0] in file global/fileOperations/masterUncollatedFileOperation/masterUncollatedFileOperation.C at line 526.
[0]
FOAM exiting
[0]
--------------------------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code. Per user-direction, the job has been aborted.
--------------------------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:
Process name: [[8529,1],0]
Exit code: 1
-------------------------------------------------------------------------
Environment information
OpenFOAM version : v2306 Operating system : ubuntu 22
Edited by Alberto ceschin