@@ -423,11 +423,11 @@ contains
423423 pres_mag%R = 0.5_wp * (B%R(1 )** 2._wp + B%R(2 )** 2._wp + B%R(3 )** 2._wp )
424424 #:endif
425425 E_L = gamma_L* pres_L + pi_inf_L + 0.5_wp * rho_L* vel_L_rms + qv_L + pres_mag%L
426- E_R = gamma_R * pres_R + pi_inf_R + 0.5_wp * rho_R * vel_R_rms + qv_R &
427- & + pres_mag%R ! includes magnetic energy
426+ ! includes magnetic energy
427+ E_R = gamma_R * pres_R + pi_inf_R + 0.5_wp * rho_R * vel_R_rms + qv_R + pres_mag%R
428428 H_L = (E_L + pres_L - pres_mag%L)/ rho_L
429- H_R = (E_R + pres_R - pres_mag%R) &
430- & / rho_R ! stagnation enthalpy here excludes magnetic energy (only used to find speed of sound)
429+ ! stagnation enthalpy here excludes magnetic energy (only used to find speed of sound)
430+ H_R = (E_R + pres_R - pres_mag%R) / rho_R
431431 else
432432 E_L = gamma_L* pres_L + pi_inf_L + 5.e-1 * rho_L* vel_L_rms + qv_L
433433 E_R = gamma_R* pres_R + pi_inf_R + 5.e-1 * rho_R* vel_R_rms + qv_R
@@ -754,9 +754,8 @@ contains
754754 & eqn_idx%psi) - qR_prim_rs${XYZ}$_vf(j + 1 , k, l, &
755755 & eqn_idx%psi)))/ (s_M - s_P)
756756 else
757- flux_rs${XYZ}$_vf(j, k, l, &
758- & eqn_idx%B%beg + norm_dir - 1 ) &
759- & = 0._wp ! Without hyperbolic cleaning, make sure flux of B_normal is identically zero
757+ ! Without hyperbolic cleaning, make sure flux of B_normal is identically zero
758+ flux_rs${XYZ}$_vf(j, k, l, eqn_idx%B%beg + norm_dir - 1 ) = 0._wp
760759 end if
761760 end if
762761 flux_src_rs${XYZ}$_vf(j, k, l, eqn_idx%adv%beg) = 0._wp
@@ -1113,11 +1112,11 @@ contains
11131112 pres_mag%L = 0.5_wp * (B%L(1 )** 2._wp + B%L(2 )** 2._wp + B%L(3 )** 2._wp )
11141113 pres_mag%R = 0.5_wp * (B%R(1 )** 2._wp + B%R(2 )** 2._wp + B%R(3 )** 2._wp )
11151114 E_L = gamma_L* pres_L + pi_inf_L + 0.5_wp * rho_L* vel_L_rms + qv_L + pres_mag%L
1116- E_R = gamma_R * pres_R + pi_inf_R + 0.5_wp * rho_R * vel_R_rms + qv_R &
1117- & + pres_mag%R ! includes magnetic energy
1115+ ! includes magnetic energy
1116+ E_R = gamma_R * pres_R + pi_inf_R + 0.5_wp * rho_R * vel_R_rms + qv_R + pres_mag%R
11181117 H_L = (E_L + pres_L - pres_mag%L)/ rho_L
1119- H_R = (E_R + pres_R - pres_mag%R) &
1120- & / rho_R ! stagnation enthalpy here excludes magnetic energy (only used to find speed of sound)
1118+ ! stagnation enthalpy here excludes magnetic energy (only used to find speed of sound)
1119+ H_R = (E_R + pres_R - pres_mag%R) / rho_R
11211120 else
11221121 E_L = gamma_L* pres_L + pi_inf_L + 5.e-1 * rho_L* vel_L_rms + qv_L
11231122 E_R = gamma_R* pres_R + pi_inf_R + 5.e-1 * rho_R* vel_R_rms + qv_R
@@ -3474,8 +3473,8 @@ contains
34743473 E%L = gamma%L* pres%L + pi_inf%L + 0.5_wp * rho%L* vel_rms%L + qv%L + pres_mag%L
34753474 E%R = gamma%R* pres%R + pi_inf%R + 0.5_wp * rho%R* vel_rms%R + qv%R + pres_mag%R ! includes magnetic energy
34763475 H_no_mag%L = (E%L + pres%L - pres_mag%L)/ rho%L
3477- H_no_mag%R = (E%R + pres%R - pres_mag%R) &
3478- & / rho %R ! stagnation enthalpy here excludes magnetic energy (only used to find speed of sound)
3476+ ! stagnation enthalpy here excludes magnetic energy (only used to find speed of sound)
3477+ H_no_mag %R = (E%R + pres%R - pres_mag%R) / rho%R
34793478
34803479 ! (2 ) Compute fast wave speeds
34813480 call s_compute_speed_of_sound(pres%L, rho%L, gamma%L, pi_inf%L, H_no_mag%L, alpha_L, vel_rms%L, &
0 commit comments