Re: [petsc-users] Using real build of Hypre with Complex Build of PETSc

2022-09-28 Thread Pierre Jolivet
Hello Lucas, Supposedly (I haven’t tried this myself for a while), HYPRE supports real-only complex-stored matrices. So as long as you assemble a complex Mat with a zero imaginary part, e.g., MatRealPart(Pmat), you could feed that to PCHYPRE. If you really want to use a real-only build of HYPRE,

[petsc-users] Using real build of Hypre with Complex Build of PETSc

2022-09-28 Thread Lucas Banting
Hello, My application involves the complex-valued curl-curl equation. I use the complex build of PETSc, but would like to try HYPRE AMS as a real preconditioner, in the same way as this paper describes:

Re: [petsc-users] PETSc usage issues

2022-09-28 Thread Matthew Knepley
On Wed, Sep 28, 2022 at 2:27 PM wangzj997 wrote: > Dear PETSc development team: > > Currently, I am learning and trying to use PETSc's KSP to solve > large-scale sparse linear systems Ax= b, where A is symmetric positive > definite > How do you know it is positive definite? This is unusual when

Re: [petsc-users] PETSc usage issues

2022-09-28 Thread Barry Smith
-pc_type fieldsplit -pc_fieldsplit_detect_saddle_point -pc_fieldsplit_type schur Now there will be two additional decisions you need to make how to precondition the A00 block and the Schur complement. For the A00 block the option is -fieldsplit_0_pc_type somethingwhere

[petsc-users] PETSc usage issues

2022-09-28 Thread wangzj997
DearPETSc development team?? Currently, I am learning and trying to use PETSc's KSP to solve large-scale sparse linear systems Ax= b, where A is symmetric positive definite and nonsingular. However, the main diagonal of A contains many 0 items, which leads to the fact that many preconditioners