- Timestamp:
- 2017-12-13T18:08:50+01:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90
r9019 r9023 27 27 USE agrif_opa_interp 28 28 #endif 29 #if defined key_asminc30 USE asminc ! Assimilation increment31 #endif32 29 ! 33 30 USE in_out_manager ! I/O manager … … 37 34 USE lib_mpp ! MPP library 38 35 USE timing ! Timing 39 USE wet_dry ! Wetting/Drying flux lim ting36 USE wet_dry ! Wetting/Drying flux limiting 40 37 41 38 IMPLICIT NONE … … 91 88 ! ! After Sea Surface Height ! 92 89 ! !------------------------------! 93 IF(ln_wd ) THEN90 IF(ln_wd_il) THEN 94 91 CALL wad_lmt(sshb, zcoef * (emp_b(:,:) + emp(:,:)), z2dt) 95 92 ENDIF … … 106 103 ! 107 104 ssha(:,:) = ( sshb(:,:) - z2dt * ( zcoef * ( emp_b(:,:) + emp(:,:) ) + zhdiv(:,:) ) ) * ssmask(:,:) 108 105 ! 106 #if defined key_agrif 107 CALL agrif_ssh( kt ) 108 #endif 109 ! 109 110 IF ( .NOT.ln_dynspg_ts ) THEN 110 ! These lines are not necessary with time splitting since111 ! boundary condition on sea level is set during ts loop112 # if defined key_agrif113 CALL agrif_ssh( kt )114 # endif115 111 IF( ln_bdy ) THEN 116 112 CALL lbc_lnk( ssha, 'T', 1. ) ! Not sure that's necessary … … 118 114 ENDIF 119 115 ENDIF 120 121 #if defined key_asminc122 IF( lk_asminc .AND. ln_sshinc .AND. ln_asmiau ) THEN ! Include the IAU weighted SSH increment123 CALL ssh_asm_inc( kt )124 ssha(:,:) = ssha(:,:) + z2dt * ssh_iau(:,:)125 ENDIF126 #endif127 116 ! !------------------------------! 128 117 ! ! outputs ! … … 209 198 ENDIF 210 199 ! 211 IF( ln_timing ) CALL timing_stop('wzv') 200 #if defined key_agrif 201 IF( .NOT. AGRIF_Root() ) THEN 202 IF ((nbondi == 1).OR.(nbondi == 2)) wn(nlci-1 , : ,:) = 0.e0 ! east 203 IF ((nbondi == -1).OR.(nbondi == 2)) wn(2 , : ,:) = 0.e0 ! west 204 IF ((nbondj == 1).OR.(nbondj == 2)) wn(: ,nlcj-1 ,:) = 0.e0 ! north 205 IF ((nbondj == -1).OR.(nbondj == 2)) wn(: ,2 ,:) = 0.e0 ! south 206 ENDIF 207 #endif 208 ! 209 IF( nn_timing == 1 ) CALL timing_stop('wzv') 212 210 ! 213 211 END SUBROUTINE wzv … … 246 244 ENDIF 247 245 ! !== Euler time-stepping: no filter, just swap ==! 248 IF( ( neuler == 0 .AND. kt == nit000 ) .OR. & 249 & ( ln_bt_fw .AND. ln_dynspg_ts ) ) THEN 246 IF ( neuler == 0 .AND. kt == nit000 ) THEN 250 247 sshb(:,:) = sshn(:,:) ! before <-- now 251 248 sshn(:,:) = ssha(:,:) ! now <-- after (before already = now)
Note: See TracChangeset
for help on using the changeset viewer.