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/TRD/trdmld.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/TRD/trdmld.F90

    r521 r557  
    3737   USE trdmld_rst      ! restart for diagnosing the ML trends 
    3838   USE prtctl          ! Print control 
     39   USE restart         ! for lrst_oce 
    3940 
    4041   IMPLICIT NONE 
     
    4950   INTEGER ::   nidtrd, ndextrd1(jpi*jpj) 
    5051   INTEGER ::   ndimtrd1                         
    51    INTEGER, SAVE ::  ionce, icount                    
     52   INTEGER ::   ionce, icount                    
    5253 
    5354   !! * Substitutions 
     
    246247#endif 
    247248      !!---------------------------------------------------------------------- 
     249       
     250      ! ====================================================================== 
     251      ! 0. open restart trend when needed (at kt ==  nitrst-1) 
     252      ! ====================================================================== 
     253      IF( kt == nitrst-1 ) THEN 
     254         clname = TRIM(cexper)//"_"//TRIM(ADJUSTL(clkt))//"_restart_mld" 
     255         IF(lwp) WRITE(numout,*) '             open ocean restart_mld NetCDF file: '//clname 
     256         CALL iom_open( clname, nummldw, ldwrt = .TRUE., kiolib = jprstlib ) 
     257      ENDIF 
    248258 
    249259      ! ====================================================================== 
     
    702712      ! ====================================================================== 
    703713 
    704       CALL trd_mld_rst_write( kt )  
     714      IF( lrst_oce )   CALL trd_mld_rst_write( kt )  
    705715 
    706716   END SUBROUTINE trd_mld 
    707  
    708717 
    709718 
Note: See TracChangeset for help on using the changeset viewer.