Skip to content
Snippets Groups Projects
Commit dd238659 authored by WAUTELET Philippe's avatar WAUTELET Philippe
Browse files

Philippe 19/12/2023: OpenACC: BITREP for fast_terms

parent 6bab98c8
No related branches found
No related tags found
No related merge requests found
...@@ -337,7 +337,11 @@ END WHERE ...@@ -337,7 +337,11 @@ END WHERE
! !
!* 2.2 estimate the Exner function at t+1 !* 2.2 estimate the Exner function at t+1
! !
ZEXNS(:,:,:) = ( PPABST(:,:,:) / XP00 ) ** (XRD/XCPD) #if !defined(MNH_BITREP) && !defined(MNH_BITREP_OMP)
ZEXNS(:,:,:) = ( PPABST(:,:,:) / XP00 ) ** (XRD/XCPD)
#else
ZEXNS(:,:,:) = BR_POW( PPABST(:,:,:) / XP00, XRD / XCPD )
#endif
!$acc end kernels !$acc end kernels
! !
! beginning of the iterative loop ! beginning of the iterative loop
...@@ -372,7 +376,11 @@ DO JITER =1,ITERMAX ...@@ -372,7 +376,11 @@ DO JITER =1,ITERMAX
CALL GET_HALO_D(ZT) CALL GET_HALO_D(ZT)
!$acc kernels !$acc kernels
#endif #endif
#if !defined(MNH_BITREP) && !defined(MNH_BITREP_OMP)
ZW1(:,:,:) = EXP( XALPW - XBETAW/ZT(:,:,:) - XGAMW*ALOG( ZT(:,:,:) ) ) ZW1(:,:,:) = EXP( XALPW - XBETAW/ZT(:,:,:) - XGAMW*ALOG( ZT(:,:,:) ) )
#else
ZW1(:,:,:) = BR_EXP( XALPW - XBETAW/ZT(:,:,:) - XGAMW * BR_LOG( ZT(:,:,:) ) )
#endif
! !
!* 2.7 compute the saturation mixing ratio at t+1 !* 2.7 compute the saturation mixing ratio at t+1
! !
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment