Changeset 7601
- Timestamp:
- 2017-01-24T13:39:27+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r5518_optim_GO6_alloc/NEMOGCM/NEMO/OPA_SRC/TRA/traldf_iso.F90
r7544 r7601 32 32 USE phycst ! physical constants 33 33 USE lbclnk ! ocean lateral boundary conditions (or mpp link) 34 USE wrk_nemo ! Memory Allocation35 34 USE timing ! Timing 36 35 … … 110 109 REAL(wp) :: zmskv, zabe2, zcof2, zcoef4 ! - - 111 110 REAL(wp) :: zcoef0, zbtr ! - - 112 REAL(wp), POINTER, DIMENSION(:,: ) :: z2d113 REAL(wp), POINTER, DIMENSION(:,:,:) :: zdkt, zdk1t, zdit, zdjt, ztfw111 REAL(wp), ALLOCATABLE, DIMENSION(:,: ) :: z2d 112 REAL(wp), ALLOCATABLE, DIMENSION(:,:,:) :: zdkt, zdk1t, zdit, zdjt, ztfw 114 113 REAL(wp), ALLOCATABLE, DIMENSION(:,:,:), TARGET :: ztrax, ztray, ztraz 115 114 REAL(wp), ALLOCATABLE, DIMENSION(:,:,:), TARGET :: ztrax_T, ztray_T, ztraz_T … … 118 117 IF( nn_timing == 1 ) CALL timing_start('tra_ldf_iso') 119 118 ! 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)) 122 125 ALLOCATE( ztrax(jpi,jpj,jpk), ztray(jpi,jpj,jpk), ztraz(jpi,jpj,jpk) ) 123 126 IF( l_trdtra .and. cdtype == 'TRA' ) ALLOCATE( ztrax_T(jpi,jpj,jpk), ztray_T(jpi,jpj,jpk), ztraz_T(jpi,jpj,jpk) ) … … 347 350 ENDIF 348 351 ! 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 ) 351 358 DEALLOCATE( ztrax, ztray, ztraz ) 352 359 IF( l_trdtra .and. cdtype == 'TRA' ) DEALLOCATE( ztrax_T, ztray_T, ztraz_T )
Note: See TracChangeset
for help on using the changeset viewer.