Changeset 15540 for NEMO/branches/2021/dev_r14116_HPC-10_mcastril_Mixed_Precision_implementation/src/OCE/DIA/diaar5.F90
- Timestamp:
- 2021-11-26T12:27:56+01:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2021/dev_r14116_HPC-10_mcastril_Mixed_Precision_implementation/src/OCE/DIA/diaar5.F90
r14986 r15540 30 30 PUBLIC dia_ar5_hst ! heat/salt transport 31 31 32 REAL( wp) :: vol0 ! ocean volume (interior domain)33 REAL( wp) :: area_tot ! total ocean surface (interior domain)32 REAL(dp) :: vol0 ! ocean volume (interior domain) 33 REAL(dp) :: area_tot ! total ocean surface (interior domain) 34 34 REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,: ) :: thick0 ! ocean thickness (interior domain) 35 35 REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: sn0 ! initial salinity … … 78 78 ! 79 79 REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: zarea_ssh , zbotpres ! 2D workspace 80 REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: z2d, zpe ! 2D workspace 81 REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) :: z3d, zrhd, ztpot, zgdept ! 3D workspace (zgdept: needed to use the substitute) 80 REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: z2d! 2D workspace 81 REAL(dp), ALLOCATABLE, DIMENSION(:,:) :: zpe! 2D workspace 82 REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) :: zgdept! 3D workspace (zgdept: needed to use the substitute) 83 REAL(dp), ALLOCATABLE, DIMENSION(:,:,:) :: z3d, zrhd, ztpot! 3D workspace (zgdept: needed to use the substitute) 82 84 REAL(wp), ALLOCATABLE, DIMENSION(:,:,:,:) :: ztsn ! 4D workspace 83 85 … … 137 139 zgdept(:,:,jk) = gdept(:,:,jk,Kmm) 138 140 END DO 139 CALL eos( ztsn, zrhd, zgdept) ! now in situ density using initial salinity141 CALL eos( CASTDP(ztsn), zrhd, CASTDP(zgdept)) ! now in situ density using initial salinity 140 142 ! 141 143 zbotpres(:,:) = 0._wp ! no atmospheric surface pressure, levitating sea-ice … … 232 234 ztpot(:,:,jpk) = 0._wp 233 235 DO jk = 1, jpkm1 234 ztpot(:,:,jk) = eos_pt_from_ct( CASTWP(ts(:,:,jk,jp_tem,Kmm)), CASTWP(ts(:,:,jk,jp_sal,Kmm)) )236 ztpot(:,:,jk) = eos_pt_from_ct( ts(:,:,jk,jp_tem,Kmm), ts(:,:,jk,jp_sal,Kmm) ) 235 237 END DO 236 238 ! … … 315 317 INTEGER , INTENT(in ) :: ktra ! tracer index 316 318 CHARACTER(len=3) , INTENT(in) :: cptr ! transport type 'adv'/'ldf' 317 REAL( wp), DIMENSION(A2D(nn_hls),jpk) , INTENT(in) :: puflx ! u-flux of advection/diffusion318 REAL( wp), DIMENSION(A2D(nn_hls),jpk) , INTENT(in) :: pvflx ! v-flux of advection/diffusion319 REAL(dp), DIMENSION(A2D(nn_hls),jpk) , INTENT(in) :: puflx ! u-flux of advection/diffusion 320 REAL(dp), DIMENSION(A2D(nn_hls),jpk) , INTENT(in) :: pvflx ! v-flux of advection/diffusion 319 321 ! 320 322 INTEGER :: ji, jj, jk 321 REAL( wp), DIMENSION(A2D(nn_hls)) :: z2d323 REAL(dp), DIMENSION(A2D(nn_hls)) :: z2d 322 324 323 325 z2d(:,:) = puflx(:,:,1) … … 360 362 INTEGER :: ji, jj, jk ! dummy loop indices 361 363 REAL(wp) :: zztmp 362 REAL( wp), ALLOCATABLE, DIMENSION(:,:,:,:) :: zsaldta ! Jan/Dec levitus salinity364 REAL(dp), ALLOCATABLE, DIMENSION(:,:,:,:) :: zsaldta ! Jan/Dec levitus salinity 363 365 REAL(wp), ALLOCATABLE, DIMENSION(:,:) :: zvol0 364 366 !
Note: See TracChangeset
for help on using the changeset viewer.