Skip to content

Commit

Permalink
remove dble casts
Browse files Browse the repository at this point in the history
  • Loading branch information
belericant committed Apr 21, 2023
1 parent 06bcf95 commit 8fa3412
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Flang")
add_compile_options(
$<$<COMPILE_LANGUAGE:Fortran>:-Mfreeform>
$<$<COMPILE_LANGUAGE:Fortran>:-Mpreprocess>
$<$<COMPILE_LANGUAGE:Fortran>:-fdefault-real-8>
)
elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel")
add_compile_options($<$<COMPILE_LANGUAGE:Fortran>:-free>)
Expand Down
4 changes: 2 additions & 2 deletions src/common/m_eigen_solver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,8 @@ subroutine cbabk2(nm,nl,low,igh,scale,ml,zr,zi)
! ------------------------------------------------------------------
!
integer i,j,k,ml,nl,ii,nm,igh,low
double precision scale(nl),zr(nm,ml),zi(nm,ml)
double precision s
real(wp) scale(nl),zr(nm,ml),zi(nm,ml)
real(wp) s

if (ml .eq. 0) go to 200
if (igh .eq. low) go to 120
Expand Down
4 changes: 2 additions & 2 deletions src/post_process/m_global_parameters.f90
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ subroutine s_transcoeff(omega, peclet, Re_trans, Im_trans)
c3 = (CEXP(c2) - CEXP(-c2))/(CEXP(c2) + CEXP(-c2)) ! TANH(c2)
trans = ((c2/c3 - 1._wp)**(-1) - 3._wp/c1)**(-1) ! transfer function

Re_trans = dble(trans)
Re_trans = (trans)
Im_trans = aimag(trans)

end subroutine s_transcoeff
Expand Down Expand Up @@ -856,7 +856,7 @@ subroutine s_simpson(Npt)
! phi = ln( R0 ) & return R0
do ir = 1, Npt
phi(ir) = log(R0mn) &
+ dble(ir - 1)*log(R0mx/R0mn)/dble(Npt - 1)
+ (ir - 1)*log(R0mx/R0mn)/(Npt - 1)
R0(ir) = exp(phi(ir))
end do
dphi = phi(2) - phi(1)
Expand Down
4 changes: 2 additions & 2 deletions src/pre_process/m_global_parameters.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ contains
c3 = (CEXP(c2) - CEXP(-c2))/(CEXP(c2) + CEXP(-c2)) ! TANH(c2)
trans = ((c2/c3 - 1._wp)**(-1) - 3._wp/c1)**(-1) ! transfer function

Re_trans = dble(trans)
Re_trans = (trans)
Im_trans = aimag(trans)

end subroutine s_transcoeff
Expand Down Expand Up @@ -854,7 +854,7 @@ contains
! phi = ln( R0 ) & return R0
do ir = 1, nb
phi(ir) = log(R0mn) &
+ dble(ir - 1)*log(R0mx/R0mn)/dble(nb - 1)
+ (ir - 1)*log(R0mx/R0mn)/(nb - 1)
R0(ir) = exp(phi(ir))
end do
dphi = phi(2) - phi(1)
Expand Down
4 changes: 2 additions & 2 deletions src/simulation/m_global_parameters.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ contains
c3 = (CEXP(c2) - CEXP(-c2))/(CEXP(c2) + CEXP(-c2)) ! TANH(c2)
trans = ((c2/c3 - 1._wp)**(-1) - 3._wp/c1)**(-1) ! transfer function

Re_trans = dble(trans)
Re_trans = (trans)
Im_trans = aimag(trans)

end subroutine s_transcoeff
Expand Down Expand Up @@ -1052,7 +1052,7 @@ contains
! phi = ln( R0 ) & return R0
do ir = 1, nb
phi(ir) = log(R0mn) &
+ dble(ir - 1)*log(R0mx/R0mn)/dble(nb - 1)
+ (ir - 1)*log(R0mx/R0mn)/(nb - 1)
R0(ir) = exp(phi(ir))
end do
dphi = phi(2) - phi(1)
Expand Down

0 comments on commit 8fa3412

Please sign in to comment.