@@ -24,7 +24,7 @@ contains
2424
2525 !> Checks compatibility of parameters in the input file.
2626 !! Used by all three stages
27- subroutine s_check_inputs_common
27+ impure subroutine s_check_inputs_common
2828
2929#ifndef MFC_PRE_PROCESS
3030 call s_check_inputs_time_stepping
@@ -60,7 +60,7 @@ contains
6060
6161 !> Checks constraints on the time- stepping parameters.
6262 !! Called by s_check_inputs_common for simulation and post- processing
63- subroutine s_check_inputs_time_stepping
63+ impure subroutine s_check_inputs_time_stepping
6464 if (cfl_dt) then
6565 @:PROHIBIT(cfl_target < 0 .or. cfl_target > 1._wp )
6666 @:PROHIBIT(t_stop <= 0 )
@@ -76,7 +76,7 @@ contains
7676
7777 !> Checks constraints on the finite difference parameters.
7878 !! Called by s_check_inputs_common for simulation and post- processing
79- subroutine s_check_inputs_finite_difference
79+ impure subroutine s_check_inputs_finite_difference
8080 @:PROHIBIT(all (fd_order /= (/ dflt_int, 1 , 2 , 4 / )), " fd_order must be 1, 2, or 4" )
8181 end subroutine s_check_inputs_finite_difference
8282
@@ -85,7 +85,7 @@ contains
8585#ifndef MFC_SIMULATION
8686
8787 ! Checks constraints on the total number of cells
88- subroutine s_check_total_cells
88+ impure subroutine s_check_total_cells
8989 character (len= 5 ) :: numStr !< for int to string conversion
9090
9191 call s_int_to_str(2 ** (min (1 , m) + min (1 , n) + min (1 , p))* num_procs, numStr)
@@ -100,7 +100,7 @@ contains
100100
101101 !> Checks constraints on the bubble parameters.
102102 !! Called by s_check_inputs_common for pre- processing and simulation
103- subroutine s_check_inputs_bubbles_euler
103+ impure subroutine s_check_inputs_bubbles_euler
104104 @:PROHIBIT(bubbles_euler .and. nb < 1 , " The Ensemble-Averaged Bubble Model requires nb >= 1" )
105105 @:PROHIBIT(bubbles_euler .and. polydisperse .and. (nb == 1 ), " Polydisperse bubble dynamics requires nb > 1" )
106106 @:PROHIBIT(bubbles_euler .and. polydisperse .and. (mod (nb, 2 ) == 0 ), " nb must be odd" )
@@ -117,7 +117,7 @@ contains
117117
118118 !> Checks constraints on the QBMM and polydisperse bubble parameters.
119119 !! Called by s_check_inputs_common for pre- processing and simulation
120- subroutine s_check_inputs_qbmm_and_polydisperse
120+ impure subroutine s_check_inputs_qbmm_and_polydisperse
121121 @:PROHIBIT(polydisperse .and. (.not. bubbles_euler), " Polydisperse bubble modeling requires the bubbles_euler flag to be set" )
122122 @:PROHIBIT(polydisperse .and. f_is_default(poly_sigma), " Polydisperse bubble modeling requires poly_sigma to be set" )
123123 @:PROHIBIT(polydisperse .and. poly_sigma <= 0 )
@@ -127,15 +127,15 @@ contains
127127
128128 !> Checks constraints on the adv_n flag.
129129 !! Called by s_check_inputs_common for pre- processing and simulation
130- subroutine s_check_inputs_adv_n
130+ impure subroutine s_check_inputs_adv_n
131131 @:PROHIBIT(adv_n .and. (.not. bubbles_euler))
132132 @:PROHIBIT(adv_n .and. num_fluids /= 1 )
133133 @:PROHIBIT(adv_n .and. qbmm)
134134 end subroutine s_check_inputs_adv_n
135135
136136 !> Checks constraints on the hypoelasticity parameters.
137137 !! Called by s_check_inputs_common for pre- processing and simulation
138- subroutine s_check_inputs_hypoelasticity
138+ impure subroutine s_check_inputs_hypoelasticity
139139 @:PROHIBIT(hypoelasticity .and. model_eqns /= 2 )
140140#ifdef MFC_SIMULATION
141141 @:PROHIBIT(elasticity .and. fd_order /= 4 )
@@ -144,7 +144,7 @@ contains
144144
145145 !> Checks constraints on the hyperelasticity parameters.
146146 !! Called by s_check_inputs_common for pre- processing and simulation
147- subroutine s_check_inputs_hyperelasticity
147+ impure subroutine s_check_inputs_hyperelasticity
148148 @:PROHIBIT(hyperelasticity .and. model_eqns == 1 )
149149 @:PROHIBIT(hyperelasticity .and. model_eqns > 3 )
150150#ifdef MFC_SIMULATION
@@ -154,7 +154,7 @@ contains
154154
155155 !> Checks constraints on the phase change parameters.
156156 !! Called by s_check_inputs_common for pre- processing and simulation
157- subroutine s_check_inputs_phase_change
157+ impure subroutine s_check_inputs_phase_change
158158 @:PROHIBIT(relax .and. model_eqns /= 3 , " phase change requires model_eqns = 3" )
159159 @:PROHIBIT(relax .and. relax_model < 0 , " relax_model must be in between 0 and 6" )
160160 @:PROHIBIT(relax .and. relax_model > 6 , " relax_model must be in between 0 and 6" )
@@ -180,7 +180,7 @@ contains
180180
181181 !> Checks constraints on dimensionality and the number of cells for the grid.
182182 !! Called by s_check_inputs_common for all three stages
183- subroutine s_check_inputs_simulation_domain
183+ impure subroutine s_check_inputs_simulation_domain
184184 @:PROHIBIT(m == dflt_int, " m must be set" )
185185 @:PROHIBIT(n == dflt_int, " n must be set" )
186186 @:PROHIBIT(p == dflt_int, " p must be set" )
@@ -193,7 +193,7 @@ contains
193193
194194 !> Checks constraints on model equations and number of fluids in the flow.
195195 !! Called by s_check_inputs_common for all three stages
196- subroutine s_check_inputs_model_eqns_and_num_fluids
196+ impure subroutine s_check_inputs_model_eqns_and_num_fluids
197197 @:PROHIBIT(all (model_eqns /= (/ 1 , 2 , 3 , 4 / )), " model_eqns must be 1, 2, 3, or 4" )
198198 @:PROHIBIT(num_fluids /= dflt_int .and. num_fluids < 1 , " num_fluids must be positive" )
199199 @:PROHIBIT(model_eqns == 1 .and. num_fluids /= dflt_int, " num_fluids is not supported for model_eqns = 1" )
@@ -207,7 +207,7 @@ contains
207207
208208 !> Checks constraints regarding WENO order.
209209 !! Called by s_check_inputs_common for all three stages
210- subroutine s_check_inputs_weno
210+ impure subroutine s_check_inputs_weno
211211 @:PROHIBIT(all (weno_order /= (/ 1 , 3 , 5 , 7 / )), " weno_order must be 1, 3, 5, or 7" )
212212 @:PROHIBIT(m + 1 < weno_order, " m must be at least weno_order - 1" )
213213 @:PROHIBIT(n > 0 .and. n + 1 < weno_order, " n must be at least weno_order - 1" )
@@ -216,7 +216,7 @@ contains
216216
217217 !> Checks constraints on the boundary conditions in the x- direction.
218218 !! Called by s_check_inputs_common for all three stages
219- subroutine s_check_inputs_bc
219+ impure subroutine s_check_inputs_bc
220220 logical :: skip_check !< Flag to skip the check when iterating over
221221 !! x, y, and z directions, for special treatment of cylindrical coordinates
222222
@@ -278,7 +278,7 @@ contains
278278
279279 !> Checks constraints on the stiffened equation of state fluids parameters.
280280 !! Called by s_check_inputs_common for all three stages
281- subroutine s_check_inputs_stiffened_eos
281+ impure subroutine s_check_inputs_stiffened_eos
282282 character (len= 5 ) :: iStr !< for int to string conversion
283283 integer :: bub_fac !< For allowing an extra fluid_pp if there are subgrid bubbles_euler
284284 integer :: i
@@ -315,7 +315,7 @@ contains
315315
316316 !> Checks constraints on the surface tension parameters.
317317 !! Called by s_check_inputs_common for all three stages
318- subroutine s_check_inputs_surface_tension
318+ impure subroutine s_check_inputs_surface_tension
319319
320320 integer :: i
321321
@@ -345,7 +345,7 @@ contains
345345
346346 !> Checks constraints on the inputs for moving boundaries.
347347 !! Called by s_check_inputs_common for all three stages
348- subroutine s_check_inputs_moving_bc
348+ impure subroutine s_check_inputs_moving_bc
349349 #:for X, VB2, VB3 in [(' x' , ' vb2' , ' vb3' ), (' y' , ' vb3' , ' vb1' ), (' z' , ' vb1' , ' vb2' )]
350350 if (any ((/ bc_${X}$%vb1, bc_${X}$%vb2, bc_${X}$%vb3/ ) /= 0._wp )) then
351351 if (bc_${X}$%beg == BC_SLIP_WALL) then
@@ -377,7 +377,7 @@ contains
377377 #:endfor
378378 end subroutine s_check_inputs_moving_bc
379379
380- subroutine s_check_inputs_mhd
380+ impure subroutine s_check_inputs_mhd
381381 @:PROHIBIT(mhd .and. num_fluids /= 1 , " MHD is only available for single-component flows" )
382382 @:PROHIBIT(mhd .and. model_eqns /= 2 , " MHD is only available for the 5-equation model" )
383383
0 commit comments