Passing Vec and Mat in C++

Christopher Harden charden at scs.fsu.edu
Wed Jul 19 14:14:55 CDT 2006


That was it. It seems to be working fine now.

Thank you very much.

Chris


On Jul 19, 2006, at 1:56 PM, Satish Balay wrote:

> 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