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 1433 for branches/dev_004_VVL – NEMO

Changeset 1433 for branches/dev_004_VVL


Ignore:
Timestamp:
2009-05-11T15:33:19+02:00 (15 years ago)
Author:
rblod
Message:

dev_004_VVL: ensure restartability, see ticket #401

Location:
branches/dev_004_VVL/NEMO/OPA_SRC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_004_VVL/NEMO/OPA_SRC/restart.F90

    r1410 r1433  
    143143      CALL iom_rstput( kt, nitrst, numrow, 'rotn'   , rotn    ) 
    144144      CALL iom_rstput( kt, nitrst, numrow, 'hdivn'  , hdivn   ) 
     145      CALL iom_rstput( kt, nitrst, numrow, 'rn2' , rn2  ) 
    145146 
    146147#if defined key_zdftke2 
     
    150151         CALL iom_rstput( kt, nitrst, numrow, 'rhd' , rhd  ) 
    151152#if defined key_zdftke2 
    152          CALL iom_rstput( kt, nitrst, numrow, 'rn2' , rn2  ) 
    153153         CALL iom_rstput( kt, nitrst, numrow, 'avt' , avt  ) 
    154154      ENDIF 
     
    239239         hdivb(:,:,:) = hdivn(:,:,:) 
    240240      ENDIF 
     241      CALL eos_init            ! usefull to get the equation state type neos parameter 
     242      IF( iom_varid( numror, 'rn2', ldstop = .FALSE. ) > 0 ) THEN 
     243         CALL iom_get( numror, jpdom_autoglo, 'rn2' , rn2  ) 
     244      ELSE 
     245         CALL bn2( tb, sb, rn2 )  ! before Brunt-Vaisala frequency    
     246      ENDIF 
    241247 
    242248#if defined key_zdftke2 
     
    257263#endif 
    258264#if defined key_zdftke2 
    259       CALL eos_init            ! usefull to get the equation state type neos parameter 
    260       IF( iom_varid( numror, 'rn2', ldstop = .FALSE. ) > 0 ) THEN 
    261          CALL iom_get( numror, jpdom_autoglo, 'rn2' , rn2  ) 
    262       ELSE 
    263          IF ( ln_dynhpg_imp ) THEN 
    264             CALL bn2( tb, sb, rn2 )  ! before Brunt-Vaisala frequency    
    265          ENDIF       
    266       ENDIF 
    267265      IF( iom_varid( numror, 'avt', ldstop = .FALSE. ) > 0 ) THEN 
    268266         CALL iom_get( numror, jpdom_autoglo, 'avt' , avt  ) 
  • branches/dev_004_VVL/NEMO/OPA_SRC/step.F90

    r1430 r1433  
    208208      ! N.B. ua, va, ta, sa arrays are used as workspace in this section 
    209209      !----------------------------------------------------------------------- 
    210 #if defined key_zdftke2 
    211       IF ( ln_dynhpg_imp ) THEN 
    212       !----------------------------------------------------------------------- 
    213       !  LATERAL PHYSICS 
    214       !----------------------------------------------------------------------- 
    215                                CALL zdf_mxl( kstp )                 ! mixed layer depth 
    216          IF( lk_ldfslp     )   CALL ldf_slp( kstp, rhd, rn2 )       ! before slope of the lateral mixing 
    217 #  if defined key_traldf_c2d 
    218          IF( lk_traldf_eiv )   CALL ldf_eiv( kstp )                 ! eddy induced velocity coefficient 
    219 #  endif 
    220       ENDIF 
    221 #endif 
    222       !----------------------------------------------------------------------- 
    223       !  VERTICAL PHYSICS 
    224       !----------------------------------------------------------------------- 
    225210      IF( neuler == 0 .AND. kstp == nit000 ) THEN 
    226211                        CALL bn2( tn, sn, rn2 )              ! now    Brunt-Vaisala frequency 
     
    231216      ENDIF 
    232217 
     218#if defined key_zdftke2 
     219      IF ( ln_dynhpg_imp ) THEN 
     220      !----------------------------------------------------------------------- 
     221      !  LATERAL PHYSICS 
     222      !----------------------------------------------------------------------- 
     223                               CALL zdf_mxl( kstp )                 ! mixed layer depth 
     224         IF( lk_ldfslp     )   CALL ldf_slp( kstp, rhd, rn2b )      ! before slope of the lateral mixing 
     225#  if defined key_traldf_c2d 
     226         IF( lk_traldf_eiv )   CALL ldf_eiv( kstp )                 ! eddy induced velocity coefficient 
     227#  endif 
     228      ENDIF 
     229#endif 
     230      !----------------------------------------------------------------------- 
     231      !  VERTICAL PHYSICS 
     232      !----------------------------------------------------------------------- 
    233233      !                                                     ! Vertical eddy viscosity and diffusivity coefficients 
    234234      IF( lk_zdfric )   CALL zdf_ric( kstp )                       ! Richardson number dependent Kz 
Note: See TracChangeset for help on using the changeset viewer.