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 15249 for NEMO/trunk/src/OCE/ZDF – NEMO

Ignore:
Timestamp:
2021-09-13T11:59:09+02:00 (3 years ago)
Author:
hadcv
Message:

#2721: Fix SETTE debug failures

Location:
NEMO/trunk/src/OCE/ZDF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/OCE/ZDF/zdfmxl.F90

    r15182 r15249  
    2626   PRIVATE 
    2727 
    28    PUBLIC   zdf_mxl, zdf_mxl_turb   ! called by zdfphy.F90 
     28   PUBLIC   zdf_mxl, zdf_mxl_turb, zdf_mxl_alloc   ! called by zdfphy.F90 
    2929 
    3030   INTEGER , PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   nmln    !: number of level in the mixed layer (used by LDF, ZDF, TRD, TOP) 
     
    8686            IF(lwp) WRITE(numout,*) 'zdf_mxl : mixed layer depth' 
    8787            IF(lwp) WRITE(numout,*) '~~~~~~~ ' 
    88             !                             ! allocate zdfmxl arrays 
    89             IF( zdf_mxl_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'zdf_mxl : unable to allocate arrays' ) 
    9088         ENDIF 
    9189      ENDIF 
     
    111109      ! 
    112110      IF( .NOT.l_offline .AND. iom_use("mldr10_1") ) THEN 
    113          IF( ln_isfcav ) THEN  ;  CALL iom_put( "mldr10_1", hmlp - risfdep)   ! mixed layer thickness 
    114          ELSE                  ;  CALL iom_put( "mldr10_1", hmlp )            ! mixed layer depth 
    115          END IF 
     111         IF( .NOT. l_istiled .OR. ntile == nijtile ) THEN         ! Do only on the last tile 
     112            IF( ln_isfcav ) THEN  ;  CALL iom_put( "mldr10_1", hmlp - risfdep)   ! mixed layer thickness 
     113            ELSE                  ;  CALL iom_put( "mldr10_1", hmlp )            ! mixed layer depth 
     114            END IF 
     115         ENDIF 
    116116      ENDIF 
    117117      ! 
     
    154154      ! 
    155155      IF( .NOT.l_offline .AND. iom_use("mldkz5") ) THEN 
    156          IF( ln_isfcav ) THEN  ;  CALL iom_put( "mldkz5"  , hmld - risfdep )   ! turbocline thickness 
    157          ELSE                  ;  CALL iom_put( "mldkz5"  , hmld )             ! turbocline depth 
    158          END IF 
     156         IF( .NOT. l_istiled .OR. ntile == nijtile ) THEN         ! Do only on the last tile 
     157            IF( ln_isfcav ) THEN  ;  CALL iom_put( "mldkz5"  , hmld - risfdep )   ! turbocline thickness 
     158            ELSE                  ;  CALL iom_put( "mldkz5"  , hmld )             ! turbocline depth 
     159            END IF 
     160         ENDIF 
    159161      ENDIF 
    160162      ! 
  • NEMO/trunk/src/OCE/ZDF/zdfphy.F90

    r15182 r15249  
    146146         wi    (:,:,:) = 0._wp 
    147147      ENDIF 
     148      !                                  ! Initialise zdf_mxl arrays (only hmld as not set everywhere when nn_hls > 1) 
     149      IF( zdf_mxl_alloc() /= 0 )   CALL ctl_stop( 'STOP', 'zdf_mxl : unable to allocate arrays' ) 
     150      hmld(:,:) = 0._wp 
    148151      !                          !==  Background eddy viscosity and diffusivity  ==! 
    149152      IF( nn_avb == 0 ) THEN             ! Define avmb, avtb from namelist parameter 
Note: See TracChangeset for help on using the changeset viewer.