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 6006 for branches/2015/dev_MetOffice_merge_2015/NEMOGCM/NEMO/OPA_SRC/TRA – NEMO

Ignore:
Timestamp:
2015-12-04T17:56:07+01:00 (8 years ago)
Author:
mathiot
Message:

Merged ice sheet coupling branch

Location:
branches/2015/dev_MetOffice_merge_2015/NEMOGCM/NEMO/OPA_SRC/TRA
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_MetOffice_merge_2015/NEMOGCM/NEMO/OPA_SRC/TRA/tradmp.F90

    r5836 r6006  
    100100      ! 
    101101      CALL wrk_alloc( jpi,jpj,jpk,jpts,   zts_dta ) 
    102       ! 
    103102      IF( l_trdtra )   THEN                    !* Save ta and sa trends 
    104103         CALL wrk_alloc( jpi,jpj,jpk,jpts,   ztrdts )  
  • branches/2015/dev_MetOffice_merge_2015/NEMOGCM/NEMO/OPA_SRC/TRA/trasbc.F90

    r5643 r6006  
    2222   USE sbcrnf          ! River runoff   
    2323   USE sbcisf          ! Ice shelf    
     24   USE iscplini        ! Ice sheet coupling 
    2425   USE traqsr          ! solar radiation penetration 
    2526   USE trd_oce         ! trends: ocean variables 
     
    117118      INTEGER  ::   ji, jj, jk, jn           ! dummy loop indices   
    118119      INTEGER  ::   ikt, ikb  
    119       INTEGER  ::   nk_isf 
    120120      REAL(wp) ::   zfact, z1_e3t, zdep 
    121121      REAL(wp) ::   zalpha, zhk 
     
    219219      ! 
    220220      IF( nn_isf > 0 ) THEN 
    221          zfact = 0.5e0 
     221         zfact = 0.5_wp 
    222222         DO jj = 2, jpj 
    223223            DO ji = fs_2, fs_jpim1 
     
    230230               ! sign - because fwf sign of evapo (rnf sign of precip) 
    231231               DO jk = ikt, ikb - 1 
    232                ! compute tfreez for the temperature correction (we add water at freezing temperature) 
    233232               ! compute trend 
    234233                  tsa(ji,jj,jk,jp_tem) = tsa(ji,jj,jk,jp_tem)                                          & 
     
    239238    
    240239               ! level partially include in ice shelf boundary layer  
    241                ! compute tfreez for the temperature correction (we add water at freezing temperature) 
    242240               ! compute trend 
    243241               tsa(ji,jj,ikb,jp_tem) = tsa(ji,jj,ikb,jp_tem)                                           & 
     
    279277      ENDIF 
    280278  
    281       IF( l_trdtra )   THEN                      ! send trends for further diagnostics 
     279      !---------------------------------------- 
     280      !        Ice Sheet coupling imbalance correction to have conservation 
     281      !---------------------------------------- 
     282      ! 
     283      IF( ln_iscpl .AND. ln_hsb) THEN         ! input of heat and salt due to river runoff  
     284         DO jk = 1,jpk 
     285            DO jj = 2, jpj  
     286               DO ji = fs_2, fs_jpim1 
     287                  zdep = 1._wp / fse3t_n(ji,jj,jk)  
     288                  tsa(ji,jj,jk,jp_tem) = tsa(ji,jj,jk,jp_tem) - htsc_iscpl(ji,jj,jk,jp_tem)                       & 
     289                      &                                         * zdep 
     290                  tsa(ji,jj,jk,jp_sal) = tsa(ji,jj,jk,jp_sal) - htsc_iscpl(ji,jj,jk,jp_sal)                       & 
     291                      &                                         * zdep   
     292               END DO   
     293            END DO   
     294         END DO 
     295      ENDIF 
     296 
     297      IF( l_trdtra )   THEN                      ! save the horizontal diffusive trends for further diagnostics 
    282298         ztrdt(:,:,:) = tsa(:,:,:,jp_tem) - ztrdt(:,:,:) 
    283299         ztrds(:,:,:) = tsa(:,:,:,jp_sal) - ztrds(:,:,:) 
Note: See TracChangeset for help on using the changeset viewer.