- 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/LBC/lib_mpp.F90
r7753 r7910 63 63 USE lbcnfd ! north fold treatment 64 64 USE in_out_manager ! I/O manager 65 USE wrk_nemo ! work arrays66 65 67 66 IMPLICIT NONE … … 2069 2068 !! 2070 2069 INTEGER :: ierror, localcomm 2071 REAL(wp) , POINTER , DIMENSION(:) :: zwork 2072 !!---------------------------------------------------------------------- 2073 ! 2074 CALL wrk_alloc(NUM , zwork) 2070 REAL(wp) , DIMENSION(NUM) :: zwork 2071 !!---------------------------------------------------------------------- 2072 ! 2075 2073 localcomm = mpi_comm_opa 2076 2074 IF( PRESENT(kcom) ) localcomm = kcom … … 2078 2076 CALL mpi_allreduce( ptab, zwork, NUM, mpi_double_precision, mpi_max, localcomm, ierror ) 2079 2077 ptab = zwork 2080 CALL wrk_dealloc(NUM , zwork)2081 2078 ! 2082 2079 END SUBROUTINE mppmax_real_multiple … … 2466 2463 ! 2467 2464 ! Since this is just an init routine and these arrays are of length jpnij 2468 ! then don't use wrk_nemo module - just allocate and deallocate.2469 2465 ALLOCATE( kice(jpnij), zwork(jpnij), STAT=ierr ) 2470 2466 IF( ierr /= 0 ) THEN
Note: See TracChangeset
for help on using the changeset viewer.