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/TRP/trdmld_trc_rst.F90 – 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/TRP/trdmld_trc_rst.F90

    r1283 r1473  
    132132      CHARACTER (len=35) :: charout 
    133133      INTEGER ::  jk, jn, jl     ! loop indice 
     134      INTEGER ::  jlibalt = jprstlib 
     135      LOGICAL ::  llok 
    134136      !!----------------------------------------------------------------------------- 
    135137       
     
    140142      ENDIF 
    141143       
    142       CALL iom_open( cn_trdrst_trc_in, inum, kiolib = jprstlib )  
     144      IF ( jprstlib == jprstdimg ) THEN 
     145        ! eventually read netcdf file (monobloc)  for restarting on different number of processors 
     146        ! if {cn_trdrst_trc_in}.nc exists, then set jlibalt to jpnf90 
     147        INQUIRE( FILE = TRIM(cn_trdrst_trc_in)//'.nc', EXIST = llok ) 
     148        IF ( llok ) THEN ; jlibalt = jpnf90  ; ELSE ; jlibalt = jprstlib ; ENDIF 
     149      ENDIF 
     150 
     151      CALL iom_open( cn_trdrst_trc_in, inum, kiolib = jlibalt )  
    143152       
    144153      IF( ln_trdmld_trc_instant ) THEN  
Note: See TracChangeset for help on using the changeset viewer.