Cannot access KSP's struct field
Santolo Felaco
ahuramazda10 at gmail.com
Wed Nov 26 14:21:17 CST 2008
Thanks.
2008/11/26 Lisandro Dalcin <dalcinl at gmail.com>
> On Wed, Nov 26, 2008 at 4:25 PM, Santolo Felaco <ahuramazda10 at gmail.com>
> wrote:
> > Hi, I cannot to KPS's struct field. For exemple if I try to access to
> field
> > its or vec_sol I have this error of compiling: dereferencing pointer to
> > incomplete type. Can you help me? Thanks
>
> Use KSPGetSolution() to get the solution vector, or KSPGetRhs() for
> the rhs. In short, see the KSP manual pages, there are a lot of calls
> for getting internal stuff.
>
> Anyway, If you need to access some struct internals, then you have to
> add into your source files
>
> #include "private/kspimpl.h"
>
> but NEVER do that unless you REALLY need it (e.g., because you are
> implementing a brand-new KSP subtype)
>
>
>
> --
> Lisandro Dalcín
> ---------------
> Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
> Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
> Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
> PTLC - Güemes 3450, (3000) Santa Fe, Argentina
> Tel/Fax: +54-(0)342-451.1594
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20081126/d22e4a0d/attachment.htm>
More information about the petsc-users
mailing list