<div class="gmail_quote">On Fri, Jun 1, 2012 at 9:47 AM, Frederik Treue <span dir="ltr"><<a href="mailto:frtr@risoe.dtu.dk" target="_blank">frtr@risoe.dtu.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I need to access a vector from outside the ksp context in my own, user-defined KSPmonitor. I have tried using the "context" input variable in the KSPMonitor function to pass a pointer to the relevant structure, but I get segmentation faults: Can this "context" variable be used for this, and if no, how does one do?</blockquote>
</div><br><div>This is what the context is for. Send the complete output from the SEGV and any relevant snippets of code showing how you use it.</div>