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 11541 for NEMO/branches/2019/ENHANCE-02_ISF_nemo/src/OCE/TRA – NEMO

Ignore:
Timestamp:
2019-09-12T18:41:17+02:00 (5 years ago)
Author:
mathiot
Message:

ENHANCE-02_ISF: simplify use of ln_isf, add extra comments + minor changes (ticket #2142)

Location:
NEMO/branches/2019/ENHANCE-02_ISF_nemo/src/OCE/TRA
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2019/ENHANCE-02_ISF_nemo/src/OCE/TRA/traisf.F90

    r11529 r11541  
    4848      IF( ln_timing )   CALL timing_start('tra_isf') 
    4949      ! 
    50       IF (ln_isf) THEN 
    51          ! 
    52          ! cavity case 
    53          IF ( ln_isfcav_mlt ) CALL tra_isf_mlt(misfkt_cav, misfkb_cav, rhisf_tbl_cav, rfrac_tbl_cav, risf_cav_tsc, risf_cav_tsc_b, tsa) 
    54          ! 
    55          ! parametrisation case 
    56          IF ( ln_isfpar_mlt ) CALL tra_isf_mlt(misfkt_par, misfkb_par, rhisf_tbl_par, rfrac_tbl_par, risf_par_tsc, risf_par_tsc_b, tsa) 
    57          ! 
    58       END IF 
     50      ! cavity case 
     51      IF ( ln_isfcav_mlt ) CALL tra_isf_mlt(misfkt_cav, misfkb_cav, rhisf_tbl_cav, rfrac_tbl_cav, risf_cav_tsc, risf_cav_tsc_b, tsa) 
     52      ! 
     53      ! parametrisation case 
     54      IF ( ln_isfpar_mlt ) CALL tra_isf_mlt(misfkt_par, misfkb_par, rhisf_tbl_par, rfrac_tbl_par, risf_par_tsc, risf_par_tsc_b, tsa) 
    5955      ! 
    6056      ! ice sheet coupling case 
    61       IF ( ll_isfcpl ) THEN 
     57      IF ( ln_isfcpl ) THEN 
    6258         ! 
    63          IF ( kt == nit000 ) CALL tra_isf_cpl(risfcpl_tsc, tsa) 
     59         IF ( kt == nit000  ) CALL tra_isf_cpl(risfcpl_tsc       , tsa) 
     60         IF ( kt == nit000+1) CALL tra_isf_cpl(risfcpl_tsc*0.5_wp, tsa) 
    6461         ! 
    6562         ! ensure 0 trend due to unconservation of the ice shelf coupling 
    66          IF ( ll_isfcpl_cons ) CALL tra_isf_cpl(risfcpl_cons_tsc, tsa) 
     63         IF ( ln_isfcpl_cons ) CALL tra_isf_cpl(risfcpl_cons_tsc, tsa) 
    6764         ! 
    6865      END IF 
  • NEMO/branches/2019/ENHANCE-02_ISF_nemo/src/OCE/TRA/tranxt.F90

    r11403 r11541  
    340340                  ! ice shelf 
    341341                  IF( ll_isf ) THEN 
     342                     ! 
    342343                     IF ( ln_isfcav_mlt ) THEN 
    343344                        ! level fully include in the Losch_2008 ice shelf boundary layer 
     
    372373                        END IF 
    373374                     END IF 
     375                     ! 
     376                     IF (ln_isfcpl .AND. ln_rstart .AND. kt == nit000+1 ) THEN    ! risfcpl_vol_n = 0 and risfcpl_vol_b = risfcpl_vol 
     377                        ztc_f  = ztc_f  + zfact1 * risfcpl_tsc(ji,jj,jk,jn) * r1_e1e2t(ji,jj) 
     378                        ze3t_f = ze3t_f - zfact1 * risfcpl_vol(ji,jj,jk   ) * r1_e1e2t(ji,jj) 
     379                     END IF 
     380                     ! 
    374381                  END IF 
    375382                  ! 
Note: See TracChangeset for help on using the changeset viewer.