From 47996ef1863b2f5002c50e0ad6f74bc8652b3e0b Mon Sep 17 00:00:00 2001 From: henry Date: Wed, 11 Jun 2008 15:55:07 +0100 Subject: [PATCH] Removed all warnings from gcc-4.3.0 except those from NamedEnum (bug in compiler?) molecule (Graham dealing with it) lex (no comment) VTK (again no comment) --- .../advanced/autoRefineMesh/autoRefineMesh.C | 12 +++++---- .../refinementLevel/refinementLevel.C | 17 ++++++------ .../mesh/conversion/ansysToFoam/ansysToFoam.L | 3 ++- .../fluent3DMeshToFoam/fluent3DMeshToFoam.L | 6 +++-- .../fluentMeshToFoam/fluentMeshToFoam.L | 3 ++- .../conversion/gambitToFoam/gambitToFoam.L | 3 ++- .../manipulation/Optional/setSet/setSet.C | 12 ++++----- .../reconstructParMesh/Make/options | 3 +-- .../foamDataToFluent/Make/options | 3 +-- .../dataConversion/foamToEnsight/Make/options | 3 +-- .../foamToFieldview9/Make/options | 3 +-- .../dataConversion/foamToVTK/Make/options | 4 +-- .../graphics/fieldview9Reader/Make/options | 9 +++---- .../execFlowFunctionObjects/Make/options | 1 - .../miscellaneous/postChannel/Make/options | 3 +-- .../miscellaneous/ptot/Make/options | 3 +-- .../miscellaneous/wdot/Make/options | 3 +-- .../sampling/probeLocations/Make/options | 2 +- .../sampling/sample/Make/options | 2 +- .../scalarField/pPrime2/Make/options | 3 +-- .../stressField/stressComponents/Make/options | 3 +-- .../postProcessing/turbulence/R/Make/options | 3 +-- .../createTurbulenceFields/Make/options | 2 +- .../velocityField/Mach/Make/options | 1 - .../velocityField/streamFunction/Make/options | 3 +-- .../wall/wallGradU/Make/options | 3 +-- .../wall/wallHeatFlux/Make/options | 3 +-- .../wall/wallShearStress/Make/options | 3 +-- .../postProcessing/wall/yPlusLES/Make/options | 3 +-- .../postProcessing/wall/yPlusRAS/Make/options | 3 +-- .../surfaceCoarsen/bunnylod/progmesh.C | 26 +++++++++---------- .../reaction/Reactions/Reaction/Reaction.H | 8 ++++-- 32 files changed, 75 insertions(+), 84 deletions(-) diff --git a/applications/utilities/mesh/advanced/autoRefineMesh/autoRefineMesh.C b/applications/utilities/mesh/advanced/autoRefineMesh/autoRefineMesh.C index 6a01fac5f9..041a64de4f 100644 --- a/applications/utilities/mesh/advanced/autoRefineMesh/autoRefineMesh.C +++ b/applications/utilities/mesh/advanced/autoRefineMesh/autoRefineMesh.C @@ -451,7 +451,7 @@ void doRefinement const labelHashSet& refCells, labelList& refLevel ) -{ +{ label oldCells = mesh.nCells(); // Multi-iteration, multi-direction topology modifier. @@ -565,7 +565,7 @@ void subsetMesh // Update cutCells for removed cells. cutCells.updateMesh(morphMap()); } - + // Divide the cells according to status compared to surface. Constructs sets: // - cutCells : all cells cut by surface @@ -877,7 +877,7 @@ int main(int argc, char *argv[]) // Added cells from 2:1 refinement level restriction. - while + while ( limitRefinementLevel ( @@ -887,7 +887,8 @@ int main(int argc, char *argv[]) refLevel, cutCells ) - ); + ) + {} Info<< " Current cells : " << mesh.nCells() << nl @@ -988,7 +989,8 @@ int main(int argc, char *argv[]) refLevel, hanging ) - ); + ) + {} doRefinement(mesh, refineDict, hanging, refLevel); diff --git a/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C b/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C index 263f2534e2..39f0de363a 100644 --- a/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C +++ b/applications/utilities/mesh/advanced/refinementLevel/refinementLevel.C @@ -26,12 +26,12 @@ Description Tries to figure out what the refinement level is on refined cartesian meshes. Run BEFORE snapping. - Writes + Writes - volScalarField 'refinementLevel' with current refinement level. - cellSet 'refCells' which are the cells that need to be refined to satisfy 2:1 refinement. - Works by dividing cells into volume bins. + Works by dividing cells into volume bins. \*---------------------------------------------------------------------------*/ @@ -77,7 +77,7 @@ bool limitRefinementLevel } } } - + if (refCells.size() > oldNCells) { Info<< "Added an additional " << refCells.size() - oldNCells @@ -143,7 +143,7 @@ int main(int argc, char *argv[]) << lowerLimits[lowerLimits.size()-1] << " .. " << upperLimits[upperLimits.size()-1] << endl; - // Create new bin. + // Create new bin. bins.append(DynamicList