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>

Reply via email to