diff --git a/applications/solvers/multiphase/MPPICInterFoam/Allwclean b/applications/solvers/multiphase/MPPICInterFoam/Allwclean index d6607c3db0..12d384e356 100755 --- a/applications/solvers/multiphase/MPPICInterFoam/Allwclean +++ b/applications/solvers/multiphase/MPPICInterFoam/Allwclean @@ -1,8 +1,7 @@ #!/bin/sh cd ${0%/*} || exit 1 # run from this directory -set -x wclean libso CompressibleTwoPhaseMixtureTurbulenceModels wclean -# ----------------------------------------------------------------- end-of-file +#------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/MPPICInterFoam/Allwmake b/applications/solvers/multiphase/MPPICInterFoam/Allwmake index 110d4b093a..36e2f89646 100755 --- a/applications/solvers/multiphase/MPPICInterFoam/Allwmake +++ b/applications/solvers/multiphase/MPPICInterFoam/Allwmake @@ -1,8 +1,7 @@ #!/bin/sh cd ${0%/*} || exit 1 # run from this directory -set -x wmake libso CompressibleTwoPhaseMixtureTurbulenceModels wmake -# ----------------------------------------------------------------- end-of-file +#------------------------------------------------------------------------------ diff --git a/applications/solvers/multiphase/interCondensingEvaporatingFoam/Allwmake b/applications/solvers/multiphase/interCondensingEvaporatingFoam/Allwmake index 523c10c33c..59af9259fe 100755 --- a/applications/solvers/multiphase/interCondensingEvaporatingFoam/Allwmake +++ b/applications/solvers/multiphase/interCondensingEvaporatingFoam/Allwmake @@ -4,7 +4,6 @@ cd ${0%/*} || exit 1 # Run from this directory # Parse arguments for library compilation targetType=libso . $WM_PROJECT_DIR/wmake/scripts/AllwmakeParseArguments -set -x wmake $targetType temperaturePhaseChangeTwoPhaseMixtures wmake diff --git a/applications/utilities/mesh/generation/foamyMesh/Allwmake b/applications/utilities/mesh/generation/foamyMesh/Allwmake index 85f046473c..bea4106ad3 100755 --- a/applications/utilities/mesh/generation/foamyMesh/Allwmake +++ b/applications/utilities/mesh/generation/foamyMesh/Allwmake @@ -7,8 +7,6 @@ cd ${0%/*} || exit 1 # Run from this directory if [ -f "$CGAL_ARCH_PATH/include/CGAL/version.h" ] || \ [ "${CGAL_ARCH_PATH##*-}" = system -a -f /usr/include/CGAL/version.h ] then - set -x - wmake $targetType conformalVoronoiMesh wmake $targetType conformalVoronoi2DMesh wmake foamyQuadMesh diff --git a/applications/utilities/mesh/manipulation/renumberMesh/Allwmake b/applications/utilities/mesh/manipulation/renumberMesh/Allwmake index fae482e08b..ee135cc373 100755 --- a/applications/utilities/mesh/manipulation/renumberMesh/Allwmake +++ b/applications/utilities/mesh/manipulation/renumberMesh/Allwmake @@ -20,7 +20,6 @@ then export LINK_FLAGS="${LINK_FLAGS} -lzoltanRenumber -L${ZOLTAN_ARCH_PATH}/lib -lzoltan" fi -set -x wmake $targetType #------------------------------------------------------------------------------ diff --git a/applications/utilities/surface/surfaceBooleanFeatures/Allwmake b/applications/utilities/surface/surfaceBooleanFeatures/Allwmake index 660a2e59b5..260b46ea0b 100755 --- a/applications/utilities/surface/surfaceBooleanFeatures/Allwmake +++ b/applications/utilities/surface/surfaceBooleanFeatures/Allwmake @@ -1,6 +1,5 @@ #!/bin/sh cd ${0%/*} || exit 1 # Run from this directory -set -x unset COMPILE_FLAGS LINK_FLAGS diff --git a/src/OpenFOAM/db/functionObjects/functionObject/functionObject.H b/src/OpenFOAM/db/functionObjects/functionObject/functionObject.H index 1cf46f877e..9c7d56a340 100644 --- a/src/OpenFOAM/db/functionObjects/functionObject/functionObject.H +++ b/src/OpenFOAM/db/functionObjects/functionObject/functionObject.H @@ -82,7 +82,7 @@ Description runTime | Execute/write every 'Interval' run time period clockTime | Execute/write every 'Interval' clock time period cpuTime | Execute/write every 'Interval' CPU time period - none | Execute/write every time-step + none | Execute/write disabled \endtable The sub-dictionary name \c \ is chosen by the user, and diff --git a/src/conversion/ensight/mesh/ensightMeshIO.C b/src/conversion/ensight/mesh/ensightMeshIO.C index 406697d942..f8bc9230c2 100644 --- a/src/conversion/ensight/mesh/ensightMeshIO.C +++ b/src/conversion/ensight/mesh/ensightMeshIO.C @@ -452,24 +452,21 @@ void Foam::ensightMesh::writeCellConnectivity ensightCells::NFACED }; - for (int i=0; i < 5; ++i) + for (label typei=0; typei < ensightCells::nTypes; ++typei) { - const ensightCells::elemType& what = oldOrder[i]; + const ensightCells::elemType& what = oldOrder[typei]; writeCellConnectivity(what, ensCells, pointToGlobal, os); } + + return; } - else + + for (label typei=0; typei < ensightCells::nTypes; ++typei) { - const List enums = - ensightCells::elemEnum.enums(); + const ensightCells::elemType what = ensightCells::elemType(typei); - forAllConstIter(List, enums, iter) - { - const ensightCells::elemType what = *iter; - - writeCellConnectivity(what, ensCells, pointToGlobal, os); - } + writeCellConnectivity(what, ensCells, pointToGlobal, os); } } @@ -614,13 +611,11 @@ void Foam::ensightMesh::writeFaceConnectivity const bool raw ) const { - const List enums = ensightFaces::elemEnum.enums(); - if (raw) { - forAllConstIter(List, enums, iter) + for (label typei=0; typei < ensightFaces::nTypes; ++typei) { - const ensightFaces::elemType what = *iter; + const ensightFaces::elemType what = ensightFaces::elemType(typei); writeFaceConnectivity ( @@ -638,9 +633,9 @@ void Foam::ensightMesh::writeFaceConnectivity } else { - forAllConstIter(List, enums, iter) + for (label typei=0; typei < ensightFaces::nTypes; ++typei) { - const ensightFaces::elemType what = *iter; + const ensightFaces::elemType what = ensightFaces::elemType(typei); writeFaceConnectivity ( diff --git a/src/conversion/ensight/output/ensightOutputTemplates.C b/src/conversion/ensight/output/ensightOutputTemplates.C index 4e456fb538..65ce0098af 100644 --- a/src/conversion/ensight/output/ensightOutputTemplates.C +++ b/src/conversion/ensight/output/ensightOutputTemplates.C @@ -101,7 +101,8 @@ bool Foam::ensightOutput::writeFaceField for (label typei=0; typei < ensightFaces::nTypes; ++typei) { - const ensightFaces::elemType what = ensightFaces::elemType(typei); + const ensightFaces::elemType what = + ensightFaces::elemType(typei); writeFieldContent ( @@ -136,7 +137,7 @@ bool Foam::ensightOutput::writeFaceSubField } label start = 0; // start of sublist - for (label typei = 0; typei < ensightFaces::nTypes; ++typei) + for (label typei=0; typei < ensightFaces::nTypes; ++typei) { const ensightFaces::elemType what = ensightFaces::elemType(typei); const label size = ensFaces.faceIds(what).size(); diff --git a/src/conversion/ensight/output/ensightSerialOutputTemplates.C b/src/conversion/ensight/output/ensightSerialOutputTemplates.C index 80ed67b26a..ae15572f4c 100644 --- a/src/conversion/ensight/output/ensightSerialOutputTemplates.C +++ b/src/conversion/ensight/output/ensightSerialOutputTemplates.C @@ -84,7 +84,8 @@ bool Foam::ensightSerialOutput::writeField for (label typei=0; typei < ensightFaces::nTypes; ++typei) { - const ensightFaces::elemType what = ensightFaces::elemType(typei); + const ensightFaces::elemType what = + ensightFaces::elemType(typei); writeFieldContent ( diff --git a/src/conversion/ensight/part/ensightPartCells.C b/src/conversion/ensight/part/ensightPartCells.C index cfd5c9482f..b4fc02ad6a 100644 --- a/src/conversion/ensight/part/ensightPartCells.C +++ b/src/conversion/ensight/part/ensightPartCells.C @@ -263,12 +263,9 @@ void Foam::ensightPartCells::write } // write each element type - const List enums = - ensightCells::elemEnum.enums(); - - forAllConstIter(List, enums, iter) + for (label typei=0; typei < ensightCells::nTypes; ++typei) { - const ensightCells::elemType what = *iter; + const ensightCells::elemType what = ensightCells::elemType(typei); writeConnectivity ( @@ -308,10 +305,9 @@ void Foam::ensightPartCells::dumpInfo(Ostream& os) const os.writeEntry("name", name()); os.writeEntry("size", size()); - const List enums = ensightCells::elemEnum.enums(); - forAllConstIter(List, enums, iter) + for (label typei=0; typei < ensightCells::nTypes; ++typei) { - const ensightCells::elemType what = *iter; + const ensightCells::elemType what = ensightCells::elemType(typei); const labelUList& addr = this->cellIds(what); os.writeKeyword(ensightCells::key(what)); diff --git a/src/conversion/ensight/part/ensightPartFaces.C b/src/conversion/ensight/part/ensightPartFaces.C index 5760324826..e0ed197639 100644 --- a/src/conversion/ensight/part/ensightPartFaces.C +++ b/src/conversion/ensight/part/ensightPartFaces.C @@ -226,12 +226,9 @@ void Foam::ensightPartFaces::write } // write part - const List enums = - ensightFaces::elemEnum.enums(); - - forAllConstIter(List, enums, iter) + for (label typei=0; typei < ensightFaces::nTypes; ++typei) { - const ensightFaces::elemType what = *iter; + const ensightFaces::elemType what = ensightFaces::elemType(typei); writeConnectivity ( @@ -273,10 +270,9 @@ void Foam::ensightPartFaces::dumpInfo(Ostream& os) const os.writeEntry("start", start_); os.writeEntry("size", size()); - const List enums = ensightFaces::elemEnum.enums(); - forAllConstIter(List, enums, iter) + for (label typei=0; typei < ensightFaces::nTypes; ++typei) { - const ensightFaces::elemType what = *iter; + const ensightFaces::elemType what = ensightFaces::elemType(typei); const labelUList& addr = this->faceIds(what); os.writeKeyword(ensightFaces::key(what)); diff --git a/src/fileFormats/ensight/part/ensightCells.C b/src/fileFormats/ensight/part/ensightCells.C index 141df44053..d08996ad85 100644 --- a/src/fileFormats/ensight/part/ensightCells.C +++ b/src/fileFormats/ensight/part/ensightCells.C @@ -49,41 +49,25 @@ const Foam::NamedEnum // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // -inline Foam::label Foam::ensightCells::offset -( - const enum elemType what, - const label i -) const -{ - label n = i; - for (label typeI = 0; typeI < label(what); ++typeI) - { - n += sizes_[typeI]; - } - - return n; -} - - -void Foam::ensightCells::resize() +void Foam::ensightCells::resizeAll() { // overall required size label n = 0; - forAll(sizes_, typeI) + forAll(sizes_, typei) { - n += sizes_[typeI]; + n += sizes_[typei]; } address_.setSize(n, Zero); // assign corresponding sub-lists n = 0; - forAll(sizes_, typeI) + forAll(sizes_, typei) { - deleteDemandDrivenData(lists_[typeI]); + deleteDemandDrivenData(lists_[typei]); - lists_[typeI] = new SubList