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 12761 for NEMO/branches/2020/dev_r12377_KERNEL-06_techene_e3/src/OCE/DYN/sshwzv.F90 – NEMO

Ignore:
Timestamp:
2020-04-17T10:28:12+02:00 (4 years ago)
Author:
techene
Message:

add the computation of r3._f before trc_src in stepMLF.F90 for that there is to change ssh_atf to be able to compute a filtrered ssh without changing the ssh field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r12377_KERNEL-06_techene_e3/src/OCE/DYN/sshwzv.F90

    r12724 r12761  
    229229 
    230230 
    231    SUBROUTINE ssh_atf( kt, Kbb, Kmm, Kaa, pssh ) 
     231   SUBROUTINE ssh_atf( kt, Kbb, Kmm, Kaa, pssh, pssh_f ) 
    232232      !!---------------------------------------------------------------------- 
    233233      !!                    ***  ROUTINE ssh_atf  *** 
     
    244244      !! Reference  : Leclair, M., and G. Madec, 2009, Ocean Modelling. 
    245245      !!---------------------------------------------------------------------- 
    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 
    249250      ! 
    250251      REAL(wp) ::   zcoef   ! local scalar 
     252      REAL(wp), POINTER, DIMENSION(:,:) ::   zssh   ! pointer for filtered SSH  
    251253      !!---------------------------------------------------------------------- 
    252254      ! 
     
    260262      !              !==  Euler time-stepping: no filter, just swap  ==! 
    261263      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 
    262267         !                                                  ! filtered "now" field 
    263268         pssh(:,:,Kmm) = pssh(:,:,Kmm) + rn_atfp * ( pssh(:,:,Kbb) - 2 * pssh(:,:,Kmm) + pssh(:,:,Kaa) ) 
     
    281286   END SUBROUTINE ssh_atf 
    282287 
     288    
    283289   SUBROUTINE wAimp( kt, Kmm ) 
    284290      !!---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.