11!>
2- !! @file m_viscous .f90
3- !! @brief Contains module m_viscous
2+ !! @file m_monopole .f90
3+ !! @brief Contains module m_monopole
44
55#:include ' macros.fpp'
66
@@ -19,8 +19,7 @@ module m_monopole
1919 use m_helper_basic !< Functions to compare floating point numbers
2020 ! ==========================================================================
2121 implicit none
22- private; public :: s_initialize_monopole_module, s_monopole_calculations, &
23- s_compute_monopole_rhs
22+ private; public :: s_initialize_monopole_module, s_monopole_calculations
2423
2524#ifdef CRAY_ACC_WAR
2625 @:CRAY_DECLARE_GLOBAL(integer , dimension (:), pulse, support)
@@ -113,10 +112,6 @@ contains
113112
114113 end subroutine
115114
116- subroutine s_compute_monopole_rhs
117-
118- end subroutine s_compute_monopole_rhs
119-
120115 subroutine s_monopole_calculations (q_cons_vf , &
121116 q_prim_vf , t_step , id , rhs_vf )
122117
@@ -214,10 +209,9 @@ contains
214209
215210 sound = n_tait* (q_prim_vf(E_idx)%sf(j, k, l) + ((n_tait - 1d0 )/ n_tait)* B_tait)/ myRho
216211 sound = dsqrt(sound)
217- ! const_sos = dsqrt(n_tait)
212+
218213 const_sos = n_tait* (1.01d5 + ((n_tait - 1d0 )/ n_tait)* B_tait)/ myRho
219214 const_sos = dsqrt(const_sos)
220- !TODO: does const_sos need to be changed?
221215
222216 term_index = 2
223217
@@ -235,10 +229,8 @@ contains
235229 end if
236230
237231 mono_mass_src(j, k, l) = mono_mass_src(j, k, l) + s2/ sound
238- ! mono_mass_src(j, k, l) = mono_mass_src(j, k, l) + s2/ const_sos
239232
240233 if (n == 0 ) then
241-
242234 ! 1D
243235 if (dir(q) < - 0.1d0 ) then
244236 !left- going wave
@@ -248,8 +240,6 @@ contains
248240 mono_mom_src(1 , j, k, l) = mono_mom_src(1 , j, k, l) + s2
249241 end if
250242 else if (p == 0 ) then
251- ! IF ( (j==1 ) .AND. (k==1 ) .AND. proc_rank == 0 ) &
252- ! PRINT * , ' ====== Monopole magnitude: ' , f_g(the_time,sound,const_sos,mono(q))
253243 if (.not. f_is_default(dir(q))) then
254244 ! 2d
255245 !mono_mom_src(1 ,j,k,l) = s2
@@ -281,7 +271,6 @@ contains
281271
282272 if (model_eqns /= 4 ) then
283273 if (support(q) == 5 ) then
284- ! mono_E_src(j, k, l) = mono_E_src(j, k, l) + s1* sound** 2.d0 / (n_tait - 1.d0 )
285274 mono_E_src(j, k, l) = mono_E_src(j, k, l) + s1* const_sos** 2.d0 / (n_tait - 1.d0 )
286275 else
287276 mono_E_src(j, k, l) = mono_E_src(j, k, l) + s2* sound/ (n_tait - 1.d0 )
@@ -520,4 +509,4 @@ contains
520509
521510 end function f_delta
522511
523- end module
512+ end module m_monopole
0 commit comments