Passing Vec and Mat in C++

Satish Balay balay at mcs.anl.gov
Wed Jul 19 12:56:06 CDT 2006


The error says - you are passing in '&F' instead of 'F' to
adjust_boundary()

Satish

On Wed, 19 Jul 2006, Christopher Harden wrote:

> 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