Skip to content

Commit c1a9e6b

Browse files
committed
fix blunder
1 parent f770a43 commit c1a9e6b

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

src/common/m_helper.fpp

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -229,13 +229,13 @@ contains
229229
real(wp), intent(in) :: omega, peclet
230230
real(wp), intent(out) :: Re_trans, Im_trans
231231

232-
complex(wp) :: trans, c1, c2, c3
233-
complex(wp) :: imag = (0._wp, 1._wp)
232+
complex :: trans, c1, c2, c3
233+
complex :: imag = (0._wp, 1._wp)
234234
real(wp) :: f_transcoeff
235235

236236
c1 = imag*omega*peclet
237-
c2 = CSQRT(c1)
238-
c3 = (CEXP(c2) - CEXP(-c2))/(CEXP(c2) + CEXP(-c2)) ! TANH(c2)
237+
c2 = csqrt(c1)
238+
c3 = (cexp(c2) - cexp(-c2))/(cexp(c2) + cexp(-c2)) ! TANH(c2)
239239
trans = ((c2/c3 - 1._wp)**(-1) - 3._wp/c1)**(-1) ! transfer function
240240

241241
Re_trans = trans
@@ -259,19 +259,6 @@ contains
259259
real(wp) :: R0mn, R0mx, dphi, tmp, sd
260260
real(wp), dimension(nb) :: phi
261261

262-
! nondiml. min. & max. initial radii for numerical quadrature
263-
!sd = 0.05e0_wp
264-
!R0mn = 0.75e0_wp
265-
!R0mx = 1.3e0_wp
266-
267-
!sd = 0.3e0_wp
268-
!R0mn = 0.3e0_wp
269-
!R0mx = 6.e0_wp
270-
271-
!sd = 0.7e0_wp
272-
!R0mn = 0.12e0_wp
273-
!R0mx = 150.e0_wp
274-
275262
sd = poly_sigma
276263
R0mn = 0.8_wp*exp(-2.8_wp*sd)
277264
R0mx = 0.2_wp*exp(9.5_wp*sd) + 1._wp

0 commit comments

Comments
 (0)