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 5417 for branches/UKMO/2015_CO6_CO5_zenv_wr_direct_dwl_temp/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90 – NEMO

Ignore:
Timestamp:
2015-06-15T09:32:15+02:00 (9 years ago)
Author:
deazer
Message:

Rolling back previous commit to allow application of removal of svn keywords.
Changes will be brought back in afterward. This should then allwo fcm to merge
for rose build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/2015_CO6_CO5_zenv_wr_direct_dwl_temp/NEMOGCM/NEMO/OPA_SRC/IOM/restart.F90

    r5389 r5417  
    5555      !!---------------------------------------------------------------------- 
    5656      INTEGER, INTENT(in) ::   kt     ! ocean time-step 
    57       INTEGER             ::   iyear, imonth, iday 
    58       REAL (wp)           ::   zsec 
    5957      !! 
    6058      CHARACTER(LEN=20)   ::   clkt     ! ocean time-step deine as a character 
    6159      CHARACTER(LEN=50)   ::   clname   ! ice output restart file name 
    62       CHARACTER(len=150)  ::   clpath   ! full path to ocean output restart file 
    6360      !!---------------------------------------------------------------------- 
    6461      ! 
     
    7774      IF( kt == nitrst - 1 .OR. nstock == 1 .OR. ( kt == nitend .AND. .NOT. lrst_oce ) ) THEN 
    7875         ! beware of the format used to write kt (default is i8.8, that should be large enough...) 
    79          IF ( ln_rstdate ) THEN 
    80             CALL ju2ymds( fjulday + rdttra(1) / rday, iyear, imonth, iday, zsec) 
    81             WRITE(clkt, '(i4.4,2i2.2)') iyear, imonth, iday 
    82          ELSE 
    83             IF( nitrst > 999999999 ) THEN   ;   WRITE(clkt, *       ) nitrst 
    84             ELSE                            ;   WRITE(clkt, '(i8.8)') nitrst 
    85             ENDIF 
     76         IF( nitrst > 999999999 ) THEN   ;   WRITE(clkt, *       ) nitrst 
     77         ELSE                            ;   WRITE(clkt, '(i8.8)') nitrst 
    8678         ENDIF 
    8779         ! create the file 
    8880         clname = TRIM(cexper)//"_"//TRIM(ADJUSTL(clkt))//"_"//TRIM(cn_ocerst_out) 
    89          clpath = TRIM(cn_rst_dir) 
    90          IF( clpath(LEN_TRIM(clpath):) /= '/' ) THEN 
    91            clpath = TRIM(clpath) // '/' 
    92          ENDIF 
    9381         IF(lwp) THEN 
    9482            WRITE(numout,*) 
    9583            SELECT CASE ( jprstlib ) 
    96             CASE ( jprstdimg )   ;   WRITE(numout,*) '             open ocean restart binary file: ',TRIM(clpath)//clname 
    97             CASE DEFAULT         ;   WRITE(numout,*) '             open ocean restart NetCDF file: ',TRIM(clpath)//clname 
     84            CASE ( jprstdimg )   ;   WRITE(numout,*) '             open ocean restart binary file: '//clname 
     85            CASE DEFAULT         ;   WRITE(numout,*) '             open ocean restart NetCDF file: '//clname 
    9886            END SELECT 
    9987            IF ( snc4set%luse )      WRITE(numout,*) '             opened for NetCDF4 chunking and compression' 
     
    10391         ENDIF 
    10492         ! 
    105          CALL iom_open( TRIM(clpath)//TRIM(clname), numrow, ldwrt = .TRUE., kiolib = jprstlib ) 
     93         CALL iom_open( clname, numrow, ldwrt = .TRUE., kiolib = jprstlib ) 
    10694         lrst_oce = .TRUE. 
    10795      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.