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 6464 for trunk/NEMOGCM/NEMO – NEMO

Changeset 6464 for trunk/NEMOGCM/NEMO


Ignore:
Timestamp:
2016-04-11T13:09:42+02:00 (8 years ago)
Author:
pabouttier
Message:

Add restarting functionality for stochastic parametrization parameters; See ticket #1705

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/step.F90

    r6381 r6464  
    112112      ! Update stochastic parameters and random T/S fluctuations 
    113113      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
    114                          CALL sto_par( kstp )          ! Stochastic parameters 
     114      IF( ln_sto_eos ) CALL sto_par( kstp )          ! Stochastic parameters 
     115      IF( ln_sto_eos ) CALL sto_pts( tsn  )          ! Random T/S fluctuations 
    115116 
    116117      !>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
     
    154155      ! 
    155156      IF( l_ldfslp ) THEN                             ! slope of lateral mixing 
    156 !!gm : why this here ???? 
    157          IF(ln_sto_eos ) CALL sto_pts( tsn )          ! Random T/S fluctuations 
    158 !!gm 
    159157                         CALL eos( tsb, rhd, gdept_0(:,:,:) )               ! before in situ density 
    160158 
     
    183181      IF(.NOT.ln_linssh )   CALL dom_vvl_sf_nxt( kstp )  ! after vertical scale factors  
    184182                            CALL wzv           ( kstp )  ! now cross-level velocity  
    185 !!gm : why also here ???? 
    186       IF( ln_sto_eos    )   CALL sto_pts( tsn )                             ! Random T/S fluctuations 
    187 !!gm 
    188183                            CALL eos    ( tsn, rhd, rhop, gdept_n(:,:,:) )  ! now in situ density for hpg computation 
    189184                             
     
    306301!!jc: That would be better, but see comment above 
    307302!! 
    308       IF( lrst_oce   )   CALL rst_write     ( kstp )  ! write output ocean restart file 
     303      IF( lrst_oce         )   CALL rst_write    ( kstp )   ! write output ocean restart file 
     304      IF( ln_sto_eos       )   CALL sto_rst_write( kstp )   ! write restart file for stochastic parameters 
    309305 
    310306#if defined key_agrif 
Note: See TracChangeset for help on using the changeset viewer.