diff --git a/applications/utilities/mesh/conversion/sammToFoam/readCells.C b/applications/utilities/mesh/conversion/sammToFoam/readCells.C index 698286cbe5..81385923b8 100644 --- a/applications/utilities/mesh/conversion/sammToFoam/readCells.C +++ b/applications/utilities/mesh/conversion/sammToFoam/readCells.C @@ -230,7 +230,7 @@ void sammMesh::readCells() { IFstream cellsFile(cellsFileName); - labelList labels(24, -1); + labelList labels(24, label(-1)); label lineLabel, sammLabel, regionLabel, typeFlag; for (label cellI = 0; cellI < nCells; cellI++) diff --git a/applications/utilities/mesh/conversion/star3ToFoam/readBoundary.C b/applications/utilities/mesh/conversion/star3ToFoam/readBoundary.C index f259ae36fa..0b4fd11ddb 100644 --- a/applications/utilities/mesh/conversion/star3ToFoam/readBoundary.C +++ b/applications/utilities/mesh/conversion/star3ToFoam/readBoundary.C @@ -47,7 +47,7 @@ void starMesh::readBoundary() labelList pointLabels(4); labelList pointLabelsTri(3); - labelList patchLabels(1000, -1); + labelList patchLabels(1000, label(-1)); word patchType; patchTypes_.setSize(1000); diff --git a/applications/utilities/parallelProcessing/decomposePar/domainDecompositionMesh.C b/applications/utilities/parallelProcessing/decomposePar/domainDecompositionMesh.C index 6d3c44b8ad..1451233254 100644 --- a/applications/utilities/parallelProcessing/decomposePar/domainDecompositionMesh.C +++ b/applications/utilities/parallelProcessing/decomposePar/domainDecompositionMesh.C @@ -244,8 +244,8 @@ void Foam::domainDecomposition::decomposeMesh() { label nInterfaces = interPatchFaces[procI].size(); - subPatchIDs[procI].setSize(nInterfaces, labelList(1, -1)); - subPatchStarts[procI].setSize(nInterfaces, labelList(1, 0)); + subPatchIDs[procI].setSize(nInterfaces, labelList(1, label(-1))); + subPatchStarts[procI].setSize(nInterfaces, labelList(1, label(0))); } // Processor boundaries from split cyclics @@ -319,7 +319,7 @@ void Foam::domainDecomposition::decomposeMesh() { label nIntfcs = interPatchFaces[procI].size(); subPatchIDs[procI].setSize(nIntfcs, labelList(1, patchi)); - subPatchStarts[procI].setSize(nIntfcs, labelList(1, 0)); + subPatchStarts[procI].setSize(nIntfcs, labelList(1, label(0))); } } } diff --git a/src/OpenFOAM/containers/HashTables/HashTable/HashTableCore.C b/src/OpenFOAM/containers/HashTables/HashTable/HashTableCore.C index 19dd60f1e8..7058ac6139 100644 --- a/src/OpenFOAM/containers/HashTables/HashTable/HashTableCore.C +++ b/src/OpenFOAM/containers/HashTables/HashTable/HashTableCore.C @@ -24,6 +24,7 @@ License \*---------------------------------------------------------------------------*/ #include "HashTable.H" +#include "uLabel.H" // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // @@ -47,7 +48,7 @@ Foam::label Foam::HashTableCore::canonicalSize(const label size) } // enforce power of two - unsigned int goodSize = size; + uLabel goodSize = size; if (goodSize & (goodSize - 1)) { diff --git a/src/OpenFOAM/db/IOstreams/Pstreams/UIPstream.H b/src/OpenFOAM/db/IOstreams/Pstreams/UIPstream.H index dff96c4388..7b4a7bfada 100644 --- a/src/OpenFOAM/db/IOstreams/Pstreams/UIPstream.H +++ b/src/OpenFOAM/db/IOstreams/Pstreams/UIPstream.H @@ -68,7 +68,7 @@ class UIPstream const bool clearAtEnd_; - label messageSize_; + int messageSize_; // Private Member Functions diff --git a/src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C b/src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C index 67a120afdf..a45d385894 100644 --- a/src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C +++ b/src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C @@ -222,7 +222,7 @@ int Foam::UPstream::myProcNo_(0); bool Foam::UPstream::parRun_(false); // List of process IDs -Foam::List Foam::UPstream::procIDs_(1, 0); +Foam::List Foam::UPstream::procIDs_(label(1), 0); // Standard transfer message type int Foam::UPstream::msgType_(1); diff --git a/src/OpenFOAM/db/Time/Time.C b/src/OpenFOAM/db/Time/Time.C index 6ab3baa700..754a2b9072 100644 --- a/src/OpenFOAM/db/Time/Time.C +++ b/src/OpenFOAM/db/Time/Time.C @@ -278,7 +278,7 @@ Foam::Time::Time writeControl_(wcTimeStep), writeInterval_(GREAT), secondaryWriteControl_(wcTimeStep), - secondaryWriteInterval_(labelMax), + secondaryWriteInterval_(labelMax/10.0), // bit less to allow calculations purgeWrite_(0), writeOnce_(false), subCycling_(false), @@ -370,7 +370,7 @@ Foam::Time::Time writeControl_(wcTimeStep), writeInterval_(GREAT), secondaryWriteControl_(wcTimeStep), - secondaryWriteInterval_(labelMax), + secondaryWriteInterval_(labelMax/10.0), purgeWrite_(0), writeOnce_(false), subCycling_(false), @@ -465,7 +465,7 @@ Foam::Time::Time writeControl_(wcTimeStep), writeInterval_(GREAT), secondaryWriteControl_(wcTimeStep), - secondaryWriteInterval_(labelMax), + secondaryWriteInterval_(labelMax/10.0), purgeWrite_(0), writeOnce_(false), subCycling_(false), @@ -562,7 +562,7 @@ Foam::Time::Time writeControl_(wcTimeStep), writeInterval_(GREAT), secondaryWriteControl_(wcTimeStep), - secondaryWriteInterval_(labelMax), + secondaryWriteInterval_(labelMax/10.0), purgeWrite_(0), writeOnce_(false), subCycling_(false), diff --git a/src/OpenFOAM/fields/Fields/transformList/transformList.H b/src/OpenFOAM/fields/Fields/transformList/transformList.H index a95e099249..2da8e39477 100644 --- a/src/OpenFOAM/fields/Fields/transformList/transformList.H +++ b/src/OpenFOAM/fields/Fields/transformList/transformList.H @@ -75,6 +75,28 @@ template void transformList(const tensorField&, EdgeMap&); +// Specialisations for bool +template<> +inline void transformList(const tensor&, UList&) +{} +template<> +inline void transformList(const tensorField&, UList&) +{} +template<> +inline void transformList(const tensor&, Map&) +{} +template<> +inline void transformList(const tensorField&, Map&) +{} +template<> +inline void transformList(const tensor&, EdgeMap&) +{} +template<> +inline void transformList(const tensorField&, EdgeMap&) +{} + + +// Specialisations for label template<> inline void transformList(const tensor&, labelUList&) {} @@ -95,6 +117,7 @@ inline void transformList(const tensorField&, EdgeMap