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 14072 for NEMO/trunk/src/OCE/TRA/trasbc.F90 – NEMO

Ignore:
Timestamp:
2020-12-04T08:48:38+01:00 (3 years ago)
Author:
laurent
Message:

Merging branch "2020/dev_r13648_ASINTER-04_laurent_bulk_ice", ticket #2369

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/TRA/trasbc.F90

    r14053 r14072  
    99   !!            3.3  !  2010-04  (M. Leclair, G. Madec)  Forcing averaged over 2 time steps 
    1010   !!             -   !  2010-09  (C. Ethe, G. Madec) Merge TRA-TRC 
    11    !!            3.6  !  2014-11  (P. Mathiot) isf melting forcing  
     11   !!            3.6  !  2014-11  (P. Mathiot) isf melting forcing 
    1212   !!            4.1  !  2019-09  (P. Mathiot) isf moved in traisf 
    1313   !!---------------------------------------------------------------------- 
     
    2121   USE phycst         ! physical constant 
    2222   USE eosbn2         ! Equation Of State 
    23    USE sbcmod         ! ln_rnf   
    24    USE sbcrnf         ! River runoff   
     23   USE sbcmod         ! ln_rnf 
     24   USE sbcrnf         ! River runoff 
    2525   USE traqsr         ! solar radiation penetration 
    2626   USE trd_oce        ! trends: ocean variables 
    27    USE trdtra         ! trends manager: tracers  
    28 #if defined key_asminc    
     27   USE trdtra         ! trends manager: tracers 
     28#if defined key_asminc 
    2929   USE asminc         ! Assimilation increment 
    3030#endif 
     
    5454      !!---------------------------------------------------------------------- 
    5555      !!                  ***  ROUTINE tra_sbc  *** 
    56       !!                    
     56      !! 
    5757      !! ** Purpose :   Compute the tracer surface boundary condition trend of 
    5858      !!      (flux through the interface, concentration/dilution effect) 
    5959      !!      and add it to the general trend of tracer equations. 
    6060      !! 
    61       !! ** Method :   The (air+ice)-sea flux has two components:  
    62       !!      (1) Fext, external forcing (i.e. flux through the (air+ice)-sea interface);  
    63       !!      (2) Fwe , tracer carried with the water that is exchanged with air+ice.  
     61      !! ** Method :   The (air+ice)-sea flux has two components: 
     62      !!      (1) Fext, external forcing (i.e. flux through the (air+ice)-sea interface); 
     63      !!      (2) Fwe , tracer carried with the water that is exchanged with air+ice. 
    6464      !!               The input forcing fields (emp, rnf, sfx) contain Fext+Fwe, 
    6565      !!             they are simply added to the tracer trend (ts(Krhs)). 
     
    6969      !!             concentration/dilution effect associated with water exchanges. 
    7070      !! 
    71       !! ** Action  : - Update ts(Krhs) with the surface boundary condition trend  
     71      !! ** Action  : - Update ts(Krhs) with the surface boundary condition trend 
    7272      !!              - send trends to trdtra module for further diagnostics(l_trdtra=T) 
    7373      !!---------------------------------------------------------------------- 
     
    143143         sbc_tsc(ji,jj,jp_sal) = r1_rho0     * sfx(ji,jj)   ! salt flux due to freezing/melting 
    144144      END_2D 
    145       IF( ln_linssh ) THEN                !* linear free surface   
     145      IF( ln_linssh ) THEN                !* linear free surface 
    146146         DO_2D( isj, iej, isi, iei )                    !==>> add concentration/dilution effect due to constant volume cell 
    147147            sbc_tsc(ji,jj,jp_tem) = sbc_tsc(ji,jj,jp_tem) + r1_rho0 * emp(ji,jj) * pts(ji,jj,1,jp_tem,Kmm) 
     
    161161         END_2D 
    162162      END DO 
    163       !                   
     163      ! 
    164164      IF( ntile == 0 .OR. ntile == nijtile )  THEN                ! Do only on the last tile 
    165165         IF( lrst_oce ) THEN           !==  write sbc_tsc in the ocean restart file  ==! 
     
    173173      !---------------------------------------- 
    174174      ! 
    175       IF( ln_rnf ) THEN         ! input of heat and salt due to river runoff  
     175      IF( ln_rnf ) THEN         ! input of heat and salt due to river runoff 
    176176         zfact = 0.5_wp 
    177177         DO_2D( 0, 0, 0, 0 ) 
     
    182182                                        &                      +  ( rnf_tsc_b(ji,jj,jp_tem) + rnf_tsc(ji,jj,jp_tem) ) * zdep 
    183183                  IF( ln_rnf_sal )   pts(ji,jj,jk,jp_sal,Krhs) = pts(ji,jj,jk,jp_sal,Krhs)                                  & 
    184                                         &                      +  ( rnf_tsc_b(ji,jj,jp_sal) + rnf_tsc(ji,jj,jp_sal) ) * zdep  
     184                                        &                      +  ( rnf_tsc_b(ji,jj,jp_sal) + rnf_tsc(ji,jj,jp_sal) ) * zdep 
    185185               END DO 
    186186            ENDIF 
     
    201201      IF( ln_sshinc ) THEN         ! input of heat and salt due to assimilation 
    202202          ! 
    203          IF( ln_linssh ) THEN  
     203         IF( ln_linssh ) THEN 
    204204            DO_2D( 0, 0, 0, 0 ) 
    205205               ztim = ssh_iau(ji,jj) / e3t(ji,jj,1,Kmm) 
Note: See TracChangeset for help on using the changeset viewer.