Changeset 474
- Timestamp:
- 09/12/16 10:05:57 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/trunk/src/physics_interface.f90
r472 r474 125 125 END DO 126 126 CASE(3) ! Copy non-halo points only, one at a time (works, slow ?) 127 n=COUNT(own,1) 127 n=0 128 n(jj_begin:jj_end)=COUNT(own(ii_begin:ii_end,jj_begin:jj_end),1) 128 129 ngrid=SUM(n) 129 130 info%ngrid=ngrid … … 146 147 CASE DEFAULT ! Copy non-halo points only, as contiguous segments (works) 147 148 n=0 148 n =COUNT(own,1)149 n(jj_begin:jj_end)=COUNT(own(ii_begin:ii_end,jj_begin:jj_end),1) 149 150 ngrid=SUM(n) 150 151 info%ngrid=ngrid … … 154 155 ALLOCATE(info%ij(nseg)) 155 156 ALLOCATE(info%k(nseg)) 156 157 info%n(:)=0 158 info%ij(:)=0 159 info%k(:)=0 160 157 161 jj=1 158 162 k=1 159 DO j= 1,jjm163 DO j=jj_begin,jj_end 160 164 IF(n(j)>0) THEN 161 165 ! find first .TRUE. value in own(:,j) 162 DO i= 1,iim166 DO i=ii_begin,ii_end 163 167 IF(own(i,j)) THEN 164 168 info%n(jj)=n(j)
Note: See TracChangeset
for help on using the changeset viewer.