Skip to content

Commit 8a2b530

Browse files
author
Hyeoksu Lee
committed
minor fix
1 parent 330d8b5 commit 8a2b530

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pre_process/m_perturbation.fpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ contains
214214

215215
! Compute mode direction by two-time cross product
216216
sig_tmp = f_cross(xi, khat)
217-
sig_tmp = sig_tmp/sqrt(sum(sig_tmp**2))
217+
sig_tmp = sig_tmp/sqrt(sum(sig_tmp**2._wp))
218218
sig = f_cross(khat, sig_tmp)
219219

220220
! Compute perturbation for each grid
@@ -264,8 +264,8 @@ contains
264264
real(wp) :: zeta, xi
265265
real(wp), dimension(3) :: vec
266266

267-
xi = 2.0_wp*pi*theta
268-
zeta = acos(2.0_wp*eta - 1.0_wp)
267+
xi = 2._wp*pi*theta
268+
zeta = acos(2._wp*eta - 1._wp)
269269
vec(1) = sin(zeta)*cos(xi)
270270
vec(2) = sin(zeta)*sin(xi)
271271
vec(3) = cos(zeta)

0 commit comments

Comments
 (0)