Skip to content
Snippets Groups Projects
Gmsh.tab.cpp 341 KiB
Newer Older
Matti Pellika's avatar
 
Matti Pellika committed
  case 223:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      extr.mesh.ExtrudeMesh = true;
      extr.mesh.NbLayer = 1;
      extr.mesh.NbElmLayer.clear();
      extr.mesh.hLayer.clear();
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      extr.mesh.NbElmLayer.push_back((int)fabs((yyvsp[(3) - (5)].d)));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      extr.mesh.hLayer.push_back(1.);
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    ;}
    break;

Matti Pellika's avatar
 
Matti Pellika committed
  case 224:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
      extr.mesh.ExtrudeMesh = true;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      extr.mesh.NbLayer = List_Nbr((yyvsp[(3) - (7)].l));
      if(List_Nbr((yyvsp[(3) - (7)].l)) == List_Nbr((yyvsp[(5) - (7)].l))){
	extr.mesh.NbElmLayer.clear();
	extr.mesh.hLayer.clear();
	for(int i = 0; i < List_Nbr((yyvsp[(3) - (7)].l)); i++){
	  double d;
	  List_Read((yyvsp[(3) - (7)].l), i, &d);
	  extr.mesh.NbElmLayer.push_back((d > 0) ? (int)d : 1);
	  List_Read((yyvsp[(5) - (7)].l), i, &d);
	  extr.mesh.hLayer.push_back(d);
	}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      else
	yymsg(0, "Wrong layer definition {%d, %d}", List_Nbr((yyvsp[(3) - (7)].l)), List_Nbr((yyvsp[(5) - (7)].l)));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      List_Delete((yyvsp[(3) - (7)].l));
      List_Delete((yyvsp[(5) - (7)].l));
    ;}
    break;

Matti Pellika's avatar
 
Matti Pellika committed
  case 225:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
      yymsg(0, "Explicit region numbers in layers are deprecated");
      extr.mesh.ExtrudeMesh = true;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      extr.mesh.NbLayer = List_Nbr((yyvsp[(3) - (9)].l));
      if(List_Nbr((yyvsp[(3) - (9)].l)) == List_Nbr((yyvsp[(5) - (9)].l)) && List_Nbr((yyvsp[(3) - (9)].l)) == List_Nbr((yyvsp[(7) - (9)].l))){
	extr.mesh.NbElmLayer.clear();
	extr.mesh.hLayer.clear();
	for(int i = 0; i < List_Nbr((yyvsp[(3) - (9)].l)); i++){
	  double d;
	  List_Read((yyvsp[(3) - (9)].l), i, &d);
	  extr.mesh.NbElmLayer.push_back((d > 0) ? (int)d : 1);
	  List_Read((yyvsp[(7) - (9)].l), i, &d);
	  extr.mesh.hLayer.push_back(d);
	}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      else
	yymsg(0, "Wrong layer definition {%d, %d, %d}", List_Nbr((yyvsp[(3) - (9)].l)), 
	      List_Nbr((yyvsp[(5) - (9)].l)), List_Nbr((yyvsp[(7) - (9)].l)));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      List_Delete((yyvsp[(3) - (9)].l));
      List_Delete((yyvsp[(5) - (9)].l));
      List_Delete((yyvsp[(7) - (9)].l));
    ;}
    break;

Matti Pellika's avatar
 
Matti Pellika committed
  case 226:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
      extr.mesh.Recombine = true;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    ;}
    break;

Matti Pellika's avatar
 
Matti Pellika committed
  case 227:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
      int num = (int)(yyvsp[(3) - (9)].d);
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      if(FindSurface(num)){
	yymsg(0, "Surface %d already exists", num);
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      }
      else{
	Surface *s = Create_Surface(num, MSH_SURF_DISCRETE);
	Tree_Add(GModel::current()->getGEOInternals()->Surfaces, &s);
	extr.mesh.Holes[num].first = (yyvsp[(8) - (9)].d);
	extr.mesh.Holes[num].second.clear();
	for(int i = 0; i < List_Nbr((yyvsp[(6) - (9)].l)); i++){
	  double d;
	  List_Read((yyvsp[(6) - (9)].l), i, &d);
	  extr.mesh.Holes[num].second.push_back((int)d);
	}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      }
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      List_Delete((yyvsp[(6) - (9)].l));
    ;}
    break;

