- Timestamp:
- 2020-04-17T10:28:12+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/dev_r12377_KERNEL-06_techene_e3/src/OCE/DYN/sshwzv.F90
r12724 r12761 229 229 230 230 231 SUBROUTINE ssh_atf( kt, Kbb, Kmm, Kaa, pssh )231 SUBROUTINE ssh_atf( kt, Kbb, Kmm, Kaa, pssh, pssh_f ) 232 232 !!---------------------------------------------------------------------- 233 233 !! *** ROUTINE ssh_atf *** … … 244 244 !! Reference : Leclair, M., and G. Madec, 2009, Ocean Modelling. 245 245 !!---------------------------------------------------------------------- 246 INTEGER , INTENT(in ) :: kt ! ocean time-step index 247 INTEGER , INTENT(in ) :: Kbb, Kmm, Kaa ! ocean time level indices 248 REAL(wp), DIMENSION(jpi,jpj,jpt), INTENT(inout) :: pssh ! SSH field 246 INTEGER , INTENT(in ) :: kt ! ocean time-step index 247 INTEGER , INTENT(in ) :: Kbb, Kmm, Kaa ! ocean time level indices 248 REAL(wp), DIMENSION(jpi,jpj,jpt) , TARGET, INTENT(inout) :: pssh ! SSH field 249 REAL(wp), DIMENSION(jpi,jpj ), OPTIONAL, TARGET, INTENT( out) :: pssh_f ! filtered SSH field 249 250 ! 250 251 REAL(wp) :: zcoef ! local scalar 252 REAL(wp), POINTER, DIMENSION(:,:) :: zssh ! pointer for filtered SSH 251 253 !!---------------------------------------------------------------------- 252 254 ! … … 260 262 ! !== Euler time-stepping: no filter, just swap ==! 261 263 IF ( .NOT.( l_1st_euler ) ) THEN ! Only do time filtering for leapfrog timesteps 264 IF( PRESENT( pssh_f ) ) THEN ; zssh => pssh_f 265 ELSE ; zssh => pssh(:,:,Kmm) 266 ENDIF 262 267 ! ! filtered "now" field 263 268 pssh(:,:,Kmm) = pssh(:,:,Kmm) + rn_atfp * ( pssh(:,:,Kbb) - 2 * pssh(:,:,Kmm) + pssh(:,:,Kaa) ) … … 281 286 END SUBROUTINE ssh_atf 282 287 288 283 289 SUBROUTINE wAimp( kt, Kmm ) 284 290 !!----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.