Changeset 1011 for codes/icosagcm/devel/src/physics/physics_interface.f90
- Timestamp:
- 01/21/20 00:16:21 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/devel/src/physics/physics_interface.f90
r741 r1011 7 7 TYPE t_physics_inout 8 8 ! Input, time-independent 9 INTEGER :: ngrid 9 INTEGER :: ngrid, it 10 10 REAL(rstd) :: dt_phys 11 REAL(rstd), DIMENSION(:), POINTER:: Ai, lon, lat, phis11 REAL(rstd), DIMENSION(:), ALLOCATABLE :: Ai, lon, lat, phis 12 12 ! Input, time-dependent 13 REAL(rstd), DIMENSION(:,:), POINTER:: geopot, p, pk, Temp, ulon, ulat14 REAL(rstd), DIMENSION(:,:,:), POINTER:: q13 REAL(rstd), DIMENSION(:,:), ALLOCATABLE :: geopot, p, pk, Temp, ulon, ulat 14 REAL(rstd), DIMENSION(:,:,:), ALLOCATABLE :: q 15 15 ! Output arrays 16 REAL(rstd), DIMENSION(:,:), POINTER:: dTemp, dulon, dulat17 REAL(rstd), DIMENSION(:,:,:), POINTER:: dq16 REAL(rstd), DIMENSION(:,:), ALLOCATABLE :: dTemp, dulon, dulat 17 REAL(rstd), DIMENSION(:,:,:), ALLOCATABLE :: dq 18 18 END TYPE t_physics_inout 19 19 … … 165 165 166 166 CASE DEFAULT ! Copy non-halo points only, as contiguous segments (works) 167 n =0167 n(:)=0 168 168 n(jj_begin:jj_end)=COUNT(own(ii_begin:ii_end,jj_begin:jj_end),1) 169 169 ngrid=SUM(n) … … 185 185 DO i=ii_begin,ii_end 186 186 IF(own(i,j)) THEN 187 info%n(jj)=n(j) 188 info%k(jj)=k 189 info%ij(jj) = iim*(j-1)+i 187 info%n(jj)=n(j) ! size of segment 188 info%k(jj)=k ! start index in packed array 189 info%ij(jj) = iim*(j-1)+i ! start index in unpacked array 190 190 IF(COUNT(own(i:i+n(j)-1,j)) /= n(j)) STOP 191 191 EXIT
Note: See TracChangeset
for help on using the changeset viewer.