On Wed, Apr 9, 2014 at 11:40 AM, Matthew Knepley <[email protected]> wrote:

> On Wed, Apr 9, 2014 at 10:38 AM, Xiangdong <[email protected]> wrote:
>
>> Hello everyone,
>>
>> When add this line to src/ex3.c
>>
>> SNESFunction(snes,x,fval,&ctx);
>>
>> The compiler complains that undefined reference to `SNESFunction'.
>>
>> However, all other snes function calls in ex3 work well. Why is it
>> special for SNESFunction?
>>
>> Any suggestions to fix this problem?
>>
>
> Do you want SNESComputeFunction() ?
>

Yes, SNESComputeFunction() works.

It seems that SNESFunction() can takes one more input argument ctx. Is this
function disabled in current release or just a bug in the header file?

Thanks.

Xiangdong



>
>    Matt
>
>
>> Thank you.
>>
>> Xiangdong
>>
>
>
>
> --
> 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