Passing Vec and Mat in C++

Christopher Harden charden at scs.fsu.edu
Wed Jul 19 12:20:21 CDT 2006


Hello,

I'm having trouble passing the  Vec and Mat data types to a C function. 
Specifically,

In my header for example I'm using,

  void assembly( Vec F, Mat A );

and I'm getting an error saying that :

  cannot convert `_p_Vec**' to `_p_Vec*' for argument `8'
    to `void adjust_boundary(int, double*, int*, int, double, double*, 
double*,
    _p_Vec*, _p_Mat*)'

I've been going through the man pages and it seems like I'm doing this 
right.

Can anyone suggest a fix?

Thank you,

Chris Harden




More information about the petsc-users mailing list