Re: [petsc-users] Question about Set-up of Full MG and its Output

2016-12-06 Thread Jed Brown
frank writes: > Dear all, > > I am trying to use full MG to solve a 2D Poisson equation. > > I want to set full MG as the solver and SOR as the smoother. Is the > following setup the proper way to do it? > -ksp_typerichardson > -pc_type mg > -pc_mg_

[petsc-users] Question about Set-up of Full MG and its Output

2016-12-06 Thread frank
Dear all, I am trying to use full MG to solve a 2D Poisson equation. I want to set full MG as the solver and SOR as the smoother. Is the following setup the proper way to do it? -ksp_typerichardson -pc_type mg -pc_mg_type full -mg_leve

Re: [petsc-users] Way to remove zero entries from an assembled matrix

2016-12-06 Thread Barry Smith
> On Dec 6, 2016, at 11:25 AM, Leidy Catherine Ramirez Villalba > wrote: > > Hello PETSc team: > > I'm doing the parallelization of the assembling of a system, previously > assembled in a serial way (manual), but solved using PETSc in parallel. > Therefore I have the old assembled matrix to

[petsc-users] Way to remove zero entries from an assembled matrix

2016-12-06 Thread "Leidy Catherine Ramirez Villalba"
Hello PETSc team: I'm doing the parallelization of the assembling of a system, previously assembled in a serial way (manual), but solved using PETSc in parallel. Therefore I have the old assembled matrix to compare with the one assembled with PETSc. While doing the assembling of the matrix,

Re: [petsc-users] Hash Function for PETSc Sparse Matrices

2016-12-06 Thread K. N. Ramachandran
Ah ok. Thanks. :) On Tue, Dec 6, 2016 at 10:42 AM, Jed Brown wrote: > "K. N. Ramachandran" writes: > > > Hello Jed, Barry, > > > > Thanks for the inputs. Yes, I am trying to spot duplicate sparse Matrices > > basically and avoid storing if possible. MatGetNonzeroState() seems > useful > > here

Re: [petsc-users] Hash Function for PETSc Sparse Matrices

2016-12-06 Thread Jed Brown
"K. N. Ramachandran" writes: > Hello Jed, Barry, > > Thanks for the inputs. Yes, I am trying to spot duplicate sparse Matrices > basically and avoid storing if possible. MatGetNonzeroState() seems useful > here and I'll take a closer look. > > I couldn't find the PetscObjectGetState() though from

Re: [petsc-users] Hash Function for PETSc Sparse Matrices

2016-12-06 Thread Matthew Knepley
On Tue, Dec 6, 2016 at 9:31 AM, K. N. Ramachandran wrote: > Hello Jed, Barry, > > Thanks for the inputs. Yes, I am trying to spot duplicate sparse Matrices > basically and avoid storing if possible. MatGetNonzeroState() seems useful > here and I'll take a closer look. > > I couldn't find the Pets

Re: [petsc-users] Hash Function for PETSc Sparse Matrices

2016-12-06 Thread K. N. Ramachandran
Hello Jed, Barry, Thanks for the inputs. Yes, I am trying to spot duplicate sparse Matrices basically and avoid storing if possible. MatGetNonzeroState() seems useful here and I'll take a closer look. I couldn't find the PetscObjectGetState() though from the available API ( http://www.mcs.anl.gov