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/LIM_SRC_2 – NEMO

Changeset 1473 for trunk/NEMO/LIM_SRC_2


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/LIM_SRC_2/limrst_2.F90

    r1471 r1473  
    170170      !!---------------------------------------------------------------------- 
    171171      REAL(wp) ::   ziter 
     172      INTEGER  ::   jlibalt = jprstlib 
     173      LOGICAL  ::   llok 
    172174      INTEGER  ::   itest 
    173175      !!---------------------------------------------------------------------- 
     
    179181      ENDIF 
    180182 
    181       CALL iom_open ( cn_icerst_in, numrir, kiolib = jprstlib ) 
     183      IF ( jprstlib == jprstdimg ) THEN 
     184        ! eventually read netcdf file (monobloc)  for restarting on different number of processors 
     185        ! if {cn_icerst_in}.nc exists, then set jlibalt to jpnf90 
     186        INQUIRE( FILE = TRIM(cn_icerst_in)//'.nc', EXIST = llok ) 
     187        IF ( llok ) THEN ; jlibalt = jpnf90  ; ELSE ; jlibalt = jprstlib ; ENDIF 
     188      ENDIF 
     189 
     190      CALL iom_open ( cn_icerst_in, numrir, kiolib = jlibalt ) 
    182191 
    183192      CALL iom_get( numrir, 'kt_ice' , ziter ) 
Note: See TracChangeset for help on using the changeset viewer.