[petsc-dev] incomplete type error

Daniel Lowell redratio1 at gmail.com
Wed Sep 7 13:59:45 CDT 2011


More info! The command to compile that fails:

dlowell at cookie:/homes/dlowell/rnet/petsc-rnet/src/ksp/ksp/impls/bcgsgpu$
make lib
/disks/soft/mpich2-1.3.1-gcc/bin/mpicc -o bcgsgpu.o -c -O3 -g3
-I/homes/dlowell/rnet/petsc-rnet/include
-I/homes/dlowell/rnet/petsc-rnet/structgrid_cuda/include
-I/soft/cuda-4.0/cuda/include -I/soft/cuda-4.0/cuda/include/
-I/homes/dlowell/rnet/petsc-rnet/structgrid_cuda/lib
-I/disks/soft/mpich2-1.3.1-gcc/include
-D__INSDIR__=src/ksp/ksp/impls/bcgsgpu/  bcgsgpu.c






On Wed, Sep 7, 2011 at 1:46 PM, Satish Balay <balay at mcs.anl.gov> wrote:

> Do you include kspimpl.h in your code?
>
> #include <private/kspimpl.h>
>
> Satish
>
>
> On Wed, 7 Sep 2011, Daniel Lowell wrote:
>
> > In my KSP implementation I have this in my function KSPSolve_BCGSGPU(KSP
> > ksp)
> >
> >  (*ksp->pc->mat->ops->mult)(ksp->pc->mat,P,T);//where P and T are type
> Vec
> >
> > I get this error from icc:
> > bcgsgpu.c:222: error: dereferencing pointer to incomplete type.
> >
> > Not sure what I'm doing wrong here.
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20110907/0aa5d60e/attachment.html>


More information about the petsc-dev mailing list