mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -2858,7 +2858,19 @@ int main(int argc, char *argv[])
|
|||||||
InfoOrPout
|
InfoOrPout
|
||||||
<< "Setting caseName to " << baseRunTime.caseName()
|
<< "Setting caseName to " << baseRunTime.caseName()
|
||||||
<< " to read lagrangian" << endl;
|
<< " 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);
|
runTime.processorCase(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -9,10 +9,10 @@ runApplication blockMesh
|
|||||||
|
|
||||||
runApplication dsmcInitialise
|
runApplication dsmcInitialise
|
||||||
|
|
||||||
runParallel redistributePar -decompose -overwrite -withZero
|
runParallel -s decompose redistributePar -decompose -overwrite -withZero
|
||||||
|
|
||||||
runParallel $(getApplication)
|
runParallel $(getApplication)
|
||||||
|
|
||||||
runApplication reconstructPar
|
runParallel -s reconstruct redistributePar -reconstruct
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
@ -34,7 +34,7 @@ purgeWrite 0;
|
|||||||
|
|
||||||
writeFormat ascii;
|
writeFormat ascii;
|
||||||
|
|
||||||
writePrecision 10;
|
writePrecision 16;
|
||||||
|
|
||||||
writeCompression off;
|
writeCompression off;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user