Skip to content
Snippets Groups Projects
Commit b0768a15 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix msvc compile

parent 98590266
No related branches found
No related tags found
No related merge requests found
...@@ -238,6 +238,7 @@ class MPolygon : public MElement { ...@@ -238,6 +238,7 @@ class MPolygon : public MElement {
virtual const polynomialBasis* getFunctionSpace(int order=-1) const virtual const polynomialBasis* getFunctionSpace(int order=-1) const
{ {
if (_orig) return _orig->getFunctionSpace(order); if (_orig) return _orig->getFunctionSpace(order);
return 0;
} }
virtual void getShapeFunctions(double u, double v, double w, double s[], int o) virtual void getShapeFunctions(double u, double v, double w, double s[], int o)
{ {
......
...@@ -395,7 +395,7 @@ PView *GMSH_DistancePlugin::execute(PView *v) ...@@ -395,7 +395,7 @@ PView *GMSH_DistancePlugin::execute(PView *v)
} }
} }
} }
int mid = (int)floor(allElems.size()/2); int mid = (int)floor(allElems.size() / 2.);
MElement *e = allElems[mid]; MElement *e = allElems[mid];
MVertex *vFIX = e->getVertex(0); MVertex *vFIX = e->getVertex(0);
myAssembler.fixVertex(vFIX, 0, 1, 0.0); myAssembler.fixVertex(vFIX, 0, 1, 0.0);
......
...@@ -102,7 +102,7 @@ class groupOfLagMultElements : public groupOfElements ...@@ -102,7 +102,7 @@ class groupOfLagMultElements : public groupOfElements
void fillElementContainer(groupOfElements &pElem, groupOfElements &sElem) void fillElementContainer(groupOfElements &pElem, groupOfElements &sElem)
{ {
groupOfElements::elementContainer::iterator itp = pElem.begin(); groupOfElements::elementContainer::const_iterator itp = pElem.begin();
for (;itp!=pElem.end(); itp++) for (;itp!=pElem.end(); itp++)
{ {
if ((*itp)->getParent()) if ((*itp)->getParent())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment