[petsc-users] EPSGetEigenpair Problem

Matthew Knepley knepley at gmail.com
Fri Mar 8 07:40:46 CST 2019


On Fri, Mar 8, 2019 at 8:38 AM Eda Oktay <eda.oktay at metu.edu.tr> wrote:

> Dear Matt,
>
> Thank you for your answer but I get an error even before compiling ex6.
> The error is:
>
> error: too many arguments to function ‘DMSetField’
>    ierr = DMSetField(dm, 0, NULL, (PetscObject) fe);CHKERRQ(ierr);
>

You need PETSc master and slepc-dev.

  Thanks,

     Matt


> Eda
>
>
> Matthew Knepley <knepley at gmail.com>, 7 Mar 2019 Per, 15:07 tarihinde şunu
> yazdı:
>
>> 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/>
>>
>

-- 
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/20190308/2dcdd2d6/attachment.html>


More information about the petsc-users mailing list