[petsc-users] VecPointwiseDivide for Vecs with multiple DOFs?

2011-07-14 Thread Max Rudolph
Is there a straightforward way to perform a pointwise divide of every DOF in a global Vec with multiple degrees of freedom by another vector that has only one degree of freedom? Thanks for your help. Max

[petsc-users] VecPointwiseDivide for Vecs with multiple DOFs?

2011-07-15 Thread Matthew Knepley
You would just write this the same way PointwiseDivide() is written. Take out the arrays using VecGetArray() and do the processing yourself. Thanks, Matt On Fri, Jul 15, 2011 at 12:55 AM, Max Rudolph wrote: > Is there a straightforward way to perform a pointwise divide of every DOF > in