Pearl,

> I'd like to use some PETSC functions that aren't available in deal ii
> - specifically the MatShell command that allows you to define a matrix
> in terms of the matrix-vector product, and then use it in solvers.
> Later I will probably use SLEPC, which also uses PETSC vectors. The
> PETSc Wrapper vector classes have a conversion to Vec function, but it
> has a warning on it. How bad of an idea is it to do this conversion?

As long as you are aware of the issues that can happen if you mix accessing 
the same objects through both PETSc functions and deal.II wrappers 
functions, nothing bad should happen. In particular it should be perfectly 
safe to assemble a matrix or vector using our wrapper functions and then 
hand it off to PETSc for other operations.

Does this help?

Best
 W.

-------------------------------------------------------------------------
Wolfgang Bangerth                email:            [EMAIL PROTECTED]
                                 www: http://www.math.tamu.edu/~bangerth/


_______________________________________________

Reply via email to