[petsc-users] Questions about the PetscDSSetResidual and Nedelec element.

neil liu liufield at gmail.com
Tue Apr 4 09:42:44 CDT 2023


Hello,

I am learning this case,
https://petsc.org/release/src/snes/tutorials/ex62.c.html
. And try to make myself familiar with the FEM (PetscFE) there.
Then I have several questions.
1)  PetscDSSetResidual
<https://petsc.org/release/manualpages/DT/PetscDSSetResidual/>,
For example, line 291,  PetscCall
<https://petsc.org/release/manualpages/Sys/PetscCall/>(PetscDSSetResidual
<https://petsc.org/release/manualpages/DT/PetscDSSetResidual/>(ds, 0,
f0_quadratic_u, f1_u)), here, f0_quadratic_u and f1_u is function pointers.
Where have the input parameter for these functions been calculated, e.g.,
u_x. If I want to check the values of these parameters before line 291, how
to print that ?

2) Does PetscFE support Nedelec element? Will it be painful to add these
modules myself ?

Thanks ,

Xiaodong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230404/9aa72497/attachment.html>


More information about the petsc-users mailing list