@@ -797,6 +797,7 @@ int MMG3D_defsiz_iso(MMG5_pMesh mesh,MMG5_pSol met) {
797797 }
798798 }
799799 }
800+ /* If ismet */
800801 else {
801802
802803 /* size truncation */
@@ -932,7 +933,7 @@ int MMG3D_defsiz_iso(MMG5_pMesh mesh,MMG5_pSol met) {
932933 }
933934 }
934935
935- /** 3) Travel all boundary faces to update size prescription for points on
936+ /** Step 4: Travel all boundary faces to update size prescription for points on
936937 * ridges/edges */
937938 /* Warning: here we pass more than once per each point because we see it from
938939 all the edges to which it belongs */
@@ -958,9 +959,12 @@ int MMG3D_defsiz_iso(MMG5_pMesh mesh,MMG5_pSol met) {
958959
959960 /* Skip this step if both points are on a required edge */
960961 if ( p0 -> flag == 3 && p1 -> flag == 3 ) continue ;
962+
963+ // if ( ip0 == 19680 ) printf("Coucou \n");
961964
962965 /* Skip regular edges */
963- if ( !MG_EDG (p0 -> tag ) && !MG_EDG (p1 -> tag ) ) continue ;
966+ if ( !(MG_EDG (p0 -> tag ) || (p0 -> tag & MG_NOM )) && !(MG_EDG (p1 -> tag ) || (p1 -> tag & MG_NOM )) ) continue ;
967+ // if ( !MG_EDG(p0->tag) && !MG_EDG(p1->tag) ) continue;
964968
965969 /** First step: search for local parameters */
966970 if ( !MMG3D_localParamNm (mesh ,k ,i ,ia ,& hausd ,& hmin ,& hmax ) ) {
@@ -1027,9 +1031,12 @@ int MMG3D_defsiz_iso(MMG5_pMesh mesh,MMG5_pSol met) {
10271031 else
10281032 lm = sqrt (8.0 * hausd / kappa );
10291033
1030- if ( MG_EDG (p0 -> tag ) && !MG_SIN_OR_NOM (p0 -> tag ) && p0 -> flag != 3 )
1034+ /* Condition p0->flag = 3 seems empty: TO CHECK */
1035+ // if ( MG_EDG(p0->tag) && !MG_SIN_OR_NOM(p0->tag) && p0->flag != 3 )
1036+ if ( (MG_EDG (p0 -> tag ) || (p0 -> tag & MG_NOM )) && !MG_SIN (p0 -> tag ) && p0 -> flag != 3 )
10311037 met -> m [ip0 ] = MG_MAX (hmin ,MG_MIN (met -> m [ip0 ],lm ));
1032- if ( MG_EDG (p1 -> tag ) && !MG_SIN_OR_NOM (p1 -> tag ) && p1 -> flag != 3 )
1038+ // if ( MG_EDG(p1->tag) && !MG_SIN_OR_NOM(p1->tag) && p1->flag != 3 )
1039+ if ( (MG_EDG (p1 -> tag ) || (p1 -> tag & MG_NOM )) && !MG_SIN_OR_NOM (p1 -> tag ) && p1 -> flag != 3 )
10331040 met -> m [ip1 ] = MG_MAX (hmin ,MG_MIN (met -> m [ip1 ],lm ));
10341041 }
10351042 }
0 commit comments