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

Changeset 6590


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

Commit Chris Harris changes to trasbc to add an accompanying flux of heat and fresh water so as not to have T/S changes induced by revision 6589.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_sshinc_with_VVL/NEMOGCM/NEMO/OPA_SRC/TRA/trasbc.F90

    r6524 r6590  
    3333   USE timing          ! Timing 
    3434   USE eosbn2 
     35#if defined key_asminc    
     36   USE asminc          ! Assimilation increment 
     37#endif 
    3538 
    3639   IMPLICIT NONE 
     
    287290         END DO   
    288291      ENDIF 
     292 
     293#if defined key_asminc 
     294! WARNING: THIS MAY WELL NOT BE REQUIRED - WE DON'T WANT TO CHANGE T&S BUT THIS MAY COMPENSATE ANOTHER TERM... 
     295! Rate of change in e3t for each level is ssh_iau*e3t_0/ht_0 
     296! Contribution to tsa should be rate of change in level / per m of ocean? (hence the division by fse3t_n) 
     297      IF( ln_sshinc ) THEN         ! input of heat and salt due to assimilation 
     298         DO jj = 2, jpj  
     299            DO ji = fs_2, fs_jpim1 
     300               zdep = ssh_iau(ji,jj) / ht_0(ji,jj) 
     301               DO jk = 1, jpkm1 
     302                  tsa(ji,jj,jk,jp_tem) = tsa(ji,jj,jk,jp_tem)   & 
     303                                        &            * ( 1.0 + zdep * ( e3t_0(ji,jj,jk) / fse3t_n(ji,jj,jk) ) ) 
     304                  tsa(ji,jj,jk,jp_sal) = tsa(ji,jj,jk,jp_sal)   & 
     305                                        &            * ( 1.0 + zdep * ( e3t_0(ji,jj,jk) / fse3t_n(ji,jj,jk) ) ) 
     306               END DO 
     307            END DO   
     308         END DO   
     309      ENDIF 
     310#endif 
    289311  
    290312      IF( l_trdtra )   THEN                      ! send trends for further diagnostics 
Note: See TracChangeset for help on using the changeset viewer.