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
|
||||
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
|
||||
// to abort). So for now make sure to have master times on all
|
||||
// processors
|
||||
Info<< "Creating time directories on all processors" << nl << endl;
|
||||
createTimeDirs(args.path());
|
||||
|
||||
if (!reconstruct)
|
||||
{
|
||||
Info<< "Creating time directories on all processors" << nl << endl;
|
||||
createTimeDirs(args.path());
|
||||
}
|
||||
|
||||
// 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
|
||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user