ENH: improve startup time for foamToEnsight conversion (issue #240).
Old code: Found 10990 time steps Search for moving mesh ... no moving mesh detected. Startup in 329.09 s Updated: Found 10990 time steps Search for moving mesh ... no moving mesh detected. Startup in 1.6 s - Cause was checking "polyMesh/points" via an IOobject. Short-circuit with a check for a polyMesh/ directory first. Limit the check to the master-node as well to further reduce load on the file-system. ------------------------------ ENH: improve per-step conversion times for foamToEnsight. Old code: Converting 11001 time steps Time [0] = 0 Wrote in 1.53 s Time [1] = 1 Wrote in 1.52 s ... Time [100] = 100 Elapsed time 205.35 s Updated: Converting 11001 time steps Time [0] = 0 Wrote in 1.4 s Time [1] = 1 Wrote in 0.07 s ... Time [100] = 100 Elapsed time 42.4 s - Speedup by hashing test results from the first conversion step instead of checking each time. Check data on all nodes to avoid problems with incomplete writes. ------------------------------ BUG: moving mesh detection failed for foamToEnsightParts - adjusted to agree with updated foamToEnsight ------------------------------ Note: - foamToEnsightParts (serial) still has about twice the throughput of foamToEnsight.
Showing
- applications/utilities/postProcessing/dataConversion/foamToEnsight/checkData.H 28 additions, 16 deletions...s/postProcessing/dataConversion/foamToEnsight/checkData.H
- applications/utilities/postProcessing/dataConversion/foamToEnsight/checkMeshMoving.H 33 additions, 12 deletions...Processing/dataConversion/foamToEnsight/checkMeshMoving.H
- applications/utilities/postProcessing/dataConversion/foamToEnsight/foamToEnsight.C 23 additions, 13 deletions...stProcessing/dataConversion/foamToEnsight/foamToEnsight.C
- applications/utilities/postProcessing/dataConversion/foamToEnsightParts/checkHasMovingMesh.H 39 additions, 10 deletions...ng/dataConversion/foamToEnsightParts/checkHasMovingMesh.H
- applications/utilities/postProcessing/dataConversion/foamToEnsightParts/foamToEnsightParts.C 14 additions, 5 deletions...ng/dataConversion/foamToEnsightParts/foamToEnsightParts.C
- applications/utilities/postProcessing/dataConversion/foamToEnsightParts/getTimeIndex.H 1 addition, 1 deletion...ocessing/dataConversion/foamToEnsightParts/getTimeIndex.H
Please register or sign in to comment