[petsc-users] example to use GetVecType
Dominik Szczerba
dominik at itis.ethz.ch
Mon Dec 12 08:04:58 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**'
>
> Cast it to (const VecType *).
This works, thanks!
>> Using gcc 4.6.2
> A C compiler would not give you that error.
Correct, I have meant g++ 4.6.2, sorry.
Dominik
More information about the petsc-users
mailing list