mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: redistributePar: reconstruct mode in collated. Fixes #2194
This commit is contained in:
@ -147,7 +147,7 @@ void createTimeDirs(const fileName& path)
|
|||||||
|
|
||||||
// Just to make sure remove all state and re-scan
|
// Just to make sure remove all state and re-scan
|
||||||
fileHandler().flush();
|
fileHandler().flush();
|
||||||
(void)fileHandler().findTimes(path, "constant");
|
(void)Time::findTimes(path, "constant");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -2665,9 +2665,11 @@ int main(int argc, char *argv[])
|
|||||||
// e.g. latestTime will pick up a different time (which causes createTime.H
|
// e.g. latestTime will pick up a different time (which causes createTime.H
|
||||||
// to abort). So for now make sure to have master times on all
|
// to abort). So for now make sure to have master times on all
|
||||||
// processors
|
// processors
|
||||||
Info<< "Creating time directories on all processors" << nl << endl;
|
if (!reconstruct)
|
||||||
createTimeDirs(args.path());
|
{
|
||||||
|
Info<< "Creating time directories on all processors" << nl << endl;
|
||||||
|
createTimeDirs(args.path());
|
||||||
|
}
|
||||||
|
|
||||||
// Construct time
|
// Construct time
|
||||||
// ~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~
|
||||||
@ -2932,6 +2934,10 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Make sure all is finished writing until re-reading in pass2
|
||||||
|
// below
|
||||||
|
fileHandler().flush();
|
||||||
|
|
||||||
|
|
||||||
// Pass2 : read mesh and addressing and reconstruct fields
|
// Pass2 : read mesh and addressing and reconstruct fields
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
@ -27,8 +27,8 @@ cp -f \
|
|||||||
if [ "$parallel" = true ]
|
if [ "$parallel" = true ]
|
||||||
then
|
then
|
||||||
|
|
||||||
runApplication decomposePar $fileHandler
|
#runApplication decomposePar $fileHandler
|
||||||
#runParallel -s decompose redistributePar -decompose $fileHandler
|
runParallel -s decompose redistributePar -decompose $fileHandler
|
||||||
|
|
||||||
runParallel snappyHexMesh -overwrite $fileHandler
|
runParallel snappyHexMesh -overwrite $fileHandler
|
||||||
|
|
||||||
@ -43,10 +43,10 @@ then
|
|||||||
|
|
||||||
## Run reconstructParMesh with collated as well since writes
|
## Run reconstructParMesh with collated as well since writes
|
||||||
## constant/polyMesh/cellProcAddressing
|
## constant/polyMesh/cellProcAddressing
|
||||||
runApplication reconstructParMesh -constant $fileHandler
|
#runApplication reconstructParMesh -constant $fileHandler
|
||||||
runApplication reconstructPar
|
#runApplication reconstructPar
|
||||||
|
|
||||||
#runParallel -s reconstruct redistributePar -reconstruct $fileHandler
|
runParallel -s reconstruct redistributePar -reconstruct $fileHandler
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user