@@ -110,7 +110,6 @@ module m_global_parameters
110110 #:else
111111 integer :: num_dims !< Number of spatial dimensions
112112 #:endif
113- integer :: num_fluids
114113 logical :: adv_alphan !< Advection of the last volume fraction
115114 logical :: mpp_lim !< Mixture physical parameters (MPP) limits
116115 integer :: time_stepper !< Time- stepper algorithm
@@ -119,9 +118,11 @@ module m_global_parameters
119118 #:if MFC_CASE_OPTIMIZATION
120119 integer , parameter :: weno_polyn = ${weno_polyn}$ !< Degree of the WENO polynomials (polyn)
121120 integer , parameter :: weno_order = ${weno_order}$ !< Order of the WENO reconstruction
121+ integer , parameter :: num_fluids = ${num_fluids}$ !< number of fluids in the simulation
122122 #:else
123123 integer :: weno_polyn !< Degree of the WENO polynomials (polyn)
124124 integer :: weno_order !< Order of the WENO reconstruction
125+ integer :: num_fluids !< number of fluids in the simulation
125126 #:endif
126127
127128 real (kind (0d0 )) :: weno_eps !< Binding for the WENO nonlinear weights
@@ -141,10 +142,10 @@ module m_global_parameters
141142 integer :: cpu_start, cpu_end, cpu_rate
142143
143144 #:if not MFC_CASE_OPTIMIZATION
144- !$acc declare create(num_dims, weno_polyn, weno_order)
145+ !$acc declare create(num_dims, weno_polyn, weno_order, num_fluids )
145146 #:endif
146147
147- !$acc declare create(mpp_lim, num_fluids, model_eqns, mixture_err, alt_soundspeed, avg_state, mapped_weno, mp_weno, weno_eps, hypoelasticity)
148+ !$acc declare create(mpp_lim, model_eqns, mixture_err, alt_soundspeed, avg_state, mapped_weno, mp_weno, weno_eps, hypoelasticity)
148149
149150 logical :: relax !< activate phase change
150151 integer :: relax_model !< Relaxation model
@@ -462,7 +463,6 @@ contains
462463
463464 ! Simulation algorithm parameters
464465 model_eqns = dflt_int
465- num_fluids = dflt_int
466466 adv_alphan = .false.
467467 mpp_lim = .false.
468468 time_stepper = dflt_int
@@ -541,6 +541,7 @@ contains
541541 #:if not MFC_CASE_OPTIMIZATION
542542 nb = 1
543543 weno_order = dflt_int
544+ num_fluids = dflt_int
544545 #:endif
545546
546547 R0_type = dflt_int
@@ -634,9 +635,6 @@ contains
634635 ! Gamma/ Pi_inf Model ===============================================
635636 if (model_eqns == 1 ) then
636637
637- ! Setting number of fluids
638- num_fluids = 1
639-
640638 ! Annotating structure of the state and flux vectors belonging
641639 ! to the system of equations defined by the selected number of
642640 ! spatial dimensions and the gamma/ pi_inf model
0 commit comments