[petsc-dev] TaoTerminationReason -> TaoConvergedReason

Jed Brown jed at jedbrown.org
Tue Feb 18 09:22:52 CST 2014


Lisandro Dalcin <dalcinl at gmail.com> writes:

> Barry, I've pushed a quick fix (missing PETSC_EXTERN in TaoMonitor())
> in your branch.
>
> The following prototypes in petsctao.h are also missing PETSC_EXTERN,
> and I think they should be more properly namespaced.
>
> PetscErrorCode VecGetSubVec(Vec, IS, PetscInt, PetscReal, Vec*);
> PetscErrorCode MatGetSubMat(Mat, IS, Vec, TaoSubsetType, Mat*);
>
> Perhaps you should move these prototypes (as well as TaoSubsetType) to
> taoimpl.h ? I'm not sure these routines should be part of the public
> interface.

I would rather not, but if nothing else changes, the PetscInt argument
should be TaoSubsetType.  I'm afraid I don't understand exactly what
role this function is serving, but the only TAO reference is the enum,
so it can probably be made generic and moved down to the Vec module.
-------------- 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/20140218/357e305c/attachment.sig>


More information about the petsc-dev mailing list