[petsc-users] fieldsplit question

2025-04-02 Thread Sanjay Govindjee via petsc-users
We would like to solve an FEA problem (unstructured grid) where the nodes on the elements have different dofs. For example the corner nodes have only dof 0 and then mid-side nodes have dofs 0,1,2 (think 8 node serendipity element). This is a multi-physics problem so we are looking to use the fie

Re: [petsc-users] kokkos gpu/cpu copy

2025-04-02 Thread Junchao Zhang
Hi, Steven, Thanks for the test, which helped me easily find the petsc bug. I have a fix at https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/8272__;!!G_uCfscf7eWS!dEECoiAgY3gt4OtiEoIEoGuacFHbL1whaXexphGauRP-CI_sNm-iHlr3Aqh1kQRUkVGWcgNgtRJsaiMGB0Mt_63EjYXr$ . VecKok

[petsc-users] kokkos gpu/cpu copy

2025-04-02 Thread Steven Dargaville
Hi I have some code that does a solve with a PCMAT preconditioner. The mat used is a shell and inside the shell MatMult it calls VecPointwiseDivide with a vector "diag" that is the diagonal of a matrix assigned outside the shell. If I use mat/vec type of cuda, this occurs without any gpu/cpu copi