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 2517 for branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/DOM – NEMO

Ignore:
Timestamp:
2010-12-23T17:34:46+01:00 (14 years ago)
Author:
cetlod
Message:

v3.3beta:Ensure restartability of ORCA2_OFF_PISCES & define lk_offline flag for OFFLINE mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/nemo_v3_3_beta/NEMOGCM/NEMO/OPA_SRC/DOM/daymod.F90

    r2353 r2517  
    3333   USE prtctl          ! Print control 
    3434   USE restart         !  
     35   USE trc_oce, ONLY : lk_offline ! offline flag 
    3536 
    3637   IMPLICIT NONE 
     
    8081      ndt05   = NINT(0.5 * rdttra(1)) 
    8182 
    82       CALL day_rst( nit000, 'READ' )  
     83      IF( .NOT. lk_offline ) CALL day_rst( nit000, 'READ' )  
    8384 
    8485      ! set the calandar from ndastp (read in restart file and namelist) 
     
    254255      ENDIF 
    255256 
    256 #if ! defined key_offline 
    257       CALL rst_opn( kt )                                ! Open the restart file if needed and control lrst_oce 
    258 #endif 
    259       IF( lrst_oce )   CALL day_rst( kt, 'WRITE' )      ! write day restart information 
     257      IF( .NOT. lk_offline ) CALL rst_opn( kt )               ! Open the restart file if needed and control lrst_oce 
     258      IF( lrst_oce         ) CALL day_rst( kt, 'WRITE' )      ! write day restart information 
    260259      ! 
    261260   END SUBROUTINE day 
Note: See TracChangeset for help on using the changeset viewer.