[petsc-dev] VecSetFromOptions() being called from all over the place

Jed Brown jedbrown at mcs.anl.gov
Sun Sep 1 19:53:32 CDT 2013


Barry Smith <bsmith at mcs.anl.gov> writes:

> If so then shouldn't DMSetVecType() be the function that determines
> the type for DM in one fell swoop instead of separate calls to
> VecSetFromOptions() for each create? Note in theory that
> DMSetFromOptions() has the option -dm_vec_type allowing runtime
> selection of all the DM vectors also rather than the separate calls to
> VecSetFromOptions() for each create?

Yes.

>   Can all these VecSetFromOptions() be removed?

Probably replaced with VecSetType(X,dm->vectype)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130901/a83425a7/attachment.sig>


More information about the petsc-dev mailing list