← Back to team overview

dolfin team mailing list archive

GenericVector assignment in PyDOLFIN

 

Is it correct that behind the scenes that

  U0 = Function(V)
  U  = Function(V)
  U0.vector()[:] = U.vector()[:]

involves a GenericVector::get(..) call and a GenericVector::set(..)
call? If so, it isn't ideal since it introduces unnecessary new/delete
operations and unnecessary copying of data.

Garth



Follow ups