Commit 3ad3ad6d authored by mattijs's avatar mattijs
Browse files

COMP: compiler warnings

parent 71fa6327
...@@ -1352,10 +1352,10 @@ void Foam::syncTools::syncBoundaryFaceList ...@@ -1352,10 +1352,10 @@ void Foam::syncTools::syncBoundaryFaceList
label sz = cycPatch.size(); label sz = cycPatch.size();
// Transform (copy of) data on both sides // Transform (copy of) data on both sides
Field<T> ownVals(SubField<T>(faceValues, sz, ownStart)); Field<T> ownVals = SubField<T>(faceValues, sz, ownStart);
top(nbrPatch, ownVals); top(nbrPatch, ownVals);
Field<T> nbrVals(SubField<T>(faceValues, sz, nbrStart)); Field<T> nbrVals = SubField<T>(faceValues, sz, nbrStart);
top(cycPatch, nbrVals); top(cycPatch, nbrVals);
label i0 = ownStart; label i0 = ownStart;
......
...@@ -512,7 +512,7 @@ Foam::labelList Foam::globalIndexAndTransform::transformIndicesForPatches ...@@ -512,7 +512,7 @@ Foam::labelList Foam::globalIndexAndTransform::transformIndicesForPatches
} }
} }
label nUsedTrans = sum(mag(permutation)); label nUsedTrans = round(sum(mag(permutation)));
if (nUsedTrans == 0) if (nUsedTrans == 0)
{ {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -148,6 +148,7 @@ void Foam::edgeMesh::calcPointEdges() const ...@@ -148,6 +148,7 @@ void Foam::edgeMesh::calcPointEdges() const
Foam::edgeMesh::edgeMesh() Foam::edgeMesh::edgeMesh()
: :
fileFormats::edgeFormatsCore(),
points_(0), points_(0),
edges_(0), edges_(0),
pointEdgesPtr_(NULL) pointEdgesPtr_(NULL)
...@@ -160,6 +161,7 @@ Foam::edgeMesh::edgeMesh ...@@ -160,6 +161,7 @@ Foam::edgeMesh::edgeMesh
const edgeList& edges const edgeList& edges
) )
: :
fileFormats::edgeFormatsCore(),
points_(points), points_(points),
edges_(edges), edges_(edges),
pointEdgesPtr_(NULL) pointEdgesPtr_(NULL)
...@@ -172,6 +174,7 @@ Foam::edgeMesh::edgeMesh ...@@ -172,6 +174,7 @@ Foam::edgeMesh::edgeMesh
const Xfer<edgeList>& edgeLst const Xfer<edgeList>& edgeLst
) )
: :
fileFormats::edgeFormatsCore(),
points_(0), points_(0),
edges_(0), edges_(0),
pointEdgesPtr_(NULL) pointEdgesPtr_(NULL)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd. \\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -27,6 +27,7 @@ License ...@@ -27,6 +27,7 @@ License
inline Foam::edgeMesh::edgeMesh(const edgeMesh& em) inline Foam::edgeMesh::edgeMesh(const edgeMesh& em)
: :
fileFormats::edgeFormatsCore(),
points_(em.points_), points_(em.points_),
edges_(em.edges_), edges_(em.edges_),
pointEdgesPtr_(NULL) pointEdgesPtr_(NULL)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment