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 4370 for branches/2013/dev_MERGE_2013/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90 – NEMO

Ignore:
Timestamp:
2014-01-23T18:13:16+01:00 (10 years ago)
Author:
jchanut
Message:

Time split cleaning / AMM12 restart / BDY and Agrif. See tickets #1228, #1227, #1225 and #1133

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_MERGE_2013/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90

    r4366 r4370  
    9191      IF( lk_c1d         )   CALL cor_c1d      ! 1D configuration: Coriolis set at T-point 
    9292      ! 
    93       hu(:,:) = 0._wp                          ! Ocean depth at U- and V-points 
    94       hv(:,:) = 0._wp 
    95       DO jk = 1, jpk 
     93      ! 
     94      hu(:,:) = 0._wp                          ! Ocean depth at U-points 
     95      hv(:,:) = 0._wp                          ! Ocean depth at V-points 
     96      ht(:,:) = 0._wp                          ! Ocean depth at T-points 
     97      DO jk = 1, jpkm1 
    9698         hu(:,:) = hu(:,:) + fse3u_n(:,:,jk) * umask(:,:,jk) 
    9799         hv(:,:) = hv(:,:) + fse3v_n(:,:,jk) * vmask(:,:,jk) 
     100         ht(:,:) = ht(:,:) + fse3t_n(:,:,jk) * tmask(:,:,jk) 
    98101      END DO 
    99102      !                                        ! Inverse of the local depth 
     
    124127      NAMELIST/namrun/ nn_no   , cn_exp    , cn_ocerst_in, cn_ocerst_out, ln_rstart , nn_rstctl,   & 
    125128         &             nn_it000, nn_itend  , nn_date0    , nn_leapy     , nn_istate , nn_stock ,   & 
    126          &             nn_write, ln_dimgnnn, ln_mskland  , ln_clobber   , nn_chunksz 
     129         &             nn_write, ln_dimgnnn, ln_mskland  , ln_clobber   , nn_chunksz, nn_euler 
    127130      NAMELIST/namdom/ nn_bathy, rn_bathy , rn_e3zps_min, rn_e3zps_rat, nn_msh, rn_hmin,   & 
    128131         &             nn_acc   , rn_atfp     , rn_rdt      , rn_rdtmin ,                  & 
    129          &             rn_rdtmax, rn_rdth     , nn_baro     , nn_closea , ln_crs,    & 
     132         &             rn_rdtmax, rn_rdth     , nn_closea , ln_crs,    & 
    130133         &             jphgr_msh, & 
    131134         &             ppglam0, ppgphi0, ppe1_deg, ppe2_deg, ppe1_m, ppe2_m, & 
     
    158161         WRITE(numout,*) '      file prefix restart output      cn_ocerst_out= ', cn_ocerst_out 
    159162         WRITE(numout,*) '      restart logical                 ln_rstart  = ', ln_rstart 
     163         WRITE(numout,*) '      start with forward time step    nn_euler   = ', nn_euler 
    160164         WRITE(numout,*) '      control of time step            nn_rstctl  = ', nn_rstctl 
    161165         WRITE(numout,*) '      number of the first time step   nn_it000   = ', nn_it000 
     
    182186      nstock = nn_stock 
    183187      nwrite = nn_write 
    184  
     188      neuler = nn_euler 
     189      IF ( neuler == 1 .AND. .NOT.ln_rstart ) THEN 
     190         WRITE(ctmp1,*) 'ln_rstart =.FALSE., nn_euler is forced to 0 ' 
     191         CALL ctl_warn( ctmp1 ) 
     192         neuler = 0 
     193      ENDIF 
    185194 
    186195      !                             ! control of output frequency 
     
    240249         WRITE(numout,*) '      ocean time step                       rn_rdt    = ', rn_rdt 
    241250         WRITE(numout,*) '      asselin time filter parameter         rn_atfp   = ', rn_atfp 
    242          WRITE(numout,*) '      time-splitting: nb of sub time-step   nn_baro   = ', nn_baro 
    243251         WRITE(numout,*) '      acceleration of converge              nn_acc    = ', nn_acc 
    244252         WRITE(numout,*) '        nn_acc=1: surface tracer rdt        rn_rdtmin = ', rn_rdtmin 
     
    447455   !!====================================================================== 
    448456END MODULE domain 
    449  
Note: See TracChangeset for help on using the changeset viewer.