postProcess clears pointer (to output file) when mesh moved during the simulation
The "guilty" code is in the file postProcess.H, around line 175 (depending on your version):
if (mesh.readUpdate() != polyMesh::UNCHANGED)
{
// Update functionObjects if mesh changes
// Note clearing the dictionary to avoid merge warning
functionsDict.clear();
functionsPtr = functionObjectList::New
(
args,
runTime,
functionsDict,
selectedFields
);
}
It actually destroys the pointer to the file used for output in the postProcessing/xxx directory and therefore makes it impossible to have more than two timesteps outputted there (the first, in the xxx.dat file and the last in the xxx_latestTime.dat file).
I got so far as to identify the source of my issue, can anyone suggest an alternative to destroying the whole functionsPtr when the mesh moves? My only realistic alternative as of now is to actually extract the desired data from the piped output date (ie Log).
Kind regards,
-Louis