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

Changeset 6084


Ignore:
Timestamp:
2015-12-17T13:34:28+01:00 (8 years ago)
Author:
pabouttier
Message:

Fix segfault in zdf_tke_init, in case of nn_etau = 2 ; See Ticket #1587

Location:
branches/2015/dev_r5918_nemo_v3_6_STABLE_XIOS2/NEMOGCM/NEMO/OPA_SRC/ZDF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5918_nemo_v3_6_STABLE_XIOS2/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfmxl.F90

    r6064 r6084  
    2727 
    2828   PUBLIC   zdf_mxl       ! called by step.F90 
     29   PUBLIC   zdf_mxl_alloc ! Used in zdf_tke_init 
    2930 
    3031   INTEGER , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   nmln    !: number of level in the mixed layer (used by TOP) 
  • branches/2015/dev_r5918_nemo_v3_6_STABLE_XIOS2/NEMOGCM/NEMO/OPA_SRC/ZDF/zdftke.F90

    r5407 r6084  
    710710      !!---------------------------------------------------------------------- 
    711711      INTEGER ::   ji, jj, jk   ! dummy loop indices 
    712       INTEGER ::   ios 
     712      INTEGER ::   ios, ierr 
    713713      !! 
    714714      NAMELIST/namzdf_tke/ rn_ediff, rn_ediss , rn_ebb , rn_emin  ,   & 
     
    768768      ENDIF 
    769769       
    770       IF( nn_etau == 2  )   CALL zdf_mxl( nit000 )      ! Initialization of nmln  
     770      IF( nn_etau == 2  ) THEN 
     771          ierr = zdf_mxl_alloc() 
     772          nmln(:,:) = nlb10           ! Initialization of nmln 
     773      ENDIF 
    771774 
    772775      !                               !* depth of penetration of surface tke 
Note: See TracChangeset for help on using the changeset viewer.