@@ -24,31 +24,11 @@ module m_ib_patches
2424 private; public :: s_apply_ib_patches, s_update_ib_rotation_matrix, f_convert_cyl_to_cart, s_instantiate_STL_models, &
2525 & s_decode_patch_periodicity
2626
27- real (wp) :: x_centroid, y_centroid, z_centroid
28- real (wp) :: length_x, length_y, length_z
29- $:GPU_DECLARE(create= ' [x_centroid, y_centroid, z_centroid]' )
30- $:GPU_DECLARE(create= ' [length_x, length_y, length_z]' )
31-
32- integer :: smooth_patch_id
33- real (wp) :: smooth_coeff
34- $:GPU_DECLARE(create= ' [smooth_patch_id, smooth_coeff]' )
35- ! These variables are analogous in both meaning and use to the similarly named components in the ic_patch_parameters type (see
36- ! m_derived_types.f90 for additional details). They are employed as a means to more concisely perform the actions necessary to
37- ! lay out a particular patch on the grid.
38-
39- real (wp) :: cart_x, cart_y, cart_z
27+ real (wp) :: cart_y, cart_z
4028 real (wp) :: sph_phi
41- $:GPU_DECLARE(create= ' [cart_x, cart_y, cart_z, sph_phi]' )
29+ $:GPU_DECLARE(create= ' [cart_y, cart_z, sph_phi]' )
4230 ! Variables to be used to hold cell locations in Cartesian coordinates if 3D simulation is using cylindrical coordinates
4331
44- type(bounds_info) :: x_boundary, y_boundary, z_boundary
45- $:GPU_DECLARE(create= ' [x_boundary, y_boundary, z_boundary]' )
46- ! These variables combine the centroid and length parameters associated with a particular patch to yield the locations of the
47- ! patch boundaries in the x- , y- and z- coordinate directions. They are used as a means to concisely perform the actions
48- ! necessary to lay out a particular patch on the grid.
49-
50- character (len= 5 ) :: istr !< string to store int to string result for error checking
51-
5232contains
5333
5434 !> Apply all immersed boundary patch geometries to mark interior cells in the IB marker array
@@ -773,15 +753,15 @@ contains
773753
774754 integer , intent (in ) :: patch_id
775755 type(integer_field), intent (inout ) :: ib_markers
776- integer , intent (in ) :: xp, yp !< integers containing the periodicity projection information
777- integer :: i, j, k, il, ir, jl, jr !< Generic loop iterators
756+ integer , intent (in ) :: xp, yp !< integers containing the periodicity projection information
757+ integer :: i, j, il, ir, jl, jr !< Generic loop iterators
778758 integer :: spc, encoded_patch_id
779759 integer :: cx, cy
780760 real (wp) :: lx(2 ), ly(2 )
781761 real (wp), dimension (1 :2 ) :: bbox_min, bbox_max
782762 real (wp), dimension (1 :3 ) :: local_corner, world_corner
783763 real (wp) :: eta, threshold
784- real (wp), dimension (1 :3 ) :: point, local_point, offset
764+ real (wp), dimension (1 :3 ) :: offset
785765 real (wp), dimension (1 :3 ) :: center, xy_local
786766 real (wp), dimension (1 :3 ,1 :3 ) :: inverse_rotation, rotation
787767
@@ -853,8 +833,8 @@ contains
853833 integer , intent (in ) :: xp, yp, zp !< integers containing the periodicity projection information
854834 integer :: i, j, k, il, ir, jl, jr, kl, kr !< Generic loop iterators
855835 integer :: spc, encoded_patch_id
856- real (wp) :: eta, threshold, corner_distance
857- real (wp), dimension (1 :3 ) :: point, local_point, offset
836+ real (wp) :: eta, threshold
837+ real (wp), dimension (1 :3 ) :: offset
858838 real (wp), dimension (1 :3 ) :: center, xyz_local
859839 real (wp), dimension (1 :3 ,1 :3 ) :: inverse_rotation, rotation
860840 integer :: cx, cy, cz
@@ -936,7 +916,6 @@ contains
936916 subroutine s_update_ib_rotation_matrix (patch_id )
937917
938918 integer , intent (in ) :: patch_id
939- integer :: i
940919 real (wp), dimension (3 , 3 , 3 ) :: rotation
941920 real (wp) :: angle
942921
0 commit comments