[petsc-users] Question about Matrix Free

Jed Brown jedbrown at mcs.anl.gov
Sun Jun 24 19:20:40 CDT 2012


On Sun, Jun 24, 2012 at 3:41 PM, Matthew Knepley <knepley at gmail.com> wrote:

> On Sun, Jun 24, 2012 at 1:34 PM, behzad baghapour <
> behzad.baghapour at gmail.com> wrote:
>
>> Would you please explain more ? Did you mean the void type of the
>> matrix-vector kernel ?
>>
>
> The return type MUST be PetscErrorCode


Also, if you are going to use a C++ class method, you MUST declare it
static.


Finally, always include the whole error message. The stack trace is a very
important part, bet please always paste the whole thing into the email. It
is false economy to not include the whole thing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120624/35577ff0/attachment.html>


More information about the petsc-users mailing list