@@ -316,8 +316,9 @@ contains
316316 & dy)*(sqrt((x%cc(i) - x_centroid)**2 + (y%cc(j) - y_centroid)**2) - radius))*(-0.5_wp) + 0.5_wp
317317 end if
318318
319- if (((x%cc(i) - x_centroid)**2 + (y%cc(j) - y_centroid)**2 <= radius**2 .and. patch_icpp(patch_id) &
320- & %alter_patch(patch_id_fp(i, j, 0))) .or. patch_id_fp(i, j, 0) == smooth_patch_id) then
319+ if (((x%cc(i) - x_centroid)**2 + (y%cc(j) - y_centroid)**2 <= radius**2 &
320+ & .and. patch_icpp(patch_id)%alter_patch(patch_id_fp(i, j, 0))) .or. patch_id_fp(i, j, &
321+ & 0) == smooth_patch_id) then
321322 call s_assign_patch_primitive_variables(patch_id, i, j, 0, eta, q_prim_vf, patch_id_fp)
322323
323324 @:analytical()
@@ -367,8 +368,8 @@ contains
367368 do i = 0 , m
368369 myr = sqrt ((x%cc(i) - x_centroid)** 2 + (y%cc(j) - y_centroid)** 2 )
369370
370- if (myr <= radius + thickness/ 2._wp .and. myr >= radius - thickness/ 2._wp .and. patch_icpp(patch_id) &
371- & %alter_patch(patch_id_fp(i, j, 0 ))) then
371+ if (myr <= radius + thickness/ 2._wp .and. myr >= radius - thickness/ 2._wp &
372+ & .and. patch_icpp(patch_id) %alter_patch(patch_id_fp(i, j, 0 ))) then
372373 call s_assign_patch_primitive_variables(patch_id, i, j, 0 , eta, q_prim_vf, patch_id_fp)
373374
374375 @:analytical()
@@ -429,8 +430,8 @@ contains
429430 do i = 0, m
430431 myr = sqrt((x%cc(i) - x_centroid)**2 + (y%cc(j) - y_centroid)**2)
431432
432- if (myr <= radius + thickness/2._wp .and. myr >= radius - thickness/2._wp .and. patch_icpp(patch_id) &
433- & %alter_patch(patch_id_fp(i, j, k))) then
433+ if (myr <= radius + thickness/2._wp .and. myr >= radius - thickness/2._wp &
434+ & .and. patch_icpp(patch_id) %alter_patch(patch_id_fp(i, j, k))) then
434435 call s_assign_patch_primitive_variables(patch_id, i, j, k, eta, q_prim_vf, patch_id_fp)
435436
436437 @:analytical()
@@ -489,8 +490,9 @@ contains
489490 & + 0.5_wp
490491 end if
491492
492- if ((((x%cc(i) - x_centroid)/ a)** 2 + ((y%cc(j) - y_centroid)/ b)** 2 <= 1._wp .and. patch_icpp(patch_id) &
493- & %alter_patch(patch_id_fp(i, j, 0 ))) .or. patch_id_fp(i, j, 0 ) == smooth_patch_id) then
493+ if ((((x%cc(i) - x_centroid)/ a)** 2 + ((y%cc(j) - y_centroid)/ b)** 2 <= 1._wp &
494+ & .and. patch_icpp(patch_id)%alter_patch(patch_id_fp(i, j, 0 ))) .or. patch_id_fp(i, j, &
495+ & 0 ) == smooth_patch_id) then
494496 call s_assign_patch_primitive_variables(patch_id, i, j, 0 , eta, q_prim_vf, patch_id_fp)
495497
496498 @:analytical()
@@ -558,8 +560,8 @@ contains
558560 & - z_centroid)/c)**2) - 1._wp))*(-0.5_wp) + 0.5_wp
559561 end if
560562
561- if ((((x%cc(i) - x_centroid)/a)**2 + ((cart_y - y_centroid)/b)**2 + ((cart_z - z_centroid)/c) &
562- & **2 <= 1._wp .and. patch_icpp(patch_id)%alter_patch(patch_id_fp(i, j, k))) .or. patch_id_fp(i, j, &
563+ if ((((x%cc(i) - x_centroid)/a)**2 + ((cart_y - y_centroid)/b)**2 + ((cart_z - z_centroid)/c)**2 <= 1._wp &
564+ & .and. patch_icpp(patch_id)%alter_patch(patch_id_fp(i, j, k))) .or. patch_id_fp(i, j, &
563565 & k) == smooth_patch_id) then
564566 call s_assign_patch_primitive_variables(patch_id, i, j, k, eta, q_prim_vf, patch_id_fp)
565567
@@ -634,8 +636,8 @@ contains
634636 if ((q_prim_vf(1 )%sf(i, j, 0 ) < 1.e-10 ) .and. (model_eqns == 4 )) then
635637 ! zero density, reassign according to Tait EOS
636638 q_prim_vf(1 )%sf(i, j, 0 ) = (((q_prim_vf(eqn_idx%E)%sf(i, j, &
637- & 0 ) + pi_inf)/ (pref + pi_inf))** (1._wp / lit_gamma))* rhoref* (1._wp - q_prim_vf(eqn_idx%alf) &
638- & %sf(i, j, 0 ))
639+ & 0 ) + pi_inf)/ (pref + pi_inf))** (1._wp / lit_gamma))* rhoref* (1._wp &
640+ & - q_prim_vf(eqn_idx%alf) %sf(i, j, 0 ))
639641 end if
640642
641643 ! Updating the patch identities bookkeeping variable
@@ -1067,8 +1069,8 @@ contains
10671069 cart_z = z%cc(k)
10681070 end if
10691071
1070- if (x_boundary%beg <= x%cc(i) .and. x_boundary%end >= x%cc(i) &
1071- & .and. y_boundary%beg < = cart_y .and. y_boundary% end >= cart_y .and. z_boundary%beg <= cart_z .and. z_boundary%end >= cart_z) then
1072+ if (x_boundary%beg <= x%cc(i) .and. x_boundary%end >= x%cc(i) .and. y_boundary%beg < = cart_y &
1073+ & .and. y_boundary%end >= cart_y .and. z_boundary%beg <= cart_z .and. z_boundary%end >= cart_z) then
10721074 if (patch_icpp(patch_id)%alter_patch(patch_id_fp(i, j, k))) then
10731075 call s_assign_patch_primitive_variables(patch_id, i, j, k, eta, q_prim_vf, patch_id_fp)
10741076
@@ -1158,12 +1160,11 @@ contains
11581160 end if
11591161 end if
11601162
1161- if (((.not. f_is_default(length_x) .and. (cart_y - y_centroid)** 2 + (cart_z - z_centroid) &
1162- & ** 2 <= radius** 2 .and. x_boundary%beg <= x%cc(i) .and. x_boundary%end >= x%cc(i)) &
1163- & .or. (.not. f_is_default(length_y) .and. (x%cc(i) - x_centroid)** 2 + (cart_z - z_centroid) &
1164- & ** 2 <= radius** 2 .and. y_boundary%beg <= cart_y .and. y_boundary%end >= cart_y) &
1165- & .or. (.not. f_is_default(length_z) .and. (x%cc(i) - x_centroid)** 2 + (cart_y - y_centroid) &
1166- & ** 2 <= radius** 2 .and. z_boundary%beg <= cart_z .and. z_boundary%end >= cart_z) &
1163+ if (((.not. f_is_default(length_x) .and. (cart_y - y_centroid)** 2 + (cart_z - z_centroid)** 2 <= radius** 2 &
1164+ & .and. x_boundary%beg <= x%cc(i) .and. x_boundary%end >= x%cc(i)) .or. (.not. f_is_default(length_y) &
1165+ & .and. (x%cc(i) - x_centroid)** 2 + (cart_z - z_centroid)** 2 <= radius** 2 .and. y_boundary%beg <= cart_y &
1166+ & .and. y_boundary%end >= cart_y) .or. (.not. f_is_default(length_z) .and. (x%cc(i) - x_centroid)** 2 &
1167+ & + (cart_y - y_centroid)** 2 <= radius** 2 .and. z_boundary%beg <= cart_z .and. z_boundary%end >= cart_z) &
11671168 & .and. patch_icpp(patch_id)%alter_patch(patch_id_fp(i, j, k))) .or. patch_id_fp(i, j, &
11681169 & k) == smooth_patch_id) then
11691170 call s_assign_patch_primitive_variables(patch_id, i, j, k, eta, q_prim_vf, patch_id_fp)
0 commit comments