@@ -15,7 +15,7 @@ module m_assign_variables
1515
1616 use m_helper_basic !< Functions to compare floating point numbers
1717
18- use m_thermochem !< Thermodynamic and chemical properties
18+ use m_thermochem, only: num_species, gas_constant, get_mixture_molecular_weight
1919
2020 ! one form to another
2121 ! ==========================================================================
@@ -166,7 +166,7 @@ contains
166166 + (1d0 - eta)*patch_icpp(smooth_patch_id)%pi_inf
167167
168168 ! Species Concentrations
169- #: if chemistry
169+ if ( chemistry) then
170170 block
171171 real(kind(0d0)) :: sum, term
172172
@@ -194,7 +194,7 @@ contains
194194 q_prim_vf(T_idx)%sf(j, k, l) = &
195195 q_prim_vf(E_idx)%sf(j, k, l)*mean_molecular_weight &
196196 /(gas_constant*q_prim_vf(1)%sf(j, k, l))
197- #:endif
197+ end if
198198
199199 ! Updating the patch identities bookkeeping variable
200200 if (1d0 - eta < 1d-16) patch_id_fp(j, k, l) = patch_id
@@ -543,7 +543,7 @@ contains
543543 end do
544544
545545 ! Species Concentrations
546- #: if chemistry
546+ if ( chemistry) then
547547 block
548548 real(kind(0d0)) :: sum, term
549549
@@ -572,7 +572,7 @@ contains
572572 call get_mixture_molecular_weight(Ys, mean_molecular_weight)
573573 q_prim_vf(T_idx)%sf(j, k, l) = &
574574 q_prim_vf(E_idx)%sf(j, k, l)*mean_molecular_weight/(gas_constant*q_prim_vf(1)%sf(j, k, l))
575- #:endif
575+ end if
576576
577577 ! Set streamwise velocity to hyperbolic tangent function of y
578578 if (mixlayer_vel_profile) then
0 commit comments