@@ -42,7 +42,7 @@ module m_boundary_common
4242
4343contains
4444
45- subroutine s_initialize_boundary_common_module ()
45+ impure subroutine s_initialize_boundary_common_module ()
4646
4747 bcxb = bc_x%beg; bcxe = bc_x%end; bcyb = bc_y%beg; bcye = bc_y%end; bczb = bc_z%beg; bcze = bc_z%end
4848
@@ -71,13 +71,12 @@ contains
7171 !> The purpose of this procedure is to populate the buffers
7272 !! of the primitive variables, depending on the selected
7373 !! boundary conditions.
74- subroutine s_populate_variables_buffers (q_prim_vf , pb , mv , bc_type )
74+ impure subroutine s_populate_variables_buffers (q_prim_vf , pb , mv , bc_type )
7575
7676 type(scalar_field), dimension (sys_size), intent (inout ) :: q_prim_vf
7777 real (wp), dimension (idwbuff(1 )%beg:, idwbuff(2 )%beg:, idwbuff(3 )%beg:, 1 :, 1 :), intent (inout ) :: pb, mv
7878 type(integer_field), dimension (1 :num_dims, - 1 :1 ), intent (in ) :: bc_type
7979
80- integer :: bc_loc, bc_dir
8180 integer :: k, l
8281
8382 ! Population of Buffers in x- direction
@@ -238,7 +237,7 @@ contains
238237
239238 end subroutine s_populate_variables_buffers
240239
241- subroutine s_ghost_cell_extrapolation (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
240+ pure subroutine s_ghost_cell_extrapolation (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
242241#ifdef _CRAYFTN
243242 !DIR$ INLINEALWAYS s_ghost_cell_extrapolation
244243#else
@@ -249,7 +248,7 @@ contains
249248 integer , intent (in ) :: bc_dir, bc_loc
250249 integer , intent (in ) :: k, l
251250
252- integer :: j, q, i
251+ integer :: j, i
253252
254253 if (qbmm .and. .not. polytropic) then
255254 call s_qbmm_extrapolation(pb, mv, bc_dir, bc_loc, k, l)
@@ -307,7 +306,7 @@ contains
307306
308307 end subroutine s_ghost_cell_extrapolation
309308
310- subroutine s_symmetry (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
309+ pure subroutine s_symmetry (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
311310#ifdef _CRAYFTN
312311 !DIR$ INLINEALWAYS s_symmetry
313312#else
@@ -571,7 +570,7 @@ contains
571570
572571 end subroutine s_symmetry
573572
574- subroutine s_periodic (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
573+ pure subroutine s_periodic (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
575574#ifdef _CRAYFTN
576575 !DIR$ INLINEALWAYS s_periodic
577576#else
@@ -714,7 +713,7 @@ contains
714713
715714 end subroutine s_periodic
716715
717- subroutine s_axis (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
716+ pure subroutine s_axis (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
718717#ifdef _CRAYFTN
719718 !DIR$ INLINEALWAYS s_axis
720719#else
@@ -778,7 +777,7 @@ contains
778777
779778 end subroutine s_axis
780779
781- subroutine s_slip_wall (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
780+ pure subroutine s_slip_wall (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
782781#ifdef _CRAYFTN
783782 !DIR$ INLINEALWAYS s_slip_wall
784783#else
@@ -789,7 +788,7 @@ contains
789788 integer , intent (in ) :: bc_dir, bc_loc
790789 integer , intent (in ) :: k, l
791790
792- integer :: j, q, i
791+ integer :: j, i
793792
794793 if (qbmm .and. .not. polytropic) then
795794 call s_qbmm_extrapolation(pb, mv, bc_dir, bc_loc, k, l)
@@ -877,7 +876,7 @@ contains
877876
878877 end subroutine s_slip_wall
879878
880- subroutine s_no_slip_wall (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
879+ pure subroutine s_no_slip_wall (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
881880#ifdef _CRAYFTN
882881 !DIR$ INLINEALWAYS s_no_slip_wall
883882#else
@@ -888,7 +887,7 @@ contains
888887 integer , intent (in ) :: bc_dir, bc_loc
889888 integer , intent (in ) :: k, l
890889
891- integer :: j, q, i
890+ integer :: j, i
892891
893892 if (qbmm .and. .not. polytropic) then
894893 call s_qbmm_extrapolation(pb, mv, bc_dir, bc_loc, k, l)
@@ -1012,7 +1011,7 @@ contains
10121011
10131012 end subroutine s_no_slip_wall
10141013
1015- subroutine s_dirichlet (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
1014+ pure subroutine s_dirichlet (q_prim_vf , pb , mv , bc_dir , bc_loc , k , l )
10161015#ifdef _CRAYFTN
10171016 !DIR$ INLINEALWAYS s_dirichlet
10181017#else
@@ -1023,7 +1022,7 @@ contains
10231022 integer , intent (in ) :: bc_dir, bc_loc
10241023 integer , intent (in ) :: k, l
10251024
1026- integer :: j, i, q
1025+ integer :: j, i
10271026
10281027#ifdef MFC_PRE_PROCESS
10291028 call s_ghost_cell_extrapolation(q_prim_vf, pb, mv, 1 , - 1 , k, l)
@@ -1081,7 +1080,7 @@ contains
10811080
10821081 end subroutine s_dirichlet
10831082
1084- subroutine s_qbmm_extrapolation (pb , mv , bc_dir , bc_loc , k , l )
1083+ pure subroutine s_qbmm_extrapolation (pb , mv , bc_dir , bc_loc , k , l )
10851084#ifdef _CRAYFTN
10861085 !DIR$ INLINEALWAYS s_qbmm_extrapolation
10871086#else
@@ -1157,12 +1156,12 @@ contains
11571156
11581157 end subroutine s_qbmm_extrapolation
11591158
1160- subroutine s_populate_capillary_buffers (c_divs , bc_type )
1159+ impure subroutine s_populate_capillary_buffers (c_divs , bc_type )
11611160
11621161 type(scalar_field), dimension (num_dims + 1 ), intent (inout ) :: c_divs
11631162 type(integer_field), dimension (1 :num_dims, - 1 :1 ), intent (in ) :: bc_type
11641163
1165- integer :: i, j, k, l
1164+ integer :: k, l
11661165
11671166 !< x- direction
11681167 if (bcxb >= 0 ) then
@@ -1280,7 +1279,7 @@ contains
12801279 end if
12811280 end subroutine s_populate_capillary_buffers
12821281
1283- subroutine s_color_function_periodic (c_divs , bc_dir , bc_loc , k , l )
1282+ pure subroutine s_color_function_periodic (c_divs , bc_dir , bc_loc , k , l )
12841283#ifdef _CRAYFTN
12851284 !DIR$ INLINEALWAYS s_color_function_periodic
12861285#else
@@ -1290,7 +1289,7 @@ contains
12901289 integer , intent (in ) :: bc_dir, bc_loc
12911290 integer , intent (in ) :: k, l
12921291
1293- integer :: j, i, q
1292+ integer :: j, i
12941293
12951294 if (bc_dir == 1 ) then !< x- direction
12961295 if (bc_loc == - 1 ) then !bc_x%beg
@@ -1338,7 +1337,7 @@ contains
13381337
13391338 end subroutine s_color_function_periodic
13401339
1341- subroutine s_color_function_reflective (c_divs , bc_dir , bc_loc , k , l )
1340+ pure subroutine s_color_function_reflective (c_divs , bc_dir , bc_loc , k , l )
13421341#ifdef _CRAYFTN
13431342 !DIR$ INLINEALWAYS s_color_function_reflective
13441343#else
@@ -1348,7 +1347,7 @@ contains
13481347 integer , intent (in ) :: bc_dir, bc_loc
13491348 integer , intent (in ) :: k, l
13501349
1351- integer :: j, i, q
1350+ integer :: j, i
13521351
13531352 if (bc_dir == 1 ) then !< x- direction
13541353 if (bc_loc == - 1 ) then !bc_x%beg
@@ -1420,7 +1419,7 @@ contains
14201419
14211420 end subroutine s_color_function_reflective
14221421
1423- subroutine s_color_function_ghost_cell_extrapolation (c_divs , bc_dir , bc_loc , k , l )
1422+ pure subroutine s_color_function_ghost_cell_extrapolation (c_divs , bc_dir , bc_loc , k , l )
14241423#ifdef _CRAYFTN
14251424 !DIR$ INLINEALWAYS s_color_function_ghost_cell_extrapolation
14261425#else
@@ -1430,7 +1429,7 @@ contains
14301429 integer , intent (in ) :: bc_dir, bc_loc
14311430 integer , intent (in ) :: k, l
14321431
1433- integer :: j, i, q
1432+ integer :: j, i
14341433
14351434 if (bc_dir == 1 ) then !< x- direction
14361435 if (bc_loc == - 1 ) then !bc_x%beg
@@ -1478,14 +1477,14 @@ contains
14781477
14791478 end subroutine s_color_function_ghost_cell_extrapolation
14801479
1481- subroutine s_create_mpi_types (bc_type )
1480+ impure subroutine s_create_mpi_types (bc_type )
14821481
14831482 type(integer_field), dimension (1 :num_dims, - 1 :1 ) :: bc_type
14841483
14851484#ifdef MFC_MPI
14861485 integer :: dir, loc
14871486 integer , dimension (3 ) :: sf_start_idx, sf_extents_loc
1488- integer :: ifile, ierr, data_size
1487+ integer :: ierr
14891488
14901489 do dir = 1 , num_dims
14911490 do loc = - 1 , 1 , 2
@@ -1511,7 +1510,7 @@ contains
15111510#endif
15121511 end subroutine s_create_mpi_types
15131512
1514- subroutine s_finalize_boundary_common_module ()
1513+ impure subroutine s_finalize_boundary_common_module ()
15151514
15161515#ifndef MFC_POST_PROCESS
15171516 if (bc_io) then
0 commit comments