From 2a1236c0c2a4404631dee83d3b1b7b6a3ef1758c Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 27 May 2009 16:49:58 +0100 Subject: [PATCH] updates --- .../particleTracks/particleTracks.C | 312 +++++++----------- 1 file changed, 120 insertions(+), 192 deletions(-) diff --git a/applications/utilities/postProcessing/lagrangian/particleTracks/particleTracks.C b/applications/utilities/postProcessing/lagrangian/particleTracks/particleTracks.C index 4789212ce7..8ab716ec21 100644 --- a/applications/utilities/postProcessing/lagrangian/particleTracks/particleTracks.C +++ b/applications/utilities/postProcessing/lagrangian/particleTracks/particleTracks.C @@ -41,19 +41,6 @@ Description using namespace Foam; -Foam::label checkHeader(IOobject& io) -{ - if (io.headerOk()) - { - return 0; - } - else - { - Info<< " no " << io.name() << " field" << endl; - return 1; - } -} - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // int main(int argc, char *argv[]) @@ -65,165 +52,22 @@ int main(int argc, char *argv[]) # include "createMesh.H" # include "createFields.H" - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -/* - Parallel mode - - nProcs known - - scan through times to determine max id for each proc - - - scan through times to populate for each particle (indexed to procId): - - id - - time - - construct single flat list from all procs of ids and times: - - starting id = sum of ids of lower procs - - sort particles according to time - - join the dots... - - Serial mode - - don't know if case was run in serial mode, or is a reconstructed - parallel run - - scan times to determine max origProcId and max id for each origProc - - - scan through times to populate for each particle (indexed to procId): - - id - - time - - construct single flat list from all procs of ids and times: - - starting id = sum of ids of lower procs - - sort particles according to time - - join the dots... - - -*/ - - DynamicList