Changeset 7074
- Timestamp:
- 2016-10-24T12:38:05+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/UKMO/dev_r4650_general_vert_coord_obsoper/NEMOGCM/NEMO/OPA_SRC/OBS/obs_mpp.F90
r6406 r7074 98 98 ! 99 99 INTEGER :: ierr 100 INTEGER, DIMENSION(kno) :: ivals 101 ! 102 INCLUDE 'mpif.h' 103 !!---------------------------------------------------------------------- 100 INTEGER, DIMENSION(:), ALLOCATABLE :: ivals 101 ! 102 INCLUDE 'mpif.h' 103 !!---------------------------------------------------------------------- 104 105 ALLOCATE( ivals(kno) ) 104 106 105 107 ! Call the MPI library to find the maximum across processors … … 107 109 & mpi_max, mpi_comm_opa, ierr ) 108 110 kvals(:) = ivals(:) 111 112 DEALLOCATE( ivals ) 109 113 #else 110 114 ! no MPI: empty routine … … 138 142 ! 139 143 INTEGER :: ji, isum 140 INTEGER, DIMENSION(kno) :: iobsp 141 !! 142 !! 143 144 iobsp=kobsp 144 INTEGER, DIMENSION(:), ALLOCATABLE :: iobsp 145 !! 146 !! 147 148 ALLOCATE( iobsp(kno) ) 149 150 iobsp(:)=kobsp(:) 145 151 146 152 WHERE( iobsp(:) == -1 ) … … 148 154 END WHERE 149 155 150 iobsp =-1*iobsp156 iobsp(:)=-1*iobsp(:) 151 157 152 158 CALL obs_mpp_max_integer( iobsp, kno ) 153 159 154 kobsp =-1*iobsp160 kobsp(:)=-1*iobsp(:) 155 161 156 162 isum=0 … … 168 174 ENDIF 169 175 176 DEALLOCATE( iobsp ) 177 170 178 #else 171 179 ! no MPI: empty routine
Note: See TracChangeset
for help on using the changeset viewer.