- Timestamp:
- 2017-04-13T16:21:08+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2017/dev_r7881_no_wrk_alloc/NEMOGCM/NEMO/OPA_SRC/DIA/diadct.F90
r7646 r7910 40 40 USE domvvl 41 41 USE timing ! preformance summary 42 USE wrk_nemo ! working arrays43 42 44 43 IMPLICIT NONE … … 209 208 INTEGER , DIMENSION(1) :: ish ! tmp array for mpp_sum 210 209 INTEGER , DIMENSION(3) :: ish2 ! " 211 REAL(wp), POINTER, DIMENSION(:) :: zwork ! "212 REAL(wp), POINTER, DIMENSION(:,:,:):: zsum ! "210 REAL(wp), DIMENSION(itotal) :: zwork ! " 211 REAL(wp), DIMENSION(nb_sec_max,nb_type_class,nb_class_max):: zsum ! " 213 212 !!--------------------------------------------------------------------- 214 213 ! … … 217 216 IF( lk_mpp )THEN 218 217 itotal = nb_sec_max*nb_type_class*nb_class_max 219 CALL wrk_alloc( itotal , zwork )220 CALL wrk_alloc( nb_sec_max,nb_type_class,nb_class_max , zsum )221 218 ENDIF 222 219 … … 289 286 IF( lk_mpp )THEN 290 287 itotal = nb_sec_max*nb_type_class*nb_class_max 291 CALL wrk_dealloc( itotal , zwork )292 CALL wrk_dealloc( nb_sec_max,nb_type_class,nb_class_max , zsum )293 288 ENDIF 294 289 … … 318 313 TYPE(POINT_SECTION),DIMENSION(nb_point_max) ::coordtemp !contains listpoints coordinates 319 314 !read in the file 320 INTEGER, POINTER, DIMENSION(:) :: directemp !contains listpoints directions315 INTEGER, DIMENSION(nb_point_max) :: directemp !contains listpoints directions 321 316 !read in the files 322 317 LOGICAL :: llbon ,&!local logical 323 318 lldebug !debug the section 324 319 !!------------------------------------------------------------------------------------- 325 CALL wrk_alloc( nb_point_max, directemp )326 320 327 321 !open input file … … 495 489 nb_sec = jsec-1 !number of section read in the file 496 490 497 CALL wrk_dealloc( nb_point_max, directemp )498 491 ! 499 492 END SUBROUTINE readsec … … 521 514 istart,iend !first and last points selected in listpoint 522 515 INTEGER :: jpoint !loop on list points 523 INTEGER, POINTER, DIMENSION(:) :: idirec !contains temporary sec%direction524 INTEGER, POINTER, DIMENSION(:,:) :: icoord !contains temporary sec%listpoint516 INTEGER, DIMENSION(nb_point_max) :: idirec !contains temporary sec%direction 517 INTEGER, DIMENSION(2,nb_point_max) :: icoord !contains temporary sec%listpoint 525 518 !---------------------------------------------------------------------------- 526 CALL wrk_alloc( nb_point_max, idirec )527 CALL wrk_alloc( 2, nb_point_max, icoord )528 519 529 520 IF( ld_debug )WRITE(numout,*)' -------------------------' … … 575 566 ENDIF 576 567 577 CALL wrk_dealloc( nb_point_max, idirec )578 CALL wrk_dealloc( 2, nb_point_max, icoord )579 568 END SUBROUTINE removepoints 580 569 … … 1019 1008 REAL(wp) :: zslope ! section's slope coeff 1020 1009 ! 1021 REAL(wp), POINTER, DIMENSION(:):: zsumclasses ! 1D workspace1010 REAL(wp), DIMENSION(nb_type_class):: zsumclasses ! 1D workspace 1022 1011 !!------------------------------------------------------------- 1023 CALL wrk_alloc(nb_type_class , zsumclasses )1024 1012 1025 1013 zsumclasses(:)=0._wp … … 1133 1121 119 FORMAT(I8,1X,I8,1X,I4,1X,A30,1X,f9.2,1X,I4,3X,A8,1X,2F12.4,5X,3E15.6) 1134 1122 1135 CALL wrk_dealloc(nb_type_class , zsumclasses )1136 1123 ! 1137 1124 END SUBROUTINE dia_dct_wri
Note: See TracChangeset
for help on using the changeset viewer.