- Timestamp:
- 2011-11-22T10:53:46+01:00 (13 years ago)
- Location:
- branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC/prtctl_trc.F90
r2715 r3169 67 67 INTEGER , INTENT(in), OPTIONAL :: kdim ! k- direction for 4D arrays 68 68 !! 69 REAL(wp), DIMENSION(:,:,:), ALLOCATABLE :: zmask, ztab3d70 69 INTEGER :: overlap, jn, js, sind, eind, kdir, j_id 71 70 REAL(wp) :: zsum, zvctl 72 71 CHARACTER (len=20), DIMENSION(jptra) :: cl 73 72 CHARACTER (len=10) :: cl2 74 !!----------------------------------------------------------------------75 76 ALLOCATE( zmask (jpi,jpj,jpk) ) 77 ALLOCATE( ztab3d(jpi,jpj,jpk))73 REAL(wp), POINTER, DIMENSION(:,:,:) :: zmask, ztab3d 74 !!---------------------------------------------------------------------- 75 76 CALL wrk_alloc( jpi, jpj, jpk, zmask, ztab3d ) 78 77 ! ! Arrays, scalars initialization 79 78 overlap = 0 … … 151 150 END DO 152 151 ! 153 DEALLOCATE( zmask ) 154 DEALLOCATE( ztab3d ) 152 CALL wrk_dealloc( jpi, jpj, jpk, zmask, ztab3d ) 155 153 ! 156 154 END SUBROUTINE prt_ctl_trc … … 336 334 INTEGER :: nrecil, nrecjl, nldil, nleil, nldjl, nlejl 337 335 REAL(wp) :: zidom, zjdom ! temporary scalars 338 INTEGER, DIMENSION(:,:), ALLOCATABLE :: iimpptl, ijmpptl, ilcitl, ilcjtl ! temporary workspace 339 !!---------------------------------------------------------------------- 340 336 INTEGER, POINTER, DIMENSION(:,:) :: iimpptl, ijmpptl, ilcitl, ilcjtl ! temporary workspace 337 !!---------------------------------------------------------------------- 338 ! 339 CALL wrk_alloc( isplt, jsplt, ilcitl, ilcjtl, iimpptl, ijmpptl ) 340 ! 341 341 ! Dimension arrays for subdomains 342 342 ! ------------------------------- … … 350 350 ijpj = ( jpjglo-2*jprecj + (jsplt-1) ) / jsplt + 2*jprecj 351 351 352 ALLOCATE( ilcitl (isplt,jsplt) )353 ALLOCATE( ilcjtl (isplt,jsplt) )354 355 352 nrecil = 2 * jpreci 356 353 nrecjl = 2 * jprecj … … 391 388 ! --------------------------- 392 389 393 ALLOCATE( iimpptl(isplt,jsplt) )394 ALLOCATE( ijmpptl(isplt,jsplt) )395 396 390 iimpptl(:,:) = 1 397 391 ijmpptl(:,:) = 1 … … 450 444 nlejtl(js) = nlejl 451 445 END DO 452 453 DEALLOCATE( iimpptl ) 454 DEALLOCATE( ijmpptl ) 455 DEALLOCATE( ilcitl ) 456 DEALLOCATE( ilcjtl ) 446 ! 447 CALL wrk_dealloc( isplt, jsplt, ilcitl, ilcjtl, iimpptl, ijmpptl ) 457 448 ! 458 449 END SUBROUTINE sub_dom -
branches/2011/dev_NEMO_MERGE_2011/NEMOGCM/NEMO/TOP_SRC/trcini.F90
r3166 r3169 60 60 INTEGER :: ierr ! local integer 61 61 CHARACTER (len=25) :: charout 62 REAL(wp), ALLOCATABLE, DIMENSION(:,:,:,:) :: ztrcdta ! 4D workspace62 REAL(wp), POINTER, DIMENSION(:,:,:,:) :: ztrcdta ! 4D workspace 63 63 !!--------------------------------------------------------------------- 64 64 ! … … 118 118 ENDIF 119 119 IF( ln_trcdta .AND. nb_trcdta > 0 ) THEN ! Initialisation of tracer from a file that may also be used for damping 120 ALLOCATE( ztrcdta(jpi,jpj,jpk,nb_trcdta), STAT=ierr ) 121 IF( ierr > 0 ) THEN 122 CALL ctl_stop( 'trc_ini: unable to allocate ztrcdta array' ) ; RETURN 123 ENDIF 120 ! 121 CALL wrk_alloc( jpi, jpj, jpk, nb_trcdta, ztrcdta ) ! Memory allocation 124 122 ! 125 123 CALL trc_dta( nit000, ztrcdta ) ! read tracer data at nit000 … … 131 129 ENDIF 132 130 ENDDO 133 DEALLOCATE( ztrcdta )131 CALL wrk_dealloc( jpi, jpj, jpk, nb_trcdta, ztrcdta ) 134 132 ENDIF 135 133 !
Note: See TracChangeset
for help on using the changeset viewer.