Chunks moved to a new array (their level-of-detail bounds moved, not copied).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(LineChunk), | intent(inout) | :: | from(:) |
the chunks, and their new array (same size) |
||
| type(LineChunk), | intent(inout) | :: | to(:) |
the chunks, and their new array (same size) |
subroutine move_chunks(from, to) type(LineChunk), intent(inout) :: from(:), to(:) !! the chunks, and their new array (same size) integer :: i, k do i = 1, size(from) to(i)%line = from(i)%line to(i)%first = from(i)%first to(i)%capacity = from(i)%capacity to(i)%box_lo = from(i)%box_lo to(i)%box_hi = from(i)%box_hi to(i)%n_written = from(i)%n_written do k = 1, lod_levels if (allocated(from(i)%lod(k)%bound)) call move_alloc(from(i)%lod(k)%bound, to(i)%lod(k)%bound) end do end do end subroutine move_chunks