[petsc-users] How to use petsc in a dynamically loaded shared library?

Matthew Knepley knepley at gmail.com
Wed Jul 18 17:40:03 CDT 2012


On Wed, Jul 18, 2012 at 3:01 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> On Wed, Jul 18, 2012 at 2:12 PM, Florian <flo.44 at gmx.de> wrote:
>
>> I have used ddd and when I step into the VecDestroy function I get the
>> signal 11. I have three Vectors and it's only possible to destroy one of
>> them. Do I have consider something special before I destroy them? I read
>> values from the Vector which I'm able to destroy.
>>
>
> You are likely passing an invalid address to VecDestroy. Something is
> wrong with your debugger if it doesn't tell you what is invalid.
>

Are you sure you are passing the address?

  VecDestroy(&v);

Also, take a look at the examples. Modify an example until it does what you
want.

     Matt

-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120718/a6b68110/attachment.html>


More information about the petsc-users mailing list