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 14992 – NEMO

Changeset 14992


Ignore:
Timestamp:
2021-06-14T22:26:12+02:00 (3 years ago)
Author:
techene
Message:

#2605 : debug restartability in debug mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/2021/dev_r14318_RK3_stage1/src/OCE/IOM/restart.F90

    r14942 r14992  
    325325      ! 
    326326      IF( .NOT.lk_SWE ) THEN 
    327          IF( iom_varid( numror, 'rhop', ldstop = .FALSE. ) > 0 ) THEN 
     327         IF(.NOT. (iom_varid( numror, 'rhop', ldstop = .FALSE. ) > 0) ) THEN 
     328#if defined key_RK3 
     329            CALL eos( ts(:,:,:,:,:), Kbb, rhop) 
     330#else 
     331            CALL eos( ts(:,:,:,:,:), Kmm, rhop) 
     332         ELSE 
    328333            CALL iom_get( numror, jpdom_auto, 'rhop'   , rhop )   ! now    potential density 
    329          ELSE 
    330 #if defined key_qco 
    331             ALLOCATE( zgdept(jpi,jpj,jpk) ) 
    332             DO jk = 1, jpk 
    333                zgdept(:,:,jk) = gdept(:,:,jk,Kmm) 
    334             END DO 
    335             CALL eos( ts(:,:,:,:,Kmm), rhd, rhop, zgdept ) 
    336             DEALLOCATE( zgdept ) 
    337 #else 
    338             CALL eos( ts(:,:,:,:,Kmm), rhd, rhop, gdept(:,:,:,Kmm) ) 
    339334#endif 
    340335         ENDIF 
Note: See TracChangeset for help on using the changeset viewer.