@@ -143,8 +143,8 @@ contains
143143
144144 ! Transferring the circular patch' s radius, centroid, smearing patch
145145 ! identity and smearing coefficient information
146- center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(x_domain %end - x_domain %beg)
147- center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(y_domain %end - y_domain %beg)
146+ center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(glb_bounds(1) %end - glb_bounds(1) %beg)
147+ center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(glb_bounds(2) %end - glb_bounds(2) %beg)
148148 radius = patch_ib(patch_id)%radius
149149
150150 ! encode the periodicity information into the patch_id
@@ -197,8 +197,8 @@ contains
197197 real(wp), dimension(1:2) :: center !< x and y coordinates in local IB frame
198198 real(wp), dimension(1:3, 1:3) :: inverse_rotation
199199
200- center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(x_domain %end - x_domain %beg)
201- center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(y_domain %end - y_domain %beg)
200+ center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(glb_bounds(1) %end - glb_bounds(1) %beg)
201+ center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(glb_bounds(2) %end - glb_bounds(2) %beg)
202202 ca_in = patch_ib(patch_id)%c
203203 pa = patch_ib(patch_id)%p
204204 ma = patch_ib(patch_id)%m
@@ -360,9 +360,9 @@ contains
360360 real (wp), dimension (1 :3 ) :: xyz_local, center, offset !< x, y, z coordinates in local IB frame
361361 real (wp), dimension (1 :3 , 1 :3 ) :: inverse_rotation
362362
363- center(1 ) = patch_ib(patch_id)%x_centroid + real (xp, wp)* (x_domain %end - x_domain %beg)
364- center(2 ) = patch_ib(patch_id)%y_centroid + real (yp, wp)* (y_domain %end - y_domain %beg)
365- center(3 ) = patch_ib(patch_id)%z_centroid + real (zp, wp)* (z_domain %end - z_domain %beg)
363+ center(1 ) = patch_ib(patch_id)%x_centroid + real (xp, wp)* (glb_bounds( 1 ) %end - glb_bounds( 1 ) %beg)
364+ center(2 ) = patch_ib(patch_id)%y_centroid + real (yp, wp)* (glb_bounds( 2 ) %end - glb_bounds( 2 ) %beg)
365+ center(3 ) = patch_ib(patch_id)%z_centroid + real (zp, wp)* (glb_bounds( 3 ) %end - glb_bounds( 3 ) %beg)
366366 lz = patch_ib(patch_id)%length_z
367367 ca_in = patch_ib(patch_id)%c
368368 pa = patch_ib(patch_id)%p
@@ -533,8 +533,8 @@ contains
533533 real(wp), dimension(1:3, 1:3) :: inverse_rotation
534534
535535 ! Transferring the rectangle' s centroid and length information
536- center(1 ) = patch_ib(patch_id)%x_centroid + real (xp, wp)* (x_domain %end - x_domain %beg)
537- center(2 ) = patch_ib(patch_id)%y_centroid + real (yp, wp)* (y_domain %end - y_domain %beg)
536+ center(1 ) = patch_ib(patch_id)%x_centroid + real (xp, wp)* (glb_bounds( 1 ) %end - glb_bounds( 1 ) %beg)
537+ center(2 ) = patch_ib(patch_id)%y_centroid + real (yp, wp)* (glb_bounds( 2 ) %end - glb_bounds( 2 ) %beg)
538538 length(1 ) = patch_ib(patch_id)%length_x
539539 length(2 ) = patch_ib(patch_id)%length_y
540540 inverse_rotation(:, :) = patch_ib(patch_id)%rotation_matrix_inverse(:, :)
@@ -604,9 +604,9 @@ contains
604604
605605 ! Transferring spherical patch' s radius, centroid, smoothing patch
606606 ! identity and smoothing coefficient information
607- center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(x_domain %end - x_domain %beg)
608- center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(y_domain %end - y_domain %beg)
609- center(3) = patch_ib(patch_id)%z_centroid + real(zp, wp)*(z_domain %end - z_domain %beg)
607+ center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(glb_bounds(1) %end - glb_bounds(1) %beg)
608+ center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(glb_bounds(2) %end - glb_bounds(2) %beg)
609+ center(3) = patch_ib(patch_id)%z_centroid + real(zp, wp)*(glb_bounds(3) %end - glb_bounds(3) %beg)
610610 radius = patch_ib(patch_id)%radius
611611
612612 ! encode the periodicity information into the patch_id
@@ -675,9 +675,9 @@ contains
675675 real(wp) :: corner_distance
676676
677677 ! Transferring the cuboid' s centroid and length information
678- center(1 ) = patch_ib(patch_id)%x_centroid + real (xp, wp)* (x_domain %end - x_domain %beg)
679- center(2 ) = patch_ib(patch_id)%y_centroid + real (yp, wp)* (y_domain %end - y_domain %beg)
680- center(3 ) = patch_ib(patch_id)%z_centroid + real (zp, wp)* (z_domain %end - z_domain %beg)
678+ center(1 ) = patch_ib(patch_id)%x_centroid + real (xp, wp)* (glb_bounds( 1 ) %end - glb_bounds( 1 ) %beg)
679+ center(2 ) = patch_ib(patch_id)%y_centroid + real (yp, wp)* (glb_bounds( 2 ) %end - glb_bounds( 2 ) %beg)
680+ center(3 ) = patch_ib(patch_id)%z_centroid + real (zp, wp)* (glb_bounds( 3 ) %end - glb_bounds( 3 ) %beg)
681681 length(1 ) = patch_ib(patch_id)%length_x
682682 length(2 ) = patch_ib(patch_id)%length_y
683683 length(3 ) = patch_ib(patch_id)%length_z
@@ -760,9 +760,9 @@ contains
760760 real (wp) :: corner_distance
761761
762762 ! Transferring the cylindrical patch' s centroid, length, radius,
763- center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(x_domain %end - x_domain %beg)
764- center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(y_domain %end - y_domain %beg)
765- center(3) = patch_ib(patch_id)%z_centroid + real(zp, wp)*(z_domain %end - z_domain %beg)
763+ center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(glb_bounds(1) %end - glb_bounds(1) %beg)
764+ center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(glb_bounds(2) %end - glb_bounds(2) %beg)
765+ center(3) = patch_ib(patch_id)%z_centroid + real(zp, wp)*(glb_bounds(3) %end - glb_bounds(3) %beg)
766766 length(1) = patch_ib(patch_id)%length_x
767767 length(2) = patch_ib(patch_id)%length_y
768768 length(3) = patch_ib(patch_id)%length_z
@@ -845,8 +845,8 @@ contains
845845 real (wp), dimension (1 :3 , 1 :3 ) :: inverse_rotation
846846
847847 ! Transferring the ellipse' s centroid and length information
848- center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(x_domain %end - x_domain %beg)
849- center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(y_domain %end - y_domain %beg)
848+ center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(glb_bounds(1) %end - glb_bounds(1) %beg)
849+ center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(glb_bounds(2) %end - glb_bounds(2) %beg)
850850 ellipse_coeffs(1) = 0.5_wp*patch_ib(patch_id)%length_x
851851 ellipse_coeffs(2) = 0.5_wp*patch_ib(patch_id)%length_y
852852 inverse_rotation(:, :) = patch_ib(patch_id)%rotation_matrix_inverse(:, :)
@@ -905,8 +905,8 @@ contains
905905 real(wp), dimension(1:3, 1:3) :: inverse_rotation, rotation
906906
907907 center = 0._wp
908- center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(x_domain %end - x_domain %beg)
909- center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(y_domain %end - y_domain %beg)
908+ center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(glb_bounds(1) %end - glb_bounds(1) %beg)
909+ center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(glb_bounds(2) %end - glb_bounds(2) %beg)
910910 inverse_rotation(:, :) = patch_ib(patch_id)%rotation_matrix_inverse(:, :)
911911 rotation(:, :) = patch_ib(patch_id)%rotation_matrix(:, :)
912912 offset(:) = patch_ib(patch_id)%centroid_offset(:)
@@ -987,9 +987,9 @@ contains
987987 real(wp), dimension(1:3) :: bbox_min, bbox_max, local_corner, world_corner
988988
989989 center = 0._wp
990- center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(x_domain %end - x_domain %beg)
991- center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(y_domain %end - y_domain %beg)
992- center(3) = patch_ib(patch_id)%z_centroid + real(zp, wp)*(z_domain %end - z_domain %beg)
990+ center(1) = patch_ib(patch_id)%x_centroid + real(xp, wp)*(glb_bounds(1) %end - glb_bounds(1) %beg)
991+ center(2) = patch_ib(patch_id)%y_centroid + real(yp, wp)*(glb_bounds(2) %end - glb_bounds(2) %beg)
992+ center(3) = patch_ib(patch_id)%z_centroid + real(zp, wp)*(glb_bounds(3) %end - glb_bounds(3) %beg)
993993 inverse_rotation(:, :) = patch_ib(patch_id)%rotation_matrix_inverse(:, :)
994994 offset(:) = patch_ib(patch_id)%centroid_offset(:)
995995 spc = patch_ib(patch_id)%model_spc
0 commit comments