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

COMP: compiler warnings

parent 71fa6327
......@@ -1352,10 +1352,10 @@ void Foam::syncTools::syncBoundaryFaceList
label sz = cycPatch.size();
// 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);
Field<T> nbrVals(SubField<T>(faceValues, sz, nbrStart));
Field<T> nbrVals = SubField<T>(faceValues, sz, nbrStart);
top(cycPatch, nbrVals);
label i0 = ownStart;
......
......@@ -512,7 +512,7 @@ Foam::labelList Foam::globalIndexAndTransform::transformIndicesForPatches
}
}
label nUsedTrans = sum(mag(permutation));
label nUsedTrans = round(sum(mag(permutation)));
if (nUsedTrans == 0)
{
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -148,6 +148,7 @@ void Foam::edgeMesh::calcPointEdges() const
Foam::edgeMesh::edgeMesh()
:
fileFormats::edgeFormatsCore(),
points_(0),
edges_(0),
pointEdgesPtr_(NULL)
......@@ -160,6 +161,7 @@ Foam::edgeMesh::edgeMesh
const edgeList& edges
)
:
fileFormats::edgeFormatsCore(),
points_(points),
edges_(edges),
pointEdgesPtr_(NULL)
......@@ -172,6 +174,7 @@ Foam::edgeMesh::edgeMesh
const Xfer<edgeList>& edgeLst
)
:
fileFormats::edgeFormatsCore(),
points_(0),
edges_(0),
pointEdgesPtr_(NULL)
......
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
\\ / A nd | Copyright (C) 2004-2011 OpenCFD Ltd.
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -27,6 +27,7 @@ License
inline Foam::edgeMesh::edgeMesh(const edgeMesh& em)
:
fileFormats::edgeFormatsCore(),
points_(em.points_),
edges_(em.edges_),
pointEdgesPtr_(NULL)
......
Markdown is supported
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