On Mon, Oct 20, 2014 at 3:07 PM, Harshad Sahasrabudhe <[email protected]>
wrote:

> Hi,
>
> I get the following error when I call MatGetType even though I'm calling
> the function with a Mat object.
>
> [0]PETSC ERROR: Invalid argument!
> [0]PETSC ERROR: Wrong type of object: Parameter # 1!
>
> What could be going wrong?
>

You are not calling it with a valid Mat object. Did you call MatCreate?

   Matt


> Thanks,
> Harshad
>



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

Reply via email to