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 9019 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/STO – NEMO

Ignore:
Timestamp:
2017-12-13T15:58:53+01:00 (6 years ago)
Author:
timgraham
Message:

Merge of dev_CNRS_2017 into branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/STO/stopar.F90

    r5571 r9019  
    159159      INTEGER  :: ji, jj, jk, jsto, jflt 
    160160      REAL(wp) :: stomax 
    161  
     161      !!---------------------------------------------------------------------- 
    162162      ! 
    163163      ! Update 2D stochastic arrays 
     
    235235         CALL lbc_lnk( sto3d(:,:,:,jsto), sto3d_typ(jsto), sto3d_sgn(jsto) ) 
    236236      END DO 
    237  
     237      ! 
    238238   END SUBROUTINE sto_par 
    239239 
     
    267267      REWIND( numnam_cfg )              ! Namelist namdyn_adv in configuration namelist : Momentum advection scheme 
    268268      READ  ( numnam_cfg, namsto, IOSTAT = ios, ERR = 902 ) 
    269 902   IF( ios /= 0 ) CALL ctl_nam ( ios , 'namsto in configuration namelist', lwp ) 
     269902   IF( ios > 0 ) CALL ctl_nam ( ios , 'namsto in configuration namelist', lwp ) 
    270270      IF(lwm) WRITE ( numond, namsto ) 
     271 
     272      IF( .NOT.ln_rststo ) THEN   ! no use of stochastic parameterization 
     273         IF(lwp) THEN 
     274            WRITE(numout,*) 
     275            WRITE(numout,*) 'sto_par_init : NO use of stochastic parameterization' 
     276            WRITE(numout,*) '~~~~~~~~~~~~' 
     277         ENDIF 
     278         RETURN 
     279      ENDIF 
    271280 
    272281      !IF(ln_ens_rst_in) cn_storst_in = cn_mem//cn_storst_in 
     
    673682      !!                  ***  ROUTINE sto_rst_read  *** 
    674683      !! 
    675  
    676684      !! ** Purpose :   read stochastic parameters from restart file 
    677685      !!---------------------------------------------------------------------- 
    678  
    679686      INTEGER  :: jsto, jseed 
    680687      INTEGER(KIND=8)     ::   ziseed(4)           ! RNG seeds in integer type 
     
    683690      CHARACTER(LEN=9)    ::   clsto3d='sto3d_000' ! stochastic parameter variable name 
    684691      CHARACTER(LEN=10)   ::   clseed='seed0_0000' ! seed variable name 
     692      !!---------------------------------------------------------------------- 
    685693 
    686694      IF ( jpsto2d > 0 .OR. jpsto3d > 0 ) THEN 
Note: See TracChangeset for help on using the changeset viewer.