petsc function wrapper

Aron Ahmadia aja2111 at columbia.edu
Thu Nov 5 03:10:51 CST 2009


Hi Braxton,

I don't think there's an explicit manual page in PETSc for doing it.
You would need to do:

VecGetArray
VecGetOwnershipRange

(iterate over range on data from array)

VecRestoreArray

I cc the PETSc user's list in case anyone else has a brighter idea.

Cheers,
A

On Thu, Nov 5, 2009 at 3:40 AM, Braxton Osting <braxtono at gmail.com> wrote:
> aron,
>
> last year you showed abby and I a slick way to apply a function to a
> petsc vec pointwise. i can't seem to find that manual page now. do you
> remember it?
>
> thanks,
> b
>


More information about the petsc-users mailing list