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 10251 for branches/UKMO/dev_r5518_AMM15_package/NEMOGCM/NEMO/OPA_SRC/ICB/icbrst.F90 – NEMO

Ignore:
Timestamp:
2018-10-29T15:20:26+01:00 (5 years ago)
Author:
kingr
Message:

Rolled back to r10247 - i.e., undid merge of pkg br and 3.6_stable br

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_AMM15_package/NEMOGCM/NEMO/OPA_SRC/ICB/icbrst.F90

    r10249 r10251  
    1818   !!---------------------------------------------------------------------- 
    1919   USE par_oce        ! NEMO parameters 
    20    USE phycst         ! for rday 
    2120   USE dom_oce        ! NEMO domain 
    2221   USE in_out_manager ! NEMO IO routines 
    23    USE ioipsl, ONLY : ju2ymds    ! for calendar 
    2422   USE lib_mpp        ! NEMO MPI library, lk_mpp in particular 
    2523   USE netcdf         ! netcdf routines for IO 
     
    233231      INTEGER ::   jn   ! dummy loop index 
    234232      INTEGER ::   ix_dim, iy_dim, ik_dim, in_dim 
    235       INTEGER             ::   iyear, imonth, iday 
    236       REAL (wp)           ::   zsec 
    237       REAL (wp)           ::   zfjulday 
    238       CHARACTER(len=256)  :: cl_path 
    239       CHARACTER(len=256)  :: cl_filename 
    240       CHARACTER(LEN=20)   ::   clkt     ! ocean time-step deine as a character 
     233      CHARACTER(len=256)     :: cl_path 
     234      CHARACTER(len=256)     :: cl_filename 
    241235      TYPE(iceberg), POINTER :: this 
    242236      TYPE(point)  , POINTER :: pt 
     
    246240      cl_path = TRIM(cn_ocerst_outdir) 
    247241      IF( cl_path(LEN_TRIM(cl_path):) /= '/' ) cl_path = TRIM(cl_path) // '/' 
    248       IF ( ln_rstdate ) THEN 
    249          zfjulday = fjulday + rdttra(1) / rday 
    250          IF( ABS(zfjulday - REAL(NINT(zfjulday),wp)) < 0.1 / rday )   zfjulday = REAL(NINT(zfjulday),wp)   ! avoid truncation error 
    251          CALL ju2ymds( zfjulday, iyear, imonth, iday, zsec )            
    252          WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 
     242      IF( lk_mpp ) THEN 
     243         WRITE(cl_filename,'(A,"_icebergs_",I8.8,"_restart_",I4.4,".nc")') TRIM(cexper), kt, narea-1 
    253244      ELSE 
    254          IF( kt > 999999999 ) THEN   ;   WRITE(clkt, *       ) kt 
    255          ELSE                        ;   WRITE(clkt, '(i8.8)') kt 
    256          ENDIF 
    257       ENDIF 
    258       IF( lk_mpp ) THEN 
    259          WRITE(cl_filename,'(A,"_icebergs_",A,"_restart_",I4.4,".nc")') TRIM(cexper), TRIM(ADJUSTL(clkt)), narea-1 
    260       ELSE 
    261          WRITE(cl_filename,'(A,"_icebergs_",A,"_restart.nc")') TRIM(cexper), TRIM(ADJUSTL(clkt)) 
     245         WRITE(cl_filename,'(A,"_icebergs_",I8.8,"_restart.nc")') TRIM(cexper), kt 
    262246      ENDIF 
    263247      IF (nn_verbose_level >= 0) WRITE(numout,'(2a)') 'icebergs, write_restart: creating ',TRIM(cl_path)//TRIM(cl_filename) 
Note: See TracChangeset for help on using the changeset viewer.