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 5498 – NEMO

Changeset 5498


Ignore:
Timestamp:
2015-06-26T17:13:57+02:00 (9 years ago)
Author:
dancopsey
Message:

Merged in changes from revision 5493 to 5497 of branches/UKMO/dev_r5107_restart_date

Location:
branches/UKMO/dev_r5107_restart_func_and_date/NEMOGCM/NEMO/OPA_SRC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5107_restart_func_and_date/NEMOGCM/NEMO/OPA_SRC/DOM/domain.F90

    r5312 r5498  
    138138         &             nn_no   , cn_exp    , cn_ocerst_in, cn_ocerst_out, ln_rstart , nn_rstctl,   & 
    139139         &             nn_it000, nn_itend  , nn_date0    , nn_leapy     , nn_istate , nn_stock ,   & 
    140          &             nn_write, ln_dimgnnn, ln_mskland  , ln_clobber   , nn_chunksz, nn_euler 
     140         &             nn_write, ln_dimgnnn, ln_mskland  , ln_clobber   , nn_chunksz, nn_euler ,   & 
     141         &             ln_rstdate 
    141142      NAMELIST/namdom/ nn_bathy, rn_bathy , rn_e3zps_min, rn_e3zps_rat, nn_msh, rn_hmin,   & 
    142143         &             nn_acc   , rn_atfp     , rn_rdt      , rn_rdtmin ,                  & 
     
    186187            WRITE(numout,*) '      frequency of restart file       nn_stock   = ', nn_stock 
    187188         ENDIF 
     189         WRITE(numout,*) '      use date in restart name        ln_rstdate = ', ln_rstdate 
    188190         WRITE(numout,*) '      frequency of output file        nn_write   = ', nn_write 
    189191         WRITE(numout,*) '      multi file dimgout              ln_dimgnnn = ', ln_dimgnnn 
  • branches/UKMO/dev_r5107_restart_func_and_date/NEMOGCM/NEMO/OPA_SRC/IOM/in_out_manager.F90

    r5312 r5498  
    4545                                                       !:                  (T): 1 file per proc 
    4646   LOGICAL       ::   ln_mskland       !: mask land points in NetCDF outputs (costly: + ~15%) 
     47   LOGICAL       ::   ln_rstdate    = .FALSE.     !: Use calendar date rather than time-step in restart names 
    4748   LOGICAL       ::   ln_clobber       !: clobber (overwrite) an existing file 
    4849   INTEGER       ::   nn_chunksz       !: chunksize (bytes) for NetCDF file (works only with iom_nf90 routines) 
  • branches/UKMO/dev_r5107_restart_func_and_date/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90

    r5339 r5498  
    2121   USE in_out_manager  ! I/O manager 
    2222   USE iom             ! I/O module 
     23   USE ioipsl, ONLY : ju2ymds    ! for calendar 
    2324   USE eosbn2          ! equation of state            (eos bn2 routine) 
    2425   USE trdmxl_oce      ! ocean active mixed layer tracers trends variables 
     
    5556      !!---------------------------------------------------------------------- 
    5657      INTEGER, INTENT(in) ::   kt     ! ocean time-step 
     58      INTEGER             ::   iyear, imonth, iday  
     59      REAL (wp)           ::   zsec 
    5760      !! 
    5861      CHARACTER(LEN=20)   ::   clkt     ! ocean time-step deine as a character 
     
    8386         IF( nitrst <= nitend .AND. nitrst > 0 ) THEN  
    8487            ! beware of the format used to write kt (default is i8.8, that should be large enough...) 
    85             IF( nitrst > 999999999 ) THEN   ;   WRITE(clkt, *       ) nitrst 
    86             ELSE                            ;   WRITE(clkt, '(i8.8)') nitrst 
     88            IF ( ln_rstdate ) THEN  
     89               CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec )             
     90               WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday  
     91            ELSE  
     92               IF( nitrst > 999999999 ) THEN   ;   WRITE(clkt, *       ) nitrst  
     93               ELSE                            ;   WRITE(clkt, '(i8.8)') nitrst  
     94               ENDIF 
    8795            ENDIF 
    8896            ! create the file 
Note: See TracChangeset for help on using the changeset viewer.