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 13151 for NEMO/branches/2020/dev_r12527_Gurvan_ShallowWater/src/OCE/TRA/traisf.F90 – NEMO

Ignore:
Timestamp:
2020-06-24T14:38:26+02:00 (4 years ago)
Author:
gm
Message:

result from merge with qco r12983

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2020/dev_r12527_Gurvan_ShallowWater/src/OCE/TRA/traisf.F90

    r12377 r13151  
    1111   !!---------------------------------------------------------------------- 
    1212   USE isf_oce                                     ! Ice shelf variables 
    13    USE dom_oce , ONLY : e3t, r1_e1e2t            ! ocean space domain variables 
     13   USE dom_oce                                     ! ocean space domain variables 
    1414   USE isfutils, ONLY : debug                      ! debug option 
    1515   USE timing  , ONLY : timing_start, timing_stop  ! Timing 
     
    2323   !! * Substitutions 
    2424#  include "do_loop_substitute.h90" 
     25#  include "domzgr_substitute.h90" 
    2526   !!---------------------------------------------------------------------- 
    2627   !! NEMO/OCE 4.0 , NEMO Consortium (2018) 
     
    3334      !!---------------------------------------------------------------------- 
    3435      !!                  ***  ROUTINE tra_isf  *** 
    35       !!                    
     36      !! 
    3637      !! ** Purpose :  Compute the temperature trend due to the ice shelf melting (qhoce + qhc) 
    3738      !! 
     
    6162         ! 
    6263         ! Dynamical stability at start up after change in under ice shelf cavity geometry is achieve by correcting the divergence. 
    63          ! This is achieved by applying a volume flux in order to keep the horizontal divergence after remapping  
     64         ! This is achieved by applying a volume flux in order to keep the horizontal divergence after remapping 
    6465         ! the same as at the end of the latest time step. So correction need to be apply at nit000 (euler time step) and 
    6566         ! half of it at nit000+1 (leap frog time step). 
     
    8990      !! *** Purpose :  Compute the temperature trend due to the ice shelf melting (qhoce + qhc) for cav or par case 
    9091      !! 
    91       !! *** Action :: Update pts(:,:,:,:,Krhs) with the surface boundary condition trend  
     92      !! *** Action :: Update pts(:,:,:,:,Krhs) with the surface boundary condition trend 
    9293      !! 
    9394      !!---------------------------------------------------------------------- 
     
    9899      REAL(wp), DIMENSION(jpi,jpj,jpts), INTENT(in   ) :: ptsc , ptsc_b 
    99100      !!---------------------------------------------------------------------- 
    100       INTEGER                      :: ji,jj,jk  ! loop index    
     101      INTEGER                      :: ji,jj,jk  ! loop index 
    101102      INTEGER                      :: ikt, ikb  ! top and bottom level of the tbl 
    102103      REAL(wp), DIMENSION(jpi,jpj) :: ztc       ! total ice shelf tracer trend 
     
    117118         END DO 
    118119         ! 
    119          ! level partially include in ice shelf boundary layer  
     120         ! level partially include in ice shelf boundary layer 
    120121         pts(ji,jj,ikb,jp_tem) = pts(ji,jj,ikb,jp_tem) + ztc(ji,jj) * pfrac(ji,jj) 
    121122         ! 
     
    128129      !!                  ***  ROUTINE tra_isf_cpl  *** 
    129130      !! 
    130       !! *** Action :: Update pts(:,:,:,:,Krhs) with the ice shelf coupling trend  
     131      !! *** Action :: Update pts(:,:,:,:,Krhs) with the ice shelf coupling trend 
    131132      !! 
    132133      !!---------------------------------------------------------------------- 
     
    140141      ! 
    141142      DO jk = 1,jpk 
    142          ptsa(:,:,jk,jp_tem) = ptsa(:,:,jk,jp_tem) + ptsc(:,:,jk,jp_tem) * r1_e1e2t(:,:) / e3t(:,:,jk,Kmm) 
    143          ptsa(:,:,jk,jp_sal) = ptsa(:,:,jk,jp_sal) + ptsc(:,:,jk,jp_sal) * r1_e1e2t(:,:) / e3t(:,:,jk,Kmm) 
     143         ptsa(:,:,jk,jp_tem) =   & 
     144            &  ptsa(:,:,jk,jp_tem) + ptsc(:,:,jk,jp_tem) * r1_e1e2t(:,:) / e3t(:,:,jk,Kmm) 
     145         ptsa(:,:,jk,jp_sal) =   & 
     146            &  ptsa(:,:,jk,jp_sal) + ptsc(:,:,jk,jp_sal) * r1_e1e2t(:,:) / e3t(:,:,jk,Kmm) 
    144147      END DO 
    145148      ! 
Note: See TracChangeset for help on using the changeset viewer.