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 11467 for NEMO/branches/UKMO/dev_r10037_GPU/src/OCE/ZDF/zdfmxl.F90 – NEMO

Ignore:
Timestamp:
2019-08-22T11:49:08+02:00 (5 years ago)
Author:
andmirek
Message:

Ticket #2197 allocate arrays at the beggining of the run

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/branches/UKMO/dev_r10037_GPU/src/OCE/ZDF/zdfmxl.F90

    r10843 r11467  
    8686      !! ** Action  :   nmln, hmld, hmlp, hmlpt 
    8787      !!---------------------------------------------------------------------- 
     88      USE scoce, ONLY : imld => iscr2D1 
    8889      INTEGER, INTENT(in) ::   kt   ! ocean time-step index 
    8990      ! 
     
    9192      INTEGER  ::   iikn, iiki, ikt ! local integer 
    9293      REAL(wp) ::   zN2_c           ! local scalar 
    93       INTEGER, DIMENSION(jpi,jpj) ::   imld   ! 2D workspace 
    9494      !!---------------------------------------------------------------------- 
    9595      ! 
     
    177177      !  
    178178      !!-----------------------------------------------------------------------------------  
    179  
     179      USE scoce, ONLY : ikmt => iscr2D1,   &    ! number of active tracer levels 
     180                       ik_ref => iscr2D2, &    ! index of reference level 
     181                       ik_iso => iscr2D3, &    ! index of last uniform temp level 
     182                       zT => scr1,        &    ! Temperature or density       
     183                       ppzdep => scr2D1,  &    ! depth for use in calculating d(rho) 
     184                       zT_ref => scr2D2,  &    ! reference temperature 
     185                       zdTdz => scr2,     &    ! gradient of zT 
     186                       zmoddT => scr3,    &    ! Absolute temperature difference 
     187                       zdelta_T => scr2D3,&    ! difference critereon 
     188                       zRHO1 => scr2D4,   &    ! Densities 
     189                       zRHO2 => scr2D5         ! Densities 
    180190      TYPE(MXL_ZINT), INTENT(in)  :: sf 
    181191 
     
    188198      ! Local variables 
    189199      REAL(wp), PARAMETER :: zepsilon = 1.e-30          ! local small value 
    190       INTEGER, DIMENSION(jpi,jpj) :: ikmt          ! number of active tracer levels  
    191       INTEGER, DIMENSION(jpi,jpj) :: ik_ref        ! index of reference level  
    192       INTEGER, DIMENSION(jpi,jpj) :: ik_iso        ! index of last uniform temp level  
    193       REAL, DIMENSION(jpi,jpj,jpk)  :: zT            ! Temperature or density  
    194       REAL, DIMENSION(jpi,jpj)    :: ppzdep        ! depth for use in calculating d(rho)  
    195       REAL, DIMENSION(jpi,jpj)    :: zT_ref        ! reference temperature  
    196200      REAL    :: zT_b                                   ! base temperature  
    197       REAL, DIMENSION(jpi,jpj,jpk)  :: zdTdz         ! gradient of zT  
    198       REAL, DIMENSION(jpi,jpj,jpk)  :: zmoddT        ! Absolute temperature difference  
    199201      REAL    :: zdz                                    ! depth difference  
    200202      REAL    :: zdT                                    ! temperature difference  
    201       REAL, DIMENSION(jpi,jpj)    :: zdelta_T      ! difference critereon  
    202       REAL, DIMENSION(jpi,jpj)    :: zRHO1, zRHO2  ! Densities  
    203203      INTEGER :: ji, jj, jk                             ! loop counter  
    204204 
Note: See TracChangeset for help on using the changeset viewer.