[Gmsh] error!

jyqxp jyqxp at 126.com
Thu Jul 11 17:13:56 CEST 2013


Sir!
     In new version gmesh2.8 ,when I  compiled it ,there were two errors :

in OptHomRun.cpp

static MElement *getWorstElement(const std::set<MElement*> &badasses, OptHomParameters &p){

  double worst = 1.e300;

  MElement *worstEl = 0;

  for (std::set<MElement*>::iterator it=badasses.begin(); it!=badasses.end(); it++) {

    double jmin, jmax, val;

    (*it)->scaledJacRange(jmin,jmax);

    val = jmin-p.BARRIER_MIN + p.BARRIER_MAX-jmax;

    if (val < worst) {

      worst = val;

      worstEl = *it;

    }

  }

Error1error C2440: 'initializing' : cannot convert from 'std::_Tree<_Traits>::const_iterator' to 'std::_Tree<_Traits>::iterator'N:\GMsh2.8\source\contrib\HighOrderMeshOptimizer\OptHomRun.cpp3401gmsh

static bool detectNewBrokenElement(const std::set<MElement*> &layer,

                                   const std::set<MElement*> &badasses, OptHomParameters &p){

  for (std::set<MElement*>::iterator it=layer.begin(); it!=layer.end(); it++)

    if (badasses.find(*it) == badasses.end()) {

      double jmin, jmax, val;

      (*it)->scaledJacRange(jmin,jmax);

      if ((jmin < p.BARRIER_MIN) || (jmax > p.BARRIER_MAX)) return true;

    }

  return false;

}

Error2error C2440: 'initializing' : cannot convert from 'std::_Tree<_Traits>::const_iterator' to 'std::_Tree<_Traits>::iterator'N:\GMsh2.8\source\contrib\HighOrderMeshOptimizer\OptHomRun.cpp4421gmsh

 

 

 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130711/624f00b7/attachment.html>