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 1473 for trunk/NEMO/TOP_SRC/SED – NEMO

Ignore:
Timestamp:
2009-06-12T16:07:47+02:00 (15 years ago)
Author:
smasson
Message:

for dimgout: allow changing the number of proc for restart, see ticket:442

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/TOP_SRC/SED/sedrst.F90

    r1310 r1473  
    5555 
    5656      REAL(wp) :: zkt 
    57       CHARACTER(len = 20)  ::  cltra 
     57      CHARACTER(len = 20) ::   cltra 
     58      INTEGER             ::   jlibalt = jprstlib 
     59      LOGICAL             ::   llok 
    5860      !-------------------------------------------------------------------- 
    5961  
     
    6567      ALLOCATE( zhipor(jpoce,jpksed) )  
    6668 
    67       CALL iom_open( 'restart_sed', numrsr, kiolib = jprstlib )      
     69      IF ( jprstlib == jprstdimg ) THEN 
     70        ! eventually read netcdf file (monobloc)  for restarting on different number of processors 
     71        ! if restart_sed.nc exists, then set jlibalt to jpnf90 
     72        INQUIRE( FILE = 'restart_sed.nc', EXIST = llok ) 
     73        IF ( llok ) THEN ; jlibalt = jpnf90  ; ELSE ; jlibalt = jprstlib ; ENDIF 
     74      ENDIF 
     75 
     76      CALL iom_open( 'restart_sed', numrsr, kiolib = jlibalt )      
    6877      CALL iom_get( numrsr, 'kt'     , zkt      )   ! time-step 
    6978  
Note: See TracChangeset for help on using the changeset viewer.