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 6589 – NEMO

Changeset 6589


Ignore:
Timestamp:
2016-05-20T14:29:30+02:00 (8 years ago)
Author:
drew
Message:

Committing Chris Harris' changes to the application of the ssh increments to the whole water column (through hdiv) instead of into the ssh field. Note: This changes are expermental and currently under test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_sshinc_with_VVL/NEMOGCM/NEMO/OPA_SRC/DYN/sshwzv.F90

    r6526 r6589  
    9696      IF( neuler == 0 .AND. kt == nit000 )   z2dt = rdt 
    9797 
     98 
     99#if defined key_asminc 
     100      !                                                ! Include the IAU weighted SSH increment 
     101      IF( lk_asminc .AND. ln_sshinc .AND. ln_asmiau ) THEN 
     102         CALL ssh_asm_inc( kt ) 
     103#if defined key_vvl 
     104! Don't directly adjust ssh but change hdivn at all levels instead 
     105! In trasbc also add in the heat and salt content associated with these changes at each level 
     106        DO jk = 1, jpkm1                                  
     107          hdivn(:,:,jk) = hdivn(:,:,jk) - ( ssh_iau(:,:) / fse3t_n(:,:,jk) ) * ( e3t_0(:,:,jk) / ht_0(:,:) ) * tmask(:,:,jk)  
     108        END DO 
     109      ENDIF 
     110#endif 
     111#endif 
     112 
     113 
    98114      !                                           !------------------------------! 
    99115      !                                           !   After Sea Surface Height   ! 
     
    124140#endif 
    125141 
    126 #if defined key_asminc 
    127       !                                                ! Include the IAU weighted SSH increment 
    128       IF( lk_asminc .AND. ln_sshinc .AND. ln_asmiau ) THEN 
    129          CALL ssh_asm_inc( kt ) 
    130          ssha(:,:) = ssha(:,:) + z2dt * ssh_iau(:,:) 
    131 #if defined key_vvl 
    132 ! Also add heat and salt fluxes associated with this volume change to keep heat and salt content unchanged. 
    133          qns(:,:) = qns(:,:) + ssh_iau(:,:) * rau0_rcp * tsn(:,:,1,jp_tem) 
    134          sfx(:,:) = sfx(:,:) + ssh_iau(:,:) * rau0     * tsn(:,:,1,jp_sal)        
    135       ENDIF 
    136 #endif 
    137 #endif 
    138142 
    139143      !                                           !------------------------------! 
Note: See TracChangeset for help on using the changeset viewer.