[petsc-users] example to use GetVecType

Matthew Knepley knepley at gmail.com
Mon Dec 12 07:48:54 CST 2011


On Mon, Dec 12, 2011 at 7:39 AM, Dominik Szczerba <dominik at itis.ethz.ch>wrote:

> > VecType t;
> >
> > VecGetType(b, &t);
> > Printf("%s\n", t);
> >
> >   Matt
>
> Thanks, but I am getting the same error:
>
> error: invalid conversion from 'char**' to 'const char**'
>

Cast it to (const VecType *).


> Using gcc 4.6.2


A C compiler would not give you that error.

   Matt


>
> Dominik
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111212/02971b08/attachment.htm>


More information about the petsc-users mailing list