Matti Pellika's avatar
 
Matti Pellika committed
  case 228:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
Emilie Marchandise's avatar
Emilie Marchandise committed
      (yyval.i) = 1; // harmonic
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    ;}
    break;

Matti Pellika's avatar
 
Matti Pellika committed
  case 229:
Emilie Marchandise's avatar
Emilie Marchandise committed
      if(!strcmp((yyvsp[(1) - (1)].c), "Harmonic"))
Emilie Marchandise's avatar
Emilie Marchandise committed
        (yyval.i) = 1;
      else if(!strcmp((yyvsp[(1) - (1)].c), "Conformal"))
        (yyval.i) = -1;
Emilie Marchandise's avatar
Emilie Marchandise committed
      else if(!strcmp((yyvsp[(1) - (1)].c), "Harmonic_NoSplit"))
        (yyval.i) = 2;
      else if(!strcmp((yyvsp[(1) - (1)].c), "Conformal_NoSplit"))
        (yyval.i) = -2;
Emilie Marchandise's avatar
Emilie Marchandise committed
      Free((yyvsp[(1) - (1)].c));
    ;}
    break;

  case 230:
Emilie Marchandise's avatar
Emilie Marchandise committed
      (yyval.v)[0] = (yyval.v)[1] = 1.;
Emilie Marchandise's avatar
Emilie Marchandise committed
    ;}
    break;

  case 231:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      if(!strcmp((yyvsp[(2) - (3)].c), "Progression") || !strcmp((yyvsp[(2) - (3)].c), "Power"))
        (yyval.v)[0] = 1.;
      else if(!strcmp((yyvsp[(2) - (3)].c), "Bump"))
        (yyval.v)[0] = 2.;
      else{
        yymsg(0, "Unknown transfinite mesh type");
        (yyval.v)[0] = 1.;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      (yyval.v)[1] = (yyvsp[(3) - (3)].d);
      Free((yyvsp[(2) - (3)].c));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 232:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
      (yyval.i) = -1; // left
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 233:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
      if(!strcmp((yyvsp[(1) - (1)].c), "Right"))
        (yyval.i) = 1;
      else if(!strcmp((yyvsp[(1) - (1)].c), "Left"))
        (yyval.i) = -1;
      else // alternated
        (yyval.i) = 0;
      Free((yyvsp[(1) - (1)].c));
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 234:
    {
     (yyval.l) = List_Create(1, 1, sizeof(double));
   ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 235:
    {
     (yyval.l) = (yyvsp[(2) - (2)].l);
   ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 236:
Christophe Geuzaine's avatar
Christophe Geuzaine committed
    {
      (yyval.i) = 45;
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 237:
Christophe Geuzaine's avatar
Christophe Geuzaine committed
    {
      (yyval.i) = (int)(yyvsp[(2) - (2)].d);
Christophe Geuzaine's avatar
Christophe Geuzaine committed
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 238:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      int type = (int)(yyvsp[(6) - (7)].v)[0];
      double coef = fabs((yyvsp[(6) - (7)].v)[1]);
Christophe Geuzaine's avatar
Christophe Geuzaine committed
      if(!(yyvsp[(3) - (7)].l)){
        List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Curves);
        if(List_Nbr(tmp)){
          for(int i = 0; i < List_Nbr(tmp); i++){
            Curve *c;
            List_Read(tmp, i, &c);
            c->Method = MESH_TRANSFINITE;
            c->nbPointsTransfinite = ((yyvsp[(5) - (7)].d) > 2) ? (int)(yyvsp[(5) - (7)].d) : 2;
            c->typeTransfinite = type;
            c->coeffTransfinite = coef;
          }
        }
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        else{
Christophe Geuzaine's avatar
Christophe Geuzaine committed
          for(GModel::eiter it = GModel::current()->firstEdge(); 
              it != GModel::current()->lastEdge(); it++){
            (*it)->meshAttributes.Method = MESH_TRANSFINITE;
            (*it)->meshAttributes.nbPointsTransfinite = ((yyvsp[(5) - (7)].d) > 2) ? (int)(yyvsp[(5) - (7)].d) : 2;
            (*it)->meshAttributes.typeTransfinite = type;
            (*it)->meshAttributes.coeffTransfinite = coef;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
          }
        }
Christophe Geuzaine's avatar
Christophe Geuzaine committed
        List_Delete(tmp);
      }
      else{
        for(int i = 0; i < List_Nbr((yyvsp[(3) - (7)].l)); i++){
          double d;
          List_Read((yyvsp[(3) - (7)].l), i, &d);
          int j = (int)fabs(d);
          for(int sign = -1; sign <= 1; sign += 2){
            Curve *c = FindCurve(sign * j);
            if(c){
              c->Method = MESH_TRANSFINITE;
              c->nbPointsTransfinite = ((yyvsp[(5) - (7)].d) > 2) ? (int)(yyvsp[(5) - (7)].d) : 2;
              c->typeTransfinite = type * sign(d);
              c->coeffTransfinite = coef;
            }
            else{
              GEdge *ge = GModel::current()->getEdgeByTag(sign * j);
              if(ge){
                ge->meshAttributes.Method = MESH_TRANSFINITE;
                ge->meshAttributes.nbPointsTransfinite = ((yyvsp[(5) - (7)].d) > 2) ? (int)(yyvsp[(5) - (7)].d) : 2;
                ge->meshAttributes.typeTransfinite = type * sign(d);
                ge->meshAttributes.coeffTransfinite = coef;
              }
Christophe Geuzaine's avatar
Christophe Geuzaine committed
            }
          }
        }
        List_Delete((yyvsp[(3) - (7)].l));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 239:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
      int k = List_Nbr((yyvsp[(4) - (6)].l));
      if(k != 0 && k != 3 && k != 4){
        yymsg(0, "Wrong definition of Transfinite Surface: 0, 3 or 4 points needed");
        if(!(yyvsp[(3) - (6)].l)){
          List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Surfaces);
          if(List_Nbr(tmp)){
            for(int i = 0; i < List_Nbr(tmp); i++){
              Surface *s;
              List_Read(tmp, i, &s);
              s->Method = MESH_TRANSFINITE;
              s->Recombine_Dir = (yyvsp[(5) - (6)].i);
              List_Reset(s->TrsfPoints);
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
            }
          }
            for(GModel::fiter it = GModel::current()->firstFace(); 
                it != GModel::current()->lastFace(); it++){
              (*it)->meshAttributes.Method = MESH_TRANSFINITE;
              (*it)->meshAttributes.transfiniteArrangement = (yyvsp[(5) - (6)].i);
            }
          }
          List_Delete(tmp);
        }
        else{
          for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){
            double d;
            List_Read((yyvsp[(3) - (6)].l), i, &d);
            Surface *s = FindSurface((int)d);
            if(s){
              s->Method = MESH_TRANSFINITE;
              s->Recombine_Dir = (yyvsp[(5) - (6)].i);
              List_Reset(s->TrsfPoints);
              for(int j = 0; j < k; j++){
                double p;
                List_Read((yyvsp[(4) - (6)].l), j, &p);
                Vertex *v = FindPoint((int)fabs(p));
                if(v)
                  List_Add(s->TrsfPoints, &v);
                else
                  yymsg(0, "Unknown point %d", (int)fabs(p));
              }
            }
            else{
              GFace *gf = GModel::current()->getFaceByTag((int)d);
              if(gf){
                gf->meshAttributes.Method = MESH_TRANSFINITE;
                gf->meshAttributes.transfiniteArrangement = (yyvsp[(5) - (6)].i);
                for(int j = 0; j < k; j++){
                  double p;
                  List_Read((yyvsp[(4) - (6)].l), j, &p);
                  GVertex *gv = GModel::current()->getVertexByTag((int)fabs(p));
                  if(gv)
                    gf->meshAttributes.corners.push_back(gv);
                  else
                    yymsg(0, "Unknown point %d", (int)fabs(p));
                }
              }
              else
                yymsg(0, "Unknown surface %d", (int)d);
            }
          List_Delete((yyvsp[(3) - (6)].l));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        }
      List_Delete((yyvsp[(4) - (6)].l));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 240:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
      yymsg(1, "Elliptic Surface is deprecated: use Transfinite instead (with smoothing)");
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      List_Delete((yyvsp[(7) - (8)].l));
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 241:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
      int k = List_Nbr((yyvsp[(4) - (5)].l));
      if(k != 0 && k != 6 && k != 8){
        yymsg(0, "Wrong definition of Transfinite Volume: "
              "%d points instead of 6 or 8", k);
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      }
        if(!(yyvsp[(3) - (5)].l)){
          List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Volumes);
          if(List_Nbr(tmp)){
            for(int i = 0; i < List_Nbr(tmp); i++){
              Volume *v;
              List_Read(tmp, i, &v);
              v->Method = MESH_TRANSFINITE;
              List_Reset(v->TrsfPoints);
            }
          }
          else{
            for(GModel::riter it = GModel::current()->firstRegion(); 
                it != GModel::current()->lastRegion(); it++){
              (*it)->meshAttributes.Method = MESH_TRANSFINITE;
            }
          }
          List_Delete(tmp);
        }
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        else{
          for(int i = 0; i < List_Nbr((yyvsp[(3) - (5)].l)); i++){
            double d;
            List_Read((yyvsp[(3) - (5)].l), i, &d);
            Volume *v = FindVolume((int)d);
            if(v){
              v->Method = MESH_TRANSFINITE;
              List_Reset(v->TrsfPoints);
              for(int i = 0; i < k; i++){
                double p;
                List_Read((yyvsp[(4) - (5)].l), i, &p);
                Vertex *vert = FindPoint((int)fabs(p));
                if(vert)
                  List_Add(v->TrsfPoints, &vert);
                else
                  yymsg(0, "Unknown point %d", (int)fabs(p));
              }
            }
            else{
              GRegion *gr = GModel::current()->getRegionByTag((int)d);
              if(gr){
                gr->meshAttributes.Method = MESH_TRANSFINITE;
                for(int i = 0; i < k; i++){
                  double p;
                  List_Read((yyvsp[(4) - (5)].l), i, &p);
                  GVertex *gv = GModel::current()->getVertexByTag((int)fabs(p));
                  if(gv)
                    gr->meshAttributes.corners.push_back(gv);
                  else
                    yymsg(0, "Unknown point %d", (int)fabs(p));
                }
              }
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
              else
                yymsg(0, "Unknown volume %d", (int)d);
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
            }
          }
          List_Delete((yyvsp[(3) - (5)].l));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        }
      List_Delete((yyvsp[(4) - (5)].l));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 242:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
	List_T *tmp = Tree2List(GModel::current()->getGEOInternals()->Surfaces);
        if(List_Nbr(tmp)){
          for(int i = 0; i < List_Nbr(tmp); i++){
            Surface *s;
            List_Read(tmp, i, &s);
            s->Recombine = 1;
            s->RecombineAngle = (yyvsp[(4) - (5)].i);
          }
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        else{
          for(GModel::fiter it = GModel::current()->firstFace(); 
              it != GModel::current()->lastFace(); it++){
            (*it)->meshAttributes.recombine = 1;
            (*it)->meshAttributes.recombineAngle = (yyvsp[(4) - (5)].i);
          }
        }
        List_Delete(tmp);
      }
      else{
        for(int i = 0; i < List_Nbr((yyvsp[(3) - (5)].l)); i++){
          double d;
          List_Read((yyvsp[(3) - (5)].l), i, &d);
          Surface *s = FindSurface((int)d);
          if(s){
            s->Recombine = 1;
            s->RecombineAngle = (yyvsp[(4) - (5)].i);
          }
          else{
            GFace *gf = GModel::current()->getFaceByTag((int)d);
            if(gf){
              gf->meshAttributes.recombine = 1;
              gf->meshAttributes.recombineAngle = (yyvsp[(4) - (5)].i);
            }
            else
              yymsg(1, "Unknown surface %d", (int)d);
Christophe Geuzaine's avatar
Christophe Geuzaine committed
          }
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        }
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 243:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
      for(int i = 0; i < List_Nbr((yyvsp[(3) - (6)].l)); i++){
	double d;
	List_Read((yyvsp[(3) - (6)].l), i, &d);
	int j = (int)d;
	Surface *s = FindSurface(j);
	if(s){
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
          s->TransfiniteSmoothing = (int)(yyvsp[(5) - (6)].d);
        }
        else{
	  GFace *gf = GModel::current()->getFaceByTag(j);
	  if(gf)
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
            gf->meshAttributes.transfiniteSmoothing = (int)(yyvsp[(5) - (6)].d);
          else
	    yymsg(1, "Unknown surface %d", (int)(yyvsp[(5) - (6)].d));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
        }
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      }
      List_Delete((yyvsp[(3) - (6)].l));
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 244:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    { 
      Surface *s = FindSurface((int)(yyvsp[(8) - (10)].d));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      if(s){
	setSurfaceEmbeddedPoints(s, (yyvsp[(3) - (10)].l));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      }
      else{
        GFace *gf = GModel::current()->getFaceByTag((int)(yyvsp[(8) - (10)].d));
        if(gf){
          for(int i = 0; i < List_Nbr((yyvsp[(3) - (10)].l)); i++){
            int iPoint;
            List_Read((yyvsp[(3) - (10)].l), i, &iPoint);
            GVertex *gv = GModel::current()->getVertexByTag(iPoint);
            if(gv)
              gf->addEmbeddedVertex(gv);
            else
              yymsg(0, "Unknown point %d", iPoint);
          }
        }
        else
          yymsg(0, "Unknown surface %d", (int)(yyvsp[(8) - (10)].d));
      }
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 245:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
      Surface *s = FindSurface((int)(yyvsp[(8) - (10)].d));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      if(s){
	setSurfaceEmbeddedCurves(s, (yyvsp[(3) - (10)].l));
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      }
      else{
        GFace *gf = GModel::current()->getFaceByTag((int)(yyvsp[(8) - (10)].d));
        if(gf){
          for(int i = 0; i < List_Nbr((yyvsp[(3) - (10)].l)); i++){
            int iCurve;
            List_Read((yyvsp[(3) - (10)].l), i, &iCurve);
            GEdge *ge = GModel::current()->getEdgeByTag(iCurve);
            if(ge)
              gf->addEmbeddedEdge(ge);
            else
              yymsg(0, "Unknown line %d", iCurve);
          }
        }
        else
          yymsg(0, "Unknown surface %d", (int)(yyvsp[(8) - (10)].d));
      }
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 246:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 247:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    {
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 248:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    { 
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 249:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    { 
      if(!strcmp((yyvsp[(2) - (3)].c), "Geometry"))
        ReplaceAllDuplicates();
      else if(!strcmp((yyvsp[(2) - (3)].c), "Mesh"))
        GModel::current()->removeDuplicateMeshVertices(CTX::instance()->geom.tolerance);
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
      else
        yymsg(0, "Unknown coherence command");
      Free((yyvsp[(2) - (3)].c));
    ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 250:
Matti Pellika's avatar
 
Matti Pellika committed
    {
Matti Pellika's avatar
 
Matti Pellika committed
    
    List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (11)].l));
Matti Pellika's avatar
 
Matti Pellika committed
    std::vector<int> domain;
    
Christophe Geuzaine's avatar
Christophe Geuzaine committed
    for (int i = 0; i < List_Nbr(temp); i++){
Matti Pellika's avatar
 
Matti Pellika committed
      int item = 0;
      List_Read(temp, i, &item);
      domain.push_back(item);
    }
    List_Delete((yyvsp[(7) - (11)].l));
Matti Pellika's avatar
 
Matti Pellika committed
    List_Delete(temp);
    
    List_T *temp2 = ListOfDouble2ListOfInt((yyvsp[(9) - (11)].l));
Matti Pellika's avatar
 
Matti Pellika committed
    std::vector<int> subdomain;
Christophe Geuzaine's avatar
Christophe Geuzaine committed
    for (int i = 0; i < List_Nbr(temp2); i++){
Matti Pellika's avatar
 
Matti Pellika committed
      int item = 0;
      List_Read(temp2, i, &item);
      subdomain.push_back(item);
    }
    List_Delete((yyvsp[(9) - (11)].l));
Matti Pellika's avatar
 
Matti Pellika committed
    List_Delete(temp2);
    
    std::string fileName = "";
    fileName = (yyvsp[(3) - (11)].c);
    
Matti Pellika's avatar
 
Matti Pellika committed
    #if defined(HAVE_KBIPACK)
Matti Pellika's avatar
 
Matti Pellika committed
    Homology* homology = new Homology(GModel::current(), domain, subdomain);
    homology->setFileName(fileName);
    homology->computeRanks();
Matti Pellika's avatar
 
Matti Pellika committed
    delete homology;
    #else
    yymsg(0, "Gmsh needs to be configured with option Kbipack to use homology computation.");    
Matti Pellika's avatar
 
Matti Pellika committed
    #endif
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 251:
Matti Pellika's avatar
 
Matti Pellika committed
    {
Matti Pellika's avatar
 
Matti Pellika committed
    List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (11)].l));
Matti Pellika's avatar
 
Matti Pellika committed
    std::vector<int> domain;
    
Christophe Geuzaine's avatar
Christophe Geuzaine committed
    for (int i = 0; i < List_Nbr(temp); i++){
Matti Pellika's avatar
 
Matti Pellika committed
      int item = 0;
      List_Read(temp, i, &item);
      domain.push_back(item);
    }
Matti Pellika's avatar
 
Matti Pellika committed
    List_Delete((yyvsp[(7) - (11)].l));
Matti Pellika's avatar
 
Matti Pellika committed
    List_Delete(temp);
    
Matti Pellika's avatar
 
Matti Pellika committed
    List_T *temp2 = ListOfDouble2ListOfInt((yyvsp[(9) - (11)].l));
Matti Pellika's avatar
 
Matti Pellika committed
    std::vector<int> subdomain;
Christophe Geuzaine's avatar
Christophe Geuzaine committed
    for (int i = 0; i < List_Nbr(temp2); i++){
Matti Pellika's avatar
 
Matti Pellika committed
      int item = 0;
      List_Read(temp2, i, &item);
      subdomain.push_back(item);
    }
Matti Pellika's avatar
 
Matti Pellika committed
    List_Delete((yyvsp[(9) - (11)].l));
Matti Pellika's avatar
 
Matti Pellika committed
    List_Delete(temp2);
    
    std::string fileName = "";
    fileName = (yyvsp[(3) - (11)].c);
Matti Pellika's avatar
 
Matti Pellika committed
    
Matti Pellika's avatar
 
Matti Pellika committed
    #if defined(HAVE_KBIPACK)
Matti Pellika's avatar
 
Matti Pellika committed
    Homology* homology = new Homology(GModel::current(), domain, subdomain);
    homology->setFileName(fileName);
    homology->findGenerators();  
Matti Pellika's avatar
 
Matti Pellika committed
    delete homology;
Matti Pellika's avatar
 
Matti Pellika committed
    #else
    yymsg(0, "Gmsh needs to be configured with option Kbipack to use homology computation.");
Matti Pellika's avatar
 
Matti Pellika committed
    #endif
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 252:
Matti Pellika's avatar
 
Matti Pellika committed
    {
Matti Pellika's avatar
 
Matti Pellika committed
    List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (11)].l));
Matti Pellika's avatar
 
Matti Pellika committed
    std::vector<int> domain;
    
Christophe Geuzaine's avatar
Christophe Geuzaine committed
    for (int i = 0; i < List_Nbr(temp); i++){
Matti Pellika's avatar
 
Matti Pellika committed
      int item = 0;
      List_Read(temp, i, &item);
      domain.push_back(item);
    }
Matti Pellika's avatar
 
Matti Pellika committed
    List_Delete((yyvsp[(7) - (11)].l));
Matti Pellika's avatar
 
Matti Pellika committed
    List_Delete(temp);
    
Matti Pellika's avatar
 
Matti Pellika committed
    List_T *temp2 = ListOfDouble2ListOfInt((yyvsp[(9) - (11)].l));
Matti Pellika's avatar
 
Matti Pellika committed
    std::vector<int> subdomain;
Christophe Geuzaine's avatar
Christophe Geuzaine committed
    for (int i = 0; i < List_Nbr(temp2); i++){
Matti Pellika's avatar
 
Matti Pellika committed
      int item = 0;
      List_Read(temp2, i, &item);
      subdomain.push_back(item);
    }
Matti Pellika's avatar
 
Matti Pellika committed
    List_Delete((yyvsp[(9) - (11)].l));
Matti Pellika's avatar
 
Matti Pellika committed
    List_Delete(temp2);
    
    std::string fileName = "";
    fileName = (yyvsp[(3) - (11)].c);
Matti Pellika's avatar
 
Matti Pellika committed
    
Matti Pellika's avatar
 
Matti Pellika committed
    #if defined(HAVE_KBIPACK)
Matti Pellika's avatar
 
Matti Pellika committed
    Homology* homology = new Homology(GModel::current(), domain, subdomain);
    homology->setFileName(fileName);
    homology->findDualGenerators();
Matti Pellika's avatar
 
Matti Pellika committed
    delete homology;
Matti Pellika's avatar
 
Matti Pellika committed
    #else
    yymsg(0, "Gmsh needs to be configured with option Kbipack to use homology computation.");
Matti Pellika's avatar
 
Matti Pellika committed
    #endif
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 253:
    {
    List_T *temp = ListOfDouble2ListOfInt((yyvsp[(7) - (11)].l));
    std::vector<int> domain;
    
    for (int i = 0; i < List_Nbr(temp); i++){
      int item = 0;
      List_Read(temp, i, &item);
      domain.push_back(item);
    }
    List_Delete((yyvsp[(7) - (11)].l));
    List_Delete(temp);
    
    List_T *temp2 = ListOfDouble2ListOfInt((yyvsp[(9) - (11)].l));
    std::vector<int> subdomain;
    for (int i = 0; i < List_Nbr(temp2); i++){
      int item = 0;
      List_Read(temp2, i, &item);
      subdomain.push_back(item);
    }
    List_Delete((yyvsp[(9) - (11)].l));
    List_Delete(temp2);
    
    std::string fileName = "";
    fileName = (yyvsp[(3) - (11)].c);
    
    #if defined(HAVE_KBIPACK)
    Homology* homology = new Homology(GModel::current(), domain, subdomain);
    homology->setFileName(fileName);
    homology->findHomSequence();
    delete homology;
    #else
    yymsg(0, "Gmsh needs to be configured with option Kbipack to use homology computation.");
    #endif
    ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 254:
    { (yyval.d) = (yyvsp[(1) - (1)].d);           ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 255:
    { (yyval.d) = (yyvsp[(2) - (3)].d);           ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 256:
    { (yyval.d) = -(yyvsp[(2) - (2)].d);          ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 257:
    { (yyval.d) = (yyvsp[(2) - (2)].d);           ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 258:
    { (yyval.d) = !(yyvsp[(2) - (2)].d);          ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 259:
    { (yyval.d) = (yyvsp[(1) - (3)].d) - (yyvsp[(3) - (3)].d);      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 260:
    { (yyval.d) = (yyvsp[(1) - (3)].d) + (yyvsp[(3) - (3)].d);      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 261:
    { (yyval.d) = (yyvsp[(1) - (3)].d) * (yyvsp[(3) - (3)].d);      ;}
    break;

  case 262:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    { 
      if(!(yyvsp[(3) - (3)].d))
	yymsg(0, "Division by zero in '%g / %g'", (yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d));
	(yyval.d) = (yyvsp[(1) - (3)].d) / (yyvsp[(3) - (3)].d);     
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    ;}
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 263:
    { (yyval.d) = (int)(yyvsp[(1) - (3)].d) % (int)(yyvsp[(3) - (3)].d);  ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 264:
    { (yyval.d) = pow((yyvsp[(1) - (3)].d), (yyvsp[(3) - (3)].d));  ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 265:
    { (yyval.d) = (yyvsp[(1) - (3)].d) < (yyvsp[(3) - (3)].d);      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 266:
    { (yyval.d) = (yyvsp[(1) - (3)].d) > (yyvsp[(3) - (3)].d);      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 267:
    { (yyval.d) = (yyvsp[(1) - (3)].d) <= (yyvsp[(3) - (3)].d);     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 268:
    { (yyval.d) = (yyvsp[(1) - (3)].d) >= (yyvsp[(3) - (3)].d);     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 269:
    { (yyval.d) = (yyvsp[(1) - (3)].d) == (yyvsp[(3) - (3)].d);     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 270:
    { (yyval.d) = (yyvsp[(1) - (3)].d) != (yyvsp[(3) - (3)].d);     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 271:
    { (yyval.d) = (yyvsp[(1) - (3)].d) && (yyvsp[(3) - (3)].d);     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 272:
    { (yyval.d) = (yyvsp[(1) - (3)].d) || (yyvsp[(3) - (3)].d);     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 273:
    { (yyval.d) = (yyvsp[(1) - (5)].d) ? (yyvsp[(3) - (5)].d) : (yyvsp[(5) - (5)].d); ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 274:
    { (yyval.d) = exp((yyvsp[(3) - (4)].d));      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 275:
    { (yyval.d) = log((yyvsp[(3) - (4)].d));      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 276:
    { (yyval.d) = log10((yyvsp[(3) - (4)].d));    ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 277:
    { (yyval.d) = sqrt((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 278:
    { (yyval.d) = sin((yyvsp[(3) - (4)].d));      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;
Emilie Marchandise's avatar
Emilie Marchandise committed
  case 279:
    { (yyval.d) = asin((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 280:
    { (yyval.d) = cos((yyvsp[(3) - (4)].d));      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 281:
    { (yyval.d) = acos((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;
Emilie Marchandise's avatar
Emilie Marchandise committed
  case 282:
    { (yyval.d) = tan((yyvsp[(3) - (4)].d));      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 283:
    { (yyval.d) = atan((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 284:
    { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 285:
    { (yyval.d) = sinh((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 286:
    { (yyval.d) = cosh((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 287:
    { (yyval.d) = tanh((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 288:
    { (yyval.d) = fabs((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 289:
    { (yyval.d) = floor((yyvsp[(3) - (4)].d));    ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 290:
    { (yyval.d) = ceil((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 291:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 292:
    { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 293:
    { (yyval.d) = sqrt((yyvsp[(3) - (6)].d) * (yyvsp[(3) - (6)].d) + (yyvsp[(5) - (6)].d) * (yyvsp[(5) - (6)].d)); ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 294:
    { (yyval.d) = (yyvsp[(3) - (4)].d) * (double)rand() / (double)RAND_MAX; ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 295:
    { (yyval.d) = exp((yyvsp[(3) - (4)].d));      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 296:
    { (yyval.d) = log((yyvsp[(3) - (4)].d));      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 297:
    { (yyval.d) = log10((yyvsp[(3) - (4)].d));    ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 298:
    { (yyval.d) = sqrt((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 299:
    { (yyval.d) = sin((yyvsp[(3) - (4)].d));      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 300:
    { (yyval.d) = asin((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 301:
    { (yyval.d) = cos((yyvsp[(3) - (4)].d));      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 302:
    { (yyval.d) = acos((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 303:
    { (yyval.d) = tan((yyvsp[(3) - (4)].d));      ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 304:
    { (yyval.d) = atan((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 305:
    { (yyval.d) = atan2((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d));;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 306:
    { (yyval.d) = sinh((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 307:
    { (yyval.d) = cosh((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 308:
    { (yyval.d) = tanh((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 309:
    { (yyval.d) = fabs((yyvsp[(3) - (4)].d));     ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 310:
    { (yyval.d) = floor((yyvsp[(3) - (4)].d));    ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 311:
    { (yyval.d) = ceil((yyvsp[(3) - (4)].d));     ;}
Emilie Marchandise's avatar
Emilie Marchandise committed
  case 312:
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    { (yyval.d) = fmod((yyvsp[(3) - (6)].d), (yyvsp[(5) - (6)].d)); ;}
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
    break;

Emilie Marchandise's avatar
Emilie Marchandise committed
  case 313: