New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 15027 for NEMO/branches/2021/dev_r14318_RK3_stage1/src/OCE/TRA/traqsr.F90 – NEMO

Ignore:
Timestamp:
2021-06-19T10:14:22+02:00 (3 years ago)
Author:
techene
Message:

2605: restartability OK reproducibility ~OK (when not using RGBc) for MLF, restartability OK reproducibility OK for RK3 (with appropriate CFGs)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14318_RK3_stage1/src/OCE/TRA/traqsr.F90

    r14990 r15027  
    143143         ELSE                                           ! No restart or Euler forward at 1st time step 
    144144            z1_2 = 1._wp 
    145             DO_3D( 0,0, 0,0, 1, jpk ) 
     145            DO_3D( nn_hls, nn_hls, nn_hls, nn_hls, 1, jpk ) 
    146146               qsr_hc_b(ji,jj,jk) = 0._wp 
    147147            END_3D 
     
    149149      ELSE                             !==  Swap of qsr heat content  ==! 
    150150         z1_2 = 0.5_wp 
    151          DO_3D( 0,0, 0,0, 1, jpk ) 
     151         DO_3D( nn_hls, nn_hls, nn_hls, nn_hls, 1, jpk ) 
    152152            qsr_hc_b(ji,jj,jk) = qsr_hc(ji,jj,jk) 
    153153         END_3D 
     
    212212         ENDIF 
    213213      END_2D 
    214 !!st7-2 end 
     214      !                                       !===>>> CAUTION: lbc_lnk is required on fraqsr_lev since sea ice computes on the full domain 
     215      !                                       !                otherwise restartability and reproducibility are broken  
     216      CALL lbc_lnk( 'tra_qsr', fraqsr_1lev(:,:), 'T', 1._wp ) 
     217!!st      CALL lbc_lnk( 'tra_qsr', qsr_hc(:,:,:), 'T', 1._wp ) 
    215218      ! 
    216219      ! TEMP: [tiling] This change not necessary and working array can use A2D(nn_hls) if using XIOS (subdomain support) 
     
    384387      ! 
    385388      DO jk = nk0+1, nkR                  !* down to Red extinction *!   (< ~71 meters : RGB , IR removed from calculation) 
    386          DO_2D( 0, 0, 0, 0 ) 
     389          DO_2D( 0, 0, 0, 0 ) 
    387390            !                                      !- inverse of RGB attenuation lengths 
    388391            zlogc     = zc(ji,jj,0) 
     
    429432      ! 
    430433      DO jk = nkR+1, nkG                  !* down to Green extinction *!   (< ~350 m : GB , IR+R removed from calculation) 
    431          DO_2D( 0, 0, 0, 0 ) 
     434          DO_2D( 0, 0, 0, 0 ) 
    432435            !                                      !- inverse of RGB attenuation lengths 
    433436            zlogc     = zc(ji,jj,0) 
     
    470473      ! 
    471474      DO jk = nkG+1, nkB                  !* down to Blue extinction *!   (< ~1300 m : B , IR+RG removed from calculation) 
    472          DO_2D( 0, 0, 0, 0 ) 
     475          DO_2D( 0, 0, 0, 0 ) 
    473476            !                                      !- inverse of RGB attenuation lengths 
    474477            zlogc     = zc(ji,jj,0) 
     
    558561      ! 
    559562      DO jk = 1, nk0                      !* near surface layers *!   (< ~12 meters : IR + RGB ) 
    560          DO_2D( 0, 0, 0, 0 ) 
     563          DO_2D( 0, 0, 0, 0 ) 
    561564            ze3t = e3t(ji,jj,jk,Kmm) 
    562565            zze0 = ze0(ji,jj) * EXP( - ze3t * r1_si0 )   ;   zzeR = zeR(ji,jj) * EXP( - ze3t * r1_LR )   ! IR    ; Red  at jk+1 w-level 
     
    591594      ! 
    592595      DO jk = nk0+1, nkR                  !* down to Red extinction *!   (< ~71 meters : RGB , IR removed from calculation) 
    593          DO_2D( 0, 0, 0, 0 ) 
     596          DO_2D( 0, 0, 0, 0 ) 
    594597            ze3t = e3t(ji,jj,jk,Kmm) 
    595598            zzeR = zeR(ji,jj) * EXP( - ze3t * r1_LR )                                                 ! Red          at jk+1 w-level 
Note: See TracChangeset for help on using the changeset viewer.