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

Changeset 7601


Ignore:
Timestamp:
2017-01-24T13:39:27+01:00 (8 years ago)
Author:
frrh
Message:

#1821 more changes to replace pointers with ALLOCATE in traldf_iso

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UKMO/dev_r5518_optim_GO6_alloc/NEMOGCM/NEMO/OPA_SRC/TRA/traldf_iso.F90

    r7544 r7601  
    3232   USE phycst          ! physical constants 
    3333   USE lbclnk          ! ocean lateral boundary conditions (or mpp link) 
    34    USE wrk_nemo        ! Memory Allocation 
    3534   USE timing          ! Timing 
    3635 
     
    110109      REAL(wp) ::  zmskv, zabe2, zcof2, zcoef4       !   -      - 
    111110      REAL(wp) ::  zcoef0, zbtr                      !   -      - 
    112       REAL(wp), POINTER, DIMENSION(:,:  ) ::  z2d 
    113       REAL(wp), POINTER, DIMENSION(:,:,:) ::  zdkt, zdk1t, zdit, zdjt, ztfw  
     111      REAL(wp), ALLOCATABLE, DIMENSION(:,:  ) ::  z2d 
     112      REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) ::  zdkt, zdk1t, zdit, zdjt, ztfw  
    114113      REAL(wp), ALLOCATABLE, DIMENSION(:,:,:), TARGET ::  ztrax, ztray, ztraz  
    115114      REAL(wp), ALLOCATABLE, DIMENSION(:,:,:), TARGET ::  ztrax_T, ztray_T, ztraz_T 
     
    118117      IF( nn_timing == 1 )  CALL timing_start('tra_ldf_iso') 
    119118      ! 
    120       CALL wrk_alloc( jpi, jpj,      z2d )  
    121       CALL wrk_alloc( jpi, jpj, jpk, zdit, zdjt, ztfw, zdkt, zdk1t)  
     119      ALLOCATE( z2d(jpi, jpj))  
     120      ALLOCATE( zdit(jpi, jpj, jpk)) 
     121      ALLOCATE( zdjt(jpi, jpj, jpk))  
     122      ALLOCATE( ztfw(jpi, jpj, jpk))  
     123      ALLOCTAE( zdkt(jpi, jpj, jpk))  
     124      ALLOCATE( zdk1t(jpi, jpj, jpk))  
    122125      ALLOCATE( ztrax(jpi,jpj,jpk), ztray(jpi,jpj,jpk), ztraz(jpi,jpj,jpk) )  
    123126      IF( l_trdtra .and. cdtype == 'TRA' ) ALLOCATE( ztrax_T(jpi,jpj,jpk), ztray_T(jpi,jpj,jpk), ztraz_T(jpi,jpj,jpk) )  
     
    347350      ENDIF 
    348351      ! 
    349       CALL wrk_dealloc( jpi, jpj, z2d )  
    350       CALL wrk_dealloc( jpi, jpj, jpk, zdit, zdjt, ztfw, zdkt, zdk1t )  
     352      DEALLOCATE( z2d )  
     353      DEALLOCATE( zdit)  
     354      DEALLOCATE( zdjt) 
     355      DEALLOCATE( ztfw)  
     356      DEALLOCATE( zdkt ) 
     357      DEALLOCATE( zdk1t )  
    351358      DEALLOCATE( ztrax, ztray, ztraz )  
    352359      IF( l_trdtra  .and. cdtype == 'TRA' ) DEALLOCATE( ztrax_T, ztray_T, ztraz_T )  
Note: See TracChangeset for help on using the changeset viewer.