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

Eda


Matthew Knepley <[email protected]>, 7 Mar 2019 Per, 15:07 tarihinde şunu
yazdı:

> On Thu, Mar 7, 2019 at 6:45 AM Eda Oktay via petsc-users <
> [email protected]> 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/>
>

Reply via email to