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 5504 for trunk/NEMOGCM/NEMO/TOP_SRC/trcrst.F90 – NEMO

Ignore:
Timestamp:
2015-06-29T14:37:35+02:00 (9 years ago)
Author:
cetlod
Message:

bugfix: computation of the meskmask from coordinate/bathymetry if needed in offline mode, see ticket #1545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/TOP_SRC/trcrst.F90

    r5385 r5504  
    226226            &   CALL ctl_stop( ' ===>>>> : problem with nittrc000 for the restart',                 & 
    227227            &                  ' verify the restart file or rerun with nn_rsttr = 0 (namelist)' ) 
    228          IF( lk_offline ) THEN      ! set the date in offline mode 
    229             ! Check dynamics and tracer time-step consistency and force Euler restart if changed 
    230             IF( iom_varid( numrtr, 'rdttrc1', ldstop = .FALSE. ) > 0 )   THEN 
    231                CALL iom_get( numrtr, 'rdttrc1', zrdttrc1 ) 
    232                IF( zrdttrc1 /= rdt * nn_dttrc )   neuler = 0 
    233             ENDIF 
    234             !                          ! define ndastp and adatrj 
    235             IF( nn_rsttr == 2 ) THEN 
     228         IF( lk_offline ) THEN     
     229            !                                          ! set the date in offline mode 
     230            IF( ln_rsttr .AND. nn_rsttr == 2 ) THEN 
    236231               CALL iom_get( numrtr, 'ndastp', zndastp )  
    237232               ndastp = NINT( zndastp ) 
    238233               CALL iom_get( numrtr, 'adatrj', adatrj  ) 
    239             ELSE 
     234             ELSE 
    240235               ndastp = ndate0 - 1     ! ndate0 read in the namelist in dom_nam 
    241236               adatrj = ( REAL( nittrc000-1, wp ) * rdttra(1) ) / rday 
     
    250245            ENDIF 
    251246            ! 
     247            IF( ln_rsttr )  THEN   ;    neuler = 1 
     248            ELSE                   ;    neuler = 0 
     249            ENDIF 
     250            ! 
    252251            CALL day_init          ! compute calendar 
    253252            ! 
Note: See TracChangeset for help on using the changeset viewer.