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 9125 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/TRD/trdmxl.F90 – NEMO

Ignore:
Timestamp:
2017-12-19T09:47:17+01:00 (7 years ago)
Author:
timgraham
Message:

Removed wrk_arrays from whole code. No change in SETTE results from this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/OPA_SRC/TRD/trdmxl.F90

    r9101 r9125  
    3737   USE restart         ! for lrst_oce 
    3838   USE lib_mpp         ! MPP library 
    39    USE wrk_nemo        ! Memory allocation 
    4039   USE iom 
    4140 
     
    253252      ! 
    254253      INTEGER ::   ji, jj, jk, isum 
    255       REAL(wp), POINTER, DIMENSION(:,:)  :: zvlmsk  
    256       !!---------------------------------------------------------------------- 
    257  
    258       CALL wrk_alloc( jpi, jpj, zvlmsk )  
     254      REAL(wp), DIMENSION(jpi,jpj)  :: zvlmsk  
     255      !!---------------------------------------------------------------------- 
    259256 
    260257      ! I. Definition of control surface and associated fields 
     
    280277 
    281278      END IF 
    282       ! 
    283       CALL wrk_dealloc( jpi, jpj, zvlmsk )  
    284279      ! 
    285280   END SUBROUTINE trd_mxl_zint 
     
    339334      !                                              ! z(ts)mltot : dT/dt over the anlysis window (including Asselin) 
    340335      !                                              ! z(ts)mlres : residual = dh/dt entrainment term 
    341       REAL(wp), POINTER, DIMENSION(:,:  ) ::  ztmltot , zsmltot , ztmlres , zsmlres , ztmlatf , zsmlatf 
    342       REAL(wp), POINTER, DIMENSION(:,:  ) ::  ztmltot2, zsmltot2, ztmlres2, zsmlres2, ztmlatf2, zsmlatf2, ztmltrdm2, zsmltrdm2   
    343       REAL(wp), POINTER, DIMENSION(:,:,:) ::  ztmltrd2, zsmltrd2   ! only needed for mean diagnostics 
     336      REAL(wp), DIMENSION(jpi,jpj  )  ::  ztmltot , zsmltot , ztmlres , zsmlres , ztmlatf , zsmlatf 
     337      REAL(wp), DIMENSION(jpi,jpj  )  ::  ztmltot2, zsmltot2, ztmlres2, zsmlres2, ztmlatf2, zsmlatf2, ztmltrdm2, zsmltrdm2   
     338      REAL(wp), DIMENSION(jpi,jpj,jpk) ::  ztmltrd2, zsmltrd2   ! only needed for mean diagnostics 
    344339      !!---------------------------------------------------------------------- 
    345340   
    346       CALL wrk_alloc( jpi, jpj,         ztmltot , zsmltot , ztmlres , zsmlres , ztmlatf , zsmlatf                        ) 
    347       CALL wrk_alloc( jpi, jpj,         ztmltot2, zsmltot2, ztmlres2, zsmlres2, ztmlatf2, zsmlatf2, ztmltrdm2, zsmltrdm2 )   
    348       CALL wrk_alloc( jpi, jpj, jpltrd, ztmltrd2, zsmltrd2                                                               ) 
    349  
    350341      ! ====================================================================== 
    351342      ! II. Cumulate the trends over the analysis window 
     
    719710      IF( lrst_oce )   CALL trd_mxl_rst_write( kt )  
    720711 
    721       CALL wrk_dealloc( jpi, jpj,         ztmltot , zsmltot , ztmlres , zsmlres , ztmlatf , zsmlatf                        ) 
    722       CALL wrk_dealloc( jpi, jpj,         ztmltot2, zsmltot2, ztmlres2, zsmlres2, ztmlatf2, zsmlatf2, ztmltrdm2, zsmltrdm2 )   
    723       CALL wrk_dealloc( jpi, jpj, jpltrd, ztmltrd2, zsmltrd2                                                               ) 
    724712      ! 
    725713   END SUBROUTINE trd_mxl 
Note: See TracChangeset for help on using the changeset viewer.