BUG: redistributePar: handle lagrangian in decompose mode. See !605

- only affects recent develop
- fixed by supplying invalid casename for non-master ranks
This commit is contained in:
mattijs 2023-11-28 16:50:51 +00:00
parent b4b022f283
commit 6c08e995ba
3 changed files with 16 additions and 4 deletions

View File

@ -2858,7 +2858,19 @@ int main(int argc, char *argv[])
InfoOrPout
<< "Setting caseName to " << baseRunTime.caseName()
<< " to read lagrangian" << endl;
runTime.caseName() = baseRunTime.caseName();
if (UPstream::master())
{
// Change case name but only on the master - this will
// hopefully cause the slaves to not read.
runTime.caseName() = baseRunTime.caseName();
}
else
{
// Explicitly make sure that casename is not recognised as
// a processor case since that has special handling for
// caching processor directories etc.
runTime.caseName() = "#invalid-name#";
}
runTime.processorCase(false);
}

View File

@ -9,10 +9,10 @@ runApplication blockMesh
runApplication dsmcInitialise
runParallel redistributePar -decompose -overwrite -withZero
runParallel -s decompose redistributePar -decompose -overwrite -withZero
runParallel $(getApplication)
runApplication reconstructPar
runParallel -s reconstruct redistributePar -reconstruct
#------------------------------------------------------------------------------

View File

@ -34,7 +34,7 @@ purgeWrite 0;
writeFormat ascii;
writePrecision 10;
writePrecision 16;
writeCompression off;