[petsc-users] EPSGetEigenpair Problem

Matthew Knepley knepley at gmail.com
Thu Mar 7 06:07:44 CST 2019


On Thu, Mar 7, 2019 at 6:45 AM Eda Oktay via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Hello,
>
> I have a code finding Laplacian of a matrix and then I need to find this
> Laplacian's second smallest eigenpair. I used EPSGetEigenpair code but I
> get the values like "0." or "4." (I could not get decimals) when I used
> PetscPrintf(PETSC_COMM_WORLD," The second smallest eigenvalue: %g\n",kr)
> line.
>
> What could be the problem?
>

Hi Eda,

I have an example that does just this, and I am getting the correct result.
I have not yet checked it in,
but i attach it here. Are you setting the right target?

  Thanks,

    Matt


> Best regards,
>
> Eda
>


-- 
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

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190307/5181e7eb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex6.c
Type: application/octet-stream
Size: 14305 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20190307/5181e7eb/attachment.obj>


More information about the petsc-users mailing list