@@ -89,7 +89,7 @@ contains
8989
9090 !$acc update host(ib_markers%sf)
9191
92- call s_find_num_ghost_points()
92+ call s_find_num_ghost_points(num_gps, num_inner_gps )
9393
9494 !$acc update device(num_gps, num_inner_gps)
9595 @:ALLOCATE(ghost_points(1 :num_gps))
@@ -342,7 +342,7 @@ contains
342342 !! @param ghost_points Ghost Points
343343 !! @param levelset Closest distance from each grid cell to IB
344344 !! @param levelset_norm Vector pointing in the direction of the closest distance
345- subroutine s_compute_image_points (ghost_points , levelset , levelset_norm )
345+ impure subroutine s_compute_image_points (ghost_points , levelset , levelset_norm )
346346
347347 type(ghost_point), dimension (num_gps), intent (INOUT ) :: ghost_points
348348 type(levelset_field), intent (IN ) :: levelset
@@ -426,13 +426,18 @@ contains
426426
427427 !> Function that finds the number of ghost points, used for allocating
428428 !! memory.
429- subroutine s_find_num_ghost_points ()
429+ pure subroutine s_find_num_ghost_points (num_gps , num_inner_gps )
430+
431+ integer , intent (out ) :: num_gps
432+ integer , intent (out ) :: num_inner_gps
433+
430434 integer , dimension (2 * gp_layers + 1 , 2 * gp_layers + 1 ) &
431435 :: subsection_2D
432436 integer , dimension (2 * gp_layers + 1 , 2 * gp_layers + 1 , 2 * gp_layers + 1 ) &
433437 :: subsection_3D
434438 integer :: i, j, k, l, q !< Iterator variables
435439
440+
436441 num_gps = 0
437442 num_inner_gps = 0
438443
@@ -470,7 +475,7 @@ contains
470475 end subroutine s_find_num_ghost_points
471476
472477 !> Function that finds the ghost points
473- subroutine s_find_ghost_points (ghost_points , inner_points )
478+ pure subroutine s_find_ghost_points (ghost_points , inner_points )
474479
475480 type(ghost_point), dimension (num_gps), intent (INOUT ) :: ghost_points
476481 type(ghost_point), dimension (num_inner_gps), intent (INOUT ) :: inner_points
@@ -585,7 +590,7 @@ contains
585590 end subroutine s_find_ghost_points
586591
587592 !> Function that computes the interpolation coefficients of image points
588- subroutine s_compute_interpolation_coeffs (ghost_points )
593+ pure subroutine s_compute_interpolation_coeffs (ghost_points )
589594
590595 type(ghost_point), dimension (num_gps), intent (INOUT ) :: ghost_points
591596
0 commit comments