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 557 for trunk/NEMO/OPA_SRC/restart.F90 – NEMO

Ignore:
Timestamp:
2006-10-27T17:15:13+02:00 (18 years ago)
Author:
opalod
Message:

nemo_v1_bugfix_069: SM+CT+CE: bugfix of mld restart + OFF line compatibiblity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/OPA_SRC/restart.F90

    r547 r557  
    2424   USE in_out_manager  ! I/O manager 
    2525   USE iom             ! I/O module 
    26    USE trdmld_oce      ! ! ocean active mixed layer tracers trends variables 
    2726   USE ini1d           ! re-initialization of u-v mask for the 1D configuration 
    2827   USE zpshde          ! partial step: hor. derivative (zps_hde routine) 
     
    3736 
    3837   LOGICAL, PUBLIC ::   lrst_oce                  !: logical to control the oce restart write  
    39    INTEGER, PUBLIC ::   nitrst                    !: time step at which restart file should be written 
    4038   INTEGER, PUBLIC ::   numror, numrow, nummldw   !: logical unit for cean restart (read and write) 
    4139 
     
    7270       
    7371      IF    ( kt == nitrst-1 .AND. lrst_oce         ) THEN 
    74          CALL ctl_stop( 'rst_opn: we cannot create an ocean restart at every time step' ) 
     72         CALL ctl_stop( 'rst_opn: we cannot create an ocean restart at every time step',    & 
     73            &           'if the run ahs more than one tie step!!!' ) 
    7574         numrow = 0 
    7675      ELSEIF( kt == nitrst-1 .OR.  nitend == nit000 ) THEN   ! beware if model runs only one time step 
     
    8685         IF(lwp) WRITE(numout,*) '             open ocean restart.output NetCDF file: '//clname 
    8786         CALL iom_open( clname, numrow, ldwrt = .TRUE., kiolib = jprstlib ) 
    88          IF( lk_trdmld )   THEN 
    89             clname = TRIM(cexper)//"_"//TRIM(ADJUSTL(clkt))//"_restart_mld" 
    90             IF(lwp) WRITE(numout,*) '             open ocean restart_mld NetCDF file: '//clname 
    91             CALL iom_open( clname, nummldw, ldwrt = .TRUE., kiolib = jprstlib ) 
    92          ENDIF 
    9387         lrst_oce = .TRUE. 
    9488      ENDIF 
Note: See TracChangeset for help on using the changeset viewer.