@@ -108,7 +108,6 @@ void MMG2D_Init_parameters(MMG5_pMesh mesh) {
108108 mesh -> info .dhd = MMG5_ANGEDG ;
109109}
110110
111-
112111int MMG2D_Set_iparameter (MMG5_pMesh mesh , MMG5_pSol sol , int iparam , MMG5_int val ){
113112 int k ;
114113
@@ -147,6 +146,9 @@ int MMG2D_Set_iparameter(MMG5_pMesh mesh, MMG5_pSol sol, int iparam, MMG5_int va
147146 mesh -> info .dhd = MMG5_ANGEDG ;
148147 }
149148 break ;
149+ case MMG2D_IPARAM_kiso :
150+ mesh -> info .kiso = val ;
151+ break ;
150152 case MMG2D_IPARAM_nofem :
151153 mesh -> info .setfem = (val == 1 )? 0 : 1 ;
152154 break ;
@@ -397,11 +399,11 @@ int MMG2D_Set_localParameter(MMG5_pMesh mesh,MMG5_pSol sol, int typ, MMG5_int re
397399 fprintf (stderr ," max number of local parameters: %d\n" ,mesh -> info .npar );
398400 return 0 ;
399401 }
400- if ( typ != MMG5_Triangle && typ != MMG5_Edg ) {
402+ if ( typ != MMG5_Triangle && typ != MMG5_Edg && typ != MMG5_Crn ) {
401403 fprintf (stderr ,"\n ## Warning: %s: you must apply your local parameters" ,
402404 __func__ );
403- fprintf (stderr ," on triangles (MMG5_Triangle or %d) or edges"
404- " (MMG5_Edg or %d).\n" ,MMG5_Triangle ,MMG5_Edg );
405+ fprintf (stderr ," on triangles (MMG5_Triangle or %d), edges"
406+ " (MMG5_Edg or %d) or corners (MMG5_Crn or %d) .\n" ,MMG5_Triangle ,MMG5_Edg , MMG5_Crn );
405407 fprintf (stderr ,"\n ## Unknown type of entity: ignored.\n" );
406408 return 0 ;
407409 }
@@ -447,7 +449,7 @@ int MMG2D_Set_localParameter(MMG5_pMesh mesh,MMG5_pSol sol, int typ, MMG5_int re
447449 mesh -> info .par [mesh -> info .npari ].hmin = hmin ;
448450 mesh -> info .par [mesh -> info .npari ].hmax = hmax ;
449451 mesh -> info .par [mesh -> info .npari ].hausd = hausd ;
450-
452+
451453 switch ( typ )
452454 {
453455 case ( MMG5_Triangle ):
@@ -456,6 +458,9 @@ int MMG2D_Set_localParameter(MMG5_pMesh mesh,MMG5_pSol sol, int typ, MMG5_int re
456458 case ( MMG5_Edg ):
457459 mesh -> info .parTyp |= MG_Edge ;
458460 break ;
461+ case ( MMG5_Crn ) :
462+ mesh -> info .parTyp |= MG_Crn ;
463+ break ;
459464 default :
460465 fprintf (stderr ,"\n ## Error: %s: unexpected entity type: %s.\n" ,
461466 __func__ ,MMG5_Get_entitiesName (typ ));
0 commit comments