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 5965 for branches/2014/dev_r4650_UKMO14.5_SST_BIAS_CORRECTION/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90 – NEMO

Ignore:
Timestamp:
2015-12-01T16:35:30+01:00 (8 years ago)
Author:
timgraham
Message:

Upgraded branch to r5518 of trunk (v3.6 stable revision)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2014/dev_r4650_UKMO14.5_SST_BIAS_CORRECTION/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90

    r4486 r5965  
    2121   USE domvvl          ! Variable volume 
    2222   USE divcur          ! hor. divergence and curl      (div & cur routines) 
    23    USE iom             ! I/O library 
    2423   USE restart         ! only for lrst_oce 
    2524   USE in_out_manager  ! I/O manager 
     
    3130   USE bdy_par          
    3231   USE bdydyn2d        ! bdy_ssh routine 
    33    USE diaar5, ONLY:   lk_diaar5 
    34    USE iom 
    3532#if defined key_agrif 
    3633   USE agrif_opa_update 
     
    111108      !  
    112109      z1_rau0 = 0.5_wp * r1_rau0 
    113       ssha(:,:) = (  sshb(:,:) - z2dt * ( z1_rau0 * ( emp_b(:,:) + emp(:,:) ) + zhdiv(:,:) )  ) * tmask(:,:,1) 
     110      ssha(:,:) = (  sshb(:,:) - z2dt * ( z1_rau0 * ( emp_b(:,:) + emp(:,:) ) + zhdiv(:,:) )  ) * ssmask(:,:) 
    114111 
    115112#if ! defined key_dynspg_ts 
     
    138135      !                                           !           outputs            ! 
    139136      !                                           !------------------------------! 
    140       CALL iom_put( "ssh" , sshn                  )   ! sea surface height 
    141       CALL iom_put( "ssh2", sshn(:,:) * sshn(:,:) )   ! square of sea surface height 
    142137      ! 
    143138      IF(ln_ctl)   CALL prt_ctl( tab2d_1=ssha, clinfo1=' ssha  - : ', mask1=tmask, ovlap=1 ) 
     
    229224#endif 
    230225      ! 
    231       !                                           !------------------------------! 
    232       !                                           !           outputs            ! 
    233       !                                           !------------------------------! 
    234       CALL iom_put( "woce", wn )   ! vertical velocity 
    235       IF( lk_diaar5 ) THEN                            ! vertical mass transport & its square value 
    236          CALL wrk_alloc( jpi, jpj, z2d )  
    237          CALL wrk_alloc( jpi, jpj, jpk, z3d )  
    238          ! Caution: in the VVL case, it only correponds to the baroclinic mass transport. 
    239          z2d(:,:) = rau0 * e12t(:,:) 
    240          DO jk = 1, jpk 
    241             z3d(:,:,jk) = wn(:,:,jk) * z2d(:,:) 
    242          END DO 
    243          CALL iom_put( "w_masstr" , z3d                     )   
    244          CALL iom_put( "w_masstr2", z3d(:,:,:) * z3d(:,:,:) ) 
    245          CALL wrk_dealloc( jpi, jpj, z2d  )  
    246          CALL wrk_dealloc( jpi, jpj, jpk, z3d )  
    247       ENDIF 
    248       ! 
    249226      IF( nn_timing == 1 )  CALL timing_stop('wzv') 
    250227 
     
    291268      ELSE                                         !** Leap-Frog time-stepping: Asselin filter + swap 
    292269         sshb(:,:) = sshn(:,:) + atfp * ( sshb(:,:) - 2 * sshn(:,:) + ssha(:,:) )     ! before <-- now filtered 
    293          IF( lk_vvl ) sshb(:,:) = sshb(:,:) - atfp * rdt / rau0 * ( emp_b(:,:) - emp(:,:) ) * tmask(:,:,1) 
     270         IF( lk_vvl ) sshb(:,:) = sshb(:,:) - atfp * rdt / rau0 * ( emp_b(:,:) - emp(:,:) - rnf_b(:,:) + rnf(:,:) ) * ssmask(:,:) 
    294271         sshn(:,:) = ssha(:,:)                           ! now <-- after 
    295272      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.