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 544 for trunk/NEMO/LIM_SRC/limrst.F90 – NEMO

Ignore:
Timestamp:
2006-10-20T16:23:21+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_update_078:RB: finalization of IOM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/LIM_SRC/limrst.F90

    r508 r544  
    3232   PUBLIC   lim_rst_read    ! routine called by ??? module 
    3333 
    34    LOGICAL, PUBLIC ::   lrst_ice         !: logical to control the oce restart write  
     34   LOGICAL, PUBLIC ::   lrst_ice         !: logical to control the ice restart write  
    3535   INTEGER, PUBLIC ::   numrir, numriw   !: logical unit for ice restart (read and write) 
    3636 
     
    4343CONTAINS 
    4444 
    45 # if ( defined key_mpp_mpi || defined key_mpp_shmem ) && defined key_dimgout 
    46    !!---------------------------------------------------------------------- 
    47    !!   'key_mpp_mpi'     OR     'key_mpp_shmem'              MPP computing 
    48    !!   'key_dimgout' :                    Direct access file (DIMG format) 
    49    !!---------------------------------------------------------------------- 
    50 #  include "limrst_dimg.h90" 
    51  
    52 # else 
    53    !!---------------------------------------------------------------------- 
    54    !!   Default option                                          NetCDF file 
    55    !!---------------------------------------------------------------------- 
    56  
    5745   SUBROUTINE lim_rst_opn( kt ) 
    5846      !!---------------------------------------------------------------------- 
     
    6957      IF( kt == nit000 )   lrst_ice = .FALSE. 
    7058       
    71       IF    ( kt == nitrst - 2*nfice + 1 .AND. lrst_ice ) THEN 
    72          CALL ctl_stop( 'lim_rst_opn: ice restart frequency must be larger than nfice' ) 
    73          numriw = 0 
    74       ELSEIF( kt == nitrst - 2*nfice + 1 .OR.  nitend - nit000 +1 < 2*nfice ) THEN 
    75          ! beware if model runs less than 2*nfice time step 
     59      IF( kt == nitrst - 2*nfice + 1 .OR.  nitend - nit000 + 1 <= nfice ) THEN 
     60         ! beware if model runs less than nfice + 1 time step 
    7661         ! beware of the format used to write kt (default is i8.8, that should be large enough) 
    7762         IF( nitrst > 1.0e9 ) THEN    
     
    8469         clname = TRIM(cexper)//"_"//TRIM(ADJUSTL(clkt))//"_restart_ice" 
    8570         IF(lwp) WRITE(numout,*) '             open ice restart.output NetCDF file: '//clname 
    86          CALL iom_open( clname, numriw, ldwrt = .TRUE. ) 
     71         CALL iom_open( clname, numriw, ldwrt = .TRUE., kiolib = jprstdimg ) 
    8772         lrst_ice = .TRUE. 
    8873      ENDIF 
     
    191176      ENDIF 
    192177 
    193       CALL iom_open ( 'restart_ice_in', numrir ) 
     178      CALL iom_open ( 'restart_ice_in', numrir, kiolib = jprstdimg ) 
    194179 
    195180      CALL iom_get( numrir, 'nfice' , zfice ) 
     
    265250   END SUBROUTINE lim_rst_read 
    266251 
    267 # endif 
    268  
    269252#else 
    270253   !!---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.