<div dir="ltr"><div>Dear Christophe,</div><div>Here are a few more adjustments to help VC++ 2010 compiler.</div><div>with thanks!</div><div>Nigel</div><div><br></div><div><br>//---------------------------------------------------------<br>Mesh/qualityMeasures.cpp (line 725)</div><div><br></div><div>//static const double fact = 2./sqrt(3);<br> static const double fact = 2./sqrt(3.);</div><div><br></div><div><br></div><div>//---------------------------------------------------------<br>Mesh/meshGFaceBDS.cpp (lines 774,5)</div><div><br></div><div>//std::map<BDS_Point*, MVertex*>::iterator itp1 = recoverMap->find(e->p1);<br>//std::map<BDS_Point*, MVertex*>::iterator itp2 = recoverMap->find(e->p2);<br> std::map<BDS_Point*, MVertex*,PointLessThan>::iterator itp1 = recoverMap->find(e->p1);<br> std::map<BDS_Point*, MVertex*,PointLessThan>::iterator itp2 = recoverMap->find(e->p2);</div><div><br></div><div><br></div><div>//---------------------------------------------------------<br>Fltk/FlGui.cpp (line 359)</div><div>//#if not defined (__APPLE__)<br> #if !defined (__APPLE__)</div><div><br></div><div> // else add #include <ciso646> // <-- define keywords not, or, and</div><div><br></div><div><br></div><div>//---------------------------------------------------------<br>contrib/HighOrderMeshOptimizer/OptHOM.cpp (line 540)</div><div>bool OptHOM::addBndObjGrad(...)<br>{</div><div><br></div><div> return true; // line 540: expect bool return<br>}</div><div><br></div><div><br></div><div>//---------------------------------------------------------<br>contrib/HighOrderMeshOptimizer/OptHomFastCurving.cpp (from line 564)</div><div><br></div><div>// At line 568, cannot make std::pair<GEntity*,GEntity*> from (0, entity);<br>// fix: use a dummy GEntity*</div><div><br></div><div><br></div><div> else {<br> for (int iEnt = 0; iEnt < allEntities.size(); ++iEnt) {<br> GEntity* dummy=NULL; // NBN:<br> GEntity* &entity = allEntities[iEnt];<br> if (entity->dim() == p.dim-1 && (!p.onlyVisible || entity->getVisibility()))<br> //entities.insert(std::pair<GEntity*,GEntity*>(0, entity));<br> entities.insert(std::pair<GEntity*,GEntity*>(dummy, entity));<br> }<br> }</div><div><br></div><div><br></div><div>- - - <end> - - -</div><div>NN</div><div><br></div><div><br></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 22, 2014 at 7:55 AM, Christophe Geuzaine <span dir="ltr"><<a href="mailto:cgeuzaine@ulg.ac.be" target="_blank">cgeuzaine@ulg.ac.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><br>
Nigel - Thanks; these should now be fixed in SVN.<br>
<div><div class="h5"><br>
> On 21 Oct 2014, at 01:09, Nigel Nunn <<a href="mailto:nnnunnn@gmail.com">nnnunnn@gmail.com</a>> wrote:<br>
><br>
> Hi Gmsh,<br>
><br>
> A few adjustments to help Visual Studio 2010 compile svn version:<br>
><br>
> Files: /Numeric/MetricBasis.cpp, JacobianBasis.cpp<br>
><br>
> "std::sqrt (integer);"<br>
><br>
> std::sqrt(2) -> std::sqrt(2.)<br>
> std::sqrt(3) -> std::sqrt(3.)<br>
> std::sqrt(6) -> std::sqrt(6.)<br>
><br>
><br>
> File: /Mesh/meshGRegion.cpp (line 907)<br>
><br>
> //std::set<MEdge >::iterator ite = edges.begin(); // old<br>
> std::set<MEdge,Less_Edge>::iterator ite = edges.begin(); // new<br>
><br>
><br>
> File: /Mesh/meshGFaceBDS.cpp (line)<br>
><br>
> //std::map<MEdge, MVertex * >::iterator it = _middle.find(E); // old<br>
> std::map<MEdge, MVertex *, Less_Edge>::iterator it = _middle.find(E); // new<br>
><br>
><br>
> many thanks!<br>
> Nigel<br>
><br>
</div></div>> _______________________________________________<br>
> gmsh mailing list<br>
> <a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>
> <a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a><br>
<span><font color="#888888"><br>
--<br>
Prof. Christophe Geuzaine<br>
University of Liege, Electrical Engineering and Computer Science<br>
<a href="http://www.montefiore.ulg.ac.be/~geuzaine" target="_blank">http://www.montefiore.ulg.ac.be/~geuzaine</a><br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div></div>