[petsc-users] example to use GetVecType

Dominik Szczerba dominik at itis.ethz.ch
Mon Dec 12 07:39:43 CST 2011


> 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**'

Using gcc 4.6.2

Dominik


More information about the petsc-users mailing list