163 class(MappedMemoryType) :: this
164
165 integer(I4B) :: i, k
166
167 if (this%copy_all) then
168 do i = 1, this%tgt%isize
169 do k = 1, size(this%src%adbl2d, dim=1)
170 this%tgt%adbl2d(k, i) = this%src%adbl2d(k, i)
171 end do
172 end do
173 else if (associated(this%lut)) then
174 do i = 1, size(this%tgt_idx)
175 do k = 1, size(this%src%adbl2d, dim=1)
176 this%tgt%adbl2d(k, this%tgt_idx(i)) = &
177 this%src%adbl2d(k, this%lut(this%src_idx(i)))
178 end do
179 end do
180 else
181 do i = 1, size(this%tgt_idx)
182 do k = 1, size(this%src%adbl2d, dim=1)
183 this%tgt%adbl2d(k, this%tgt_idx(i)) = &
184 this%src%adbl2d(k, this%src_idx(i))
185 end do
186 end do
187 end if
188