[petsc-users] Segmentation fault when using KSPSetInitialGuessNonzero

baikadi pranay pranayreddy865 at gmail.com
Wed Aug 19 20:44:51 CDT 2020


Problem is solved. I was calling a KSP routine before creating the KSP
context.

Best Regards,
Pranay.
ᐧ

On Wed, Aug 19, 2020 at 6:00 PM baikadi pranay <pranayreddy865 at gmail.com>
wrote:

> Hi,
>
> I am trying to build a 2D poisson solver using BiCGStab in FORTRAN 90.
> After I form the A matrix and create the x and b vectors, I call the
> routine KSPSetInitialGuessNonzero, so that I can pass a specific
> initialization of the x-vector to the solver. However, when I do this I run
> into a Segmentation Violation at this line. I am not sure why I am running
> into this problem. I am attaching the screenshot of the error message, and
> would appreciate any help you can provide.
>
> Please let me know if you need any further information.
>
> Thank you.
>
> Best Regards,
> Pranay.
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20200819/4bbe0133/attachment.html>


More information about the petsc-users mailing list