@@ -293,7 +293,7 @@ contains
293293 end if
294294
295295 ! Updating the patch identities bookkeeping variable
296- if (1._wp - eta < 1.e-16_wp ) patch_id_fp(i, 0, 0) = patch_id
296+ if (1._wp - eta < sgm_eps ) patch_id_fp(i, 0, 0) = patch_id
297297
298298 end if
299299 end do
@@ -363,7 +363,7 @@ contains
363363 end if
364364
365365 ! Updating the patch identities bookkeeping variable
366- if (1._wp - eta < 1.e-16_wp ) patch_id_fp(i, j, 0 ) = patch_id
366+ if (1._wp - eta < sgm_eps ) patch_id_fp(i, j, 0 ) = patch_id
367367 end if
368368 end do
369369 end do
@@ -848,7 +848,7 @@ contains
848848 end if
849849
850850 ! Updating the patch identities bookkeeping variable
851- if (1._wp - eta < 1.e-16_wp ) patch_id_fp(i, j, 0 ) = patch_id
851+ if (1._wp - eta < sgm_eps ) patch_id_fp(i, j, 0 ) = patch_id
852852
853853 q_prim_vf(alf_idx)%sf(i, j, 0 ) = patch_icpp(patch_id)%alpha(1 )* &
854854 exp (- 0.5_wp * ((myr - radius)** 2._wp )/ (thickness/ 3._wp )** 2._wp )
@@ -917,7 +917,7 @@ contains
917917 end if
918918
919919 ! Updating the patch identities bookkeeping variable
920- if (1._wp - eta < 1.e-16_wp ) patch_id_fp(i, j, k) = patch_id
920+ if (1._wp - eta < sgm_eps ) patch_id_fp(i, j, k) = patch_id
921921
922922 q_prim_vf(alf_idx)%sf(i, j, k) = patch_icpp(patch_id)%alpha(1 )* &
923923 exp (- 0.5_wp * ((myr - radius)** 2._wp )/ (thickness/ 3._wp )** 2._wp )
@@ -994,7 +994,7 @@ contains
994994 end if
995995
996996 ! Updating the patch identities bookkeeping variable
997- if (1._wp - eta < 1.e-16_wp ) patch_id_fp(i, j, 0 ) = patch_id
997+ if (1._wp - eta < sgm_eps ) patch_id_fp(i, j, 0 ) = patch_id
998998 end if
999999 end do
10001000 end do
@@ -1080,7 +1080,7 @@ contains
10801080 end if
10811081
10821082 ! Updating the patch identities bookkeeping variable
1083- if (1._wp - eta < 1.e-16_wp ) patch_id_fp(i, j, k) = patch_id
1083+ if (1._wp - eta < sgm_eps ) patch_id_fp(i, j, k) = patch_id
10841084 end if
10851085 end do
10861086 end do
@@ -1177,7 +1177,7 @@ contains
11771177 end if
11781178
11791179 ! Updating the patch identities bookkeeping variable
1180- if (1._wp - eta < 1.e-16_wp ) patch_id_fp(i, j, 0) = patch_id
1180+ if (1._wp - eta < sgm_eps ) patch_id_fp(i, j, 0) = patch_id
11811181
11821182 end if
11831183 end if
@@ -1253,7 +1253,7 @@ contains
12531253 end if
12541254
12551255 ! Updating the patch identities bookkeeping variable
1256- if (1._wp - eta < 1.e-16_wp ) patch_id_fp(i, j, 0 ) = patch_id
1256+ if (1._wp - eta < sgm_eps ) patch_id_fp(i, j, 0 ) = patch_id
12571257 end if
12581258
12591259 end do
@@ -1329,7 +1329,7 @@ contains
13291329 end if
13301330
13311331 ! Updating the patch identities bookkeeping variable
1332- if (1._wp - eta < 1.e-16_wp ) patch_id_fp(i, j, 0 ) = patch_id
1332+ if (1._wp - eta < sgm_eps ) patch_id_fp(i, j, 0 ) = patch_id
13331333
13341334 ! Assign Parameters
13351335 q_prim_vf(mom_idx%beg)%sf(i, j, 0 ) = U0* sin (x_cc(i)/ L0)* cos (y_cc(j)/ L0)
@@ -1740,7 +1740,7 @@ contains
17401740 end if
17411741
17421742 ! Updating the patch identities bookkeeping variable
1743- if (1._wp - eta < 1.e-16_wp ) patch_id_fp(i, j, k) = patch_id
1743+ if (1._wp - eta < sgm_eps ) patch_id_fp(i, j, k) = patch_id
17441744
17451745 end if
17461746 end if
@@ -1900,7 +1900,7 @@ contains
19001900 end if
19011901
19021902 ! Updating the patch identities bookkeeping variable
1903- if (1._wp - eta < 1.e-16_wp ) patch_id_fp(i, j, k) = patch_id
1903+ if (1._wp - eta < sgm_eps ) patch_id_fp(i, j, k) = patch_id
19041904 end if
19051905 end if
19061906 end do
@@ -1988,7 +1988,7 @@ contains
19881988 end if
19891989
19901990 ! Updating the patch identities bookkeeping variable
1991- if (1._wp - eta < 1.e-16_wp ) patch_id_fp(i, j, k) = patch_id
1991+ if (1._wp - eta < sgm_eps ) patch_id_fp(i, j, k) = patch_id
19921992 end if
19931993
19941994 end do
0 commit comments