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

Florian Beck Flo.44 at gmx.de
Thu Jul 19 02:40:53 CDT 2012


Hi,

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

In the debugger is the adress of my vector at the beginning and the end the same, but if I look inside the vector the adress of ops, map and data are 0x0 after I call the function VecDuplicate(). Is there a function to synchronize the vectors before I destroy them? 




More information about the petsc-users mailing list