Re: [petsc-users] Null space/Near null space

2015-07-25 Thread Barry Smith
...@mcs.anl.gov [petsc-users-boun...@mcs.anl.gov] on behalf of Barry Smith [bsm...@mcs.anl.gov] Sent: Thursday, July 23, 2015 6:13 AM To: Lawrence Mitchell Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Null space/Near null space On Jul 23, 2015, at 3:42 AM, Lawrence Mitchell

Re: [petsc-users] Null space/Near null space

2015-07-24 Thread Young, Matthew, Adam
-- From: petsc-users-boun...@mcs.anl.gov [petsc-users-boun...@mcs.anl.gov] on behalf of Barry Smith [bsm...@mcs.anl.gov] Sent: Thursday, July 23, 2015 6:13 AM To: Lawrence Mitchell Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Null space/Near null space On Jul 23, 2015, at 3

Re: [petsc-users] Null space/Near null space

2015-07-23 Thread Barry Smith
On Jul 23, 2015, at 3:42 AM, Lawrence Mitchell lawrence.mitch...@imperial.ac.uk wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 22/07/15 23:57, Barry Smith wrote: If your matrix has a null space you should always be setting MatSetNullSpace. If you know the near null

Re: [petsc-users] Null space/Near null space

2015-07-23 Thread Lawrence Mitchell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 22/07/15 23:57, Barry Smith wrote: If your matrix has a null space you should always be setting MatSetNullSpace. If you know the near null space then you should also always set it (it cannot do any harm) because some preconditioners can

[petsc-users] Null space/Near null space

2015-07-22 Thread Young, Matthew, Adam
Should I be using MatSetNearNullSpace (as opposed to MatSetNullSpace) with -pc_type hypre -pc_hypre_type boomeramg since BoomerAMG is multigrid? --Matt -- Matthew Young Graduate Student Boston University Dept. of Astronomy

Re: [petsc-users] Null space/Near null space

2015-07-22 Thread Jed Brown
Young, Matthew, Adam m...@bu.edu writes: Should I be using MatSetNearNullSpace (as opposed to MatSetNullSpace) with -pc_type hypre -pc_hypre_type boomeramg since BoomerAMG is multigrid? As far as I know, Hypre doesn't directly use either of these. MatSetNullSpace is for an actual null space.

Re: [petsc-users] Null space/Near null space

2015-07-22 Thread Barry Smith
If your matrix has a null space you should always be setting MatSetNullSpace. If you know the near null space then you should also always set it (it cannot do any harm) because some preconditioners can take advantage of it. I do not think PETSc currently has code that transfers near