Skip to content
Snippets Groups Projects
Commit 66784a07 authored by Bastien Gorissen's avatar Bastien Gorissen
Browse files

Removed warnings and fix compile (?)

parent ea9fd2db
No related branches found
No related tags found
No related merge requests found
......@@ -221,7 +221,7 @@ int edge_normal
double par=0.0;
// Note: const_cast used to match MVertex.cpp interface
if(!reparamMeshVertexOnEdge(vertex, gEdge, par)) return 1;
if(!reparamMeshVertexOnEdge(const_cast<MVertex*>(vertex), gEdge, par)) return 1;
const SVector3 tangent(gEdge->firstDer(par));
// Tangent to the boundary face
......@@ -646,7 +646,7 @@ void updateBoVec<3, MFace>
gFIt != useGFace.end(); ++gFIt) {
SPoint2 par;
if(!reparamMeshVertexOnFace(vertex, *gFIt, par))
if(!reparamMeshVertexOnFace(const_cast<MVertex*>(vertex), *gFIt, par))
goto getNormalFromElements; // :P After all that!
SVector3 boNormal = (*gFIt)->normal(par);
......@@ -680,7 +680,7 @@ void updateBoVec<3, MFace>
{
const GFace *const gFace = static_cast<const GFace*>(ent);
SPoint2 par;
if(!reparamMeshVertexOnFace(vertex, gFace, par))
if(!reparamMeshVertexOnFace(const_cast<MVertex*>(vertex), gFace, par))
goto getNormalFromElements;
SVector3 boNormal = static_cast<const GFace*>(ent)->normal(par);
......@@ -815,7 +815,6 @@ int MZoneBoundary<DIM>::interiorBoundaryVertices
// Copy faces
const int nFace = zoneVertData.faces.size();
int iCount=0;
for(int iFace = 0; iFace != nFace; ++iFace) {
#if (0)
......@@ -902,7 +901,7 @@ int MZoneBoundary<DIM>::interiorBoundaryVertices
&zoneVertData.faces[0];
for(int nZFace = zoneVertData.faces.size(); nZFace--;) {
bool foundMatch = false;
for(int iGFace = 0; iGFace != nGFace; ++iGFace)
for(unsigned int iGFace = 0; iGFace != nGFace; ++iGFace)
{
// NBN: face is now a pointer, so need to de-reference
//if((*zFace)->first == globalVertData.faces[iGFace].face )
......
......@@ -324,7 +324,7 @@ class MZoneBoundary
// ... clear the faces
GlobalVertexData<FaceT>& ref = itBoV->second;
size_t nf = ref.faces.size();
for (int i=0; i<nf; ++i) {
for (unsigned int i=0; i<nf; ++i) {
++ icount;
FaceT* p = ref.faces[i].face;
if (p) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment