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

Ignore:
Timestamp:
2015-05-18T17:19:50+02:00 (9 years ago)
Author:
diovino
Message:

Dev. branch CMCC4_simplification ticket #1456

File:
1 edited

Legend:

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

    r4990 r5282  
    8282            WRITE(numout,*) 
    8383            SELECT CASE ( jprstlib ) 
    84             CASE ( jprstdimg )   ;   WRITE(numout,*) '             open ocean restart binary file: '//clname 
    8584            CASE DEFAULT         ;   WRITE(numout,*) '             open ocean restart NetCDF file: '//clname 
    8685            END SELECT 
     
    110109      !!---------------------------------------------------------------------- 
    111110 
    112                      CALL iom_rstput( kt, nitrst, numrow, 'rdt'    , rdt       )   ! dynamics time step 
    113                      CALL iom_rstput( kt, nitrst, numrow, 'rdttra1', rdttra(1) )   ! surface tracer time step 
     111                     CALL iom_rstput( kt, nitrst, numrow, 'rdt'    , rdt       )   ! dynamics and tracer time step 
    114112 
    115113                     CALL iom_rstput( kt, nitrst, numrow, 'ub'     , ub        )     ! before fields 
     
    165163            SELECT CASE ( jprstlib ) 
    166164            CASE ( jpnf90    )   ;   WRITE(numout,*) 'rst_read : read oce NetCDF restart file' 
    167             CASE ( jprstdimg )   ;   WRITE(numout,*) 'rst_read : read oce binary restart file' 
    168165            END SELECT 
    169166            IF ( snc4set%luse )      WRITE(numout,*) 'rst_read : configured with NetCDF4 support' 
     
    171168         ENDIF 
    172169 
    173          IF ( jprstlib == jprstdimg ) THEN 
    174            ! eventually read netcdf file (monobloc)  for restarting on different number of processors 
    175            ! if {cn_ocerst_in}.nc exists, then set jlibalt to jpnf90 
    176            INQUIRE( FILE = TRIM(cn_ocerst_in)//'.nc', EXIST = llok ) 
    177            IF ( llok ) THEN ; jlibalt = jpnf90  ; ELSE ; jlibalt = jprstlib ; ENDIF 
    178          ENDIF 
    179170         CALL iom_open( cn_ocerst_in, numror, kiolib = jlibalt ) 
    180171      ENDIF 
     
    189180      !! ** Method  :   Read in restart.nc file fields which are necessary for restart 
    190181      !!---------------------------------------------------------------------- 
    191       REAL(wp) ::   zrdt, zrdttra1 
     182      REAL(wp) ::   zrdt 
    192183      INTEGER  ::   jk 
    193184      LOGICAL  ::   llok 
     
    201192         IF( zrdt /= rdt )   neuler = 0 
    202193      ENDIF 
    203       IF( iom_varid( numror, 'rdttra1', ldstop = .FALSE. ) > 0 )   THEN 
    204          CALL iom_get( numror, 'rdttra1', zrdttra1 ) 
    205          IF( zrdttra1 /= rdttra(1) )   neuler = 0 
    206       ENDIF 
    207       !  
     194      ! 
    208195      IF( iom_varid( numror, 'ub', ldstop = .FALSE. ) > 0 ) THEN 
    209196         CALL iom_get( numror, jpdom_autoglo, 'ub'     , ub      )   ! before fields 
Note: See TracChangeset for help on using the changeset viewer.