[petsc-users] How to use external vectors in a KSPmonitor

Frederik Treue frtr at risoe.dtu.dk
Fri Jun 1 09:47:24 CDT 2012


Hi,

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?

/Frederik Treue


More information about the petsc-users mailing list