Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-08 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
cOptionsSetValue(NULL,"-redistribute_pc_hypre_type", "boomeramg"); Many thanks, Karthik. From: Barry Smith Date: Tuesday, 7 February 2023 at 19:52 To: Chockalingam, Karthikeyan (STFC,DL,HC) Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Eliminating rows and columns

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-07 Thread Barry Smith
wasting a huge amount of memory? > > Kind regards, > Karthik. > > > > > From: Barry Smith mailto:bsm...@petsc.dev>> > Date: Monday, 6 February 2023 at 22:42 > To: Chockalingam, Karthikeyan (STFC,DL,HC) > <mailto:karthikeyan.chockalin..

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-06 Thread Barry Smith
ely empty rows was a use case so much of the functionality does not work in that case. > > Best, > Karthik. > > From: Barry Smith > Date: Monday, 6 February 2023 at 20:18 > To: Chockalingam, Karthikeyan (STFC,DL,HC) > > Cc: petsc-users@mcs.anl.gov > Subject: Re: [pet

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-06 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
! Karthik. From: Matthew Knepley Date: Monday, 6 February 2023 at 21:52 To: Chockalingam, Karthikeyan (STFC,DL,HC) Cc: Barry Smith , petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Eliminating rows and columns which are zeros On Mon, Feb 6, 2023 at 4:45 PM Karthikeyan Chockalingam - STFC UKRI

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-06 Thread Matthew Knepley
, 2023, at 6:42 PM, Karthikeyan Chockalingam - STFC UKRI < > karthikeyan.chockalin...@stfc.ac.uk> wrote: > > > > I updated the main branch to the below commit but the same problem > persists. > > > > *[0]PETSC ERROR: Petsc Development GIT revision: > v3.18.4-529-g995ec06f92 G

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-06 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
? Best, Karthik. From: Barry Smith Date: Monday, 6 February 2023 at 20:18 To: Chockalingam, Karthikeyan (STFC,DL,HC) Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Eliminating rows and columns which are zeros Sorry, I had a mistake in my thinking, PCREDISTRIBUTE supports completely

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-06 Thread Barry Smith
sc Development GIT revision: v3.18.4-529-g995ec06f92 GIT > Date: 2023-02-03 18:41:48 + > > > From: Barry Smith mailto:bsm...@petsc.dev>> > Date: Friday, 3 February 2023 at 18:51 > To: Chockalingam, Karthikeyan (STFC,DL,HC) > <mailto:karthikeyan.chockalin...@stfc.ac.uk>>

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-04 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
problem.c to debug the issue. Kind regards, Karthik. From: Barry Smith Date: Saturday, 4 February 2023 at 00:22 To: Chockalingam, Karthikeyan (STFC,DL,HC) Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Eliminating rows and columns which are zeros If you can help me reproduce

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-03 Thread Barry Smith
eyan.chockalin...@stfc.ac.uk>> > Cc: petsc-users@mcs.anl.gov <mailto:petsc-users@mcs.anl.gov> > mailto:petsc-users@mcs.anl.gov>> > Subject: Re: [petsc-users] Eliminating rows and columns which are zeros > > >If you switch to use the main branch of pe

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-03 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Eliminating rows and columns which are zeros If you switch to use the main branch of petsc https://petsc.org/release/install/download/#advanced-obtain-petsc-development-version-with-git you will not have the problem below (previously we

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-03 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
@mcs.anl.gov Subject: Re: [petsc-users] Eliminating rows and columns which are zeros On Fri, Feb 3, 2023 at 1:05 PM Karthikeyan Chockalingam - STFC UKRI via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Thank you. The entire error output was an attachment in my previous email. I am pastin

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-03 Thread Barry Smith
Best, > Karthik. > > From: Barry Smith mailto:bsm...@petsc.dev>> > Date: Friday, 3 February 2023 at 17:41 > To: Chockalingam, Karthikeyan (STFC,DL,HC) > <mailto:karthikeyan.chockalin...@stfc.ac.uk>> > Cc: petsc-users@mcs.anl.gov <mailto:petsc-us

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-03 Thread Matthew Knepley
te_ksp_monitor_true_residual > > -redistribute_ksp_type cg > > -redistribute_ksp_view > > -redistribute_pc_type jacobi > > #End of PETSc Option Table entries > > There are no unused options. > > Program ended with exit code: 0 > > > > > > Bes

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-03 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
Date: Friday, 3 February 2023 at 17:41 To: Chockalingam, Karthikeyan (STFC,DL,HC) Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Eliminating rows and columns which are zeros We need all the error output for the errors you got below to understand why the errors are happening. On Feb 3

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-03 Thread Barry Smith
ror message as the linear system converges to > the right solution. > > Thank you for your help. > > Kind regards, > Karthik. > > > > From: Barry Smith mailto:bsm...@petsc.dev>> > Date: Tuesday, 10 January 2023 at 18:50 > To: Chockalingam, Kart

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-02-03 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
solution. Thank you for your help. Kind regards, Karthik. From: Barry Smith Date: Tuesday, 10 January 2023 at 18:50 To: Chockalingam, Karthikeyan (STFC,DL,HC) Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Eliminating rows and columns which are zeros Yes, after the solve the x

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-01-10 Thread Barry Smith
lto:petsc-users@mcs.anl.gov> > mailto:petsc-users@mcs.anl.gov>> > Subject: Re: [petsc-users] Eliminating rows and columns which are zeros > > > https://petsc.org/release/docs/manualpages/PC/PCREDISTRIBUTE/#pcredistribute > -pc_type redistribute > > > It

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-01-10 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
regards, Karthik. From: Barry Smith Date: Tuesday, 10 January 2023 at 16:04 To: Chockalingam, Karthikeyan (STFC,DL,HC) Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Eliminating rows and columns which are zeros https://petsc.org/release/docs/manualpages/PC/PCREDISTRIBUTE/#pcredistribute

Re: [petsc-users] Eliminating rows and columns which are zeros

2023-01-10 Thread Barry Smith
https://petsc.org/release/docs/manualpages/PC/PCREDISTRIBUTE/#pcredistribute -pc_type redistribute It does everything for you. Note that if the right hand side for any of the "zero" rows is nonzero then the system is inconsistent and the system does not have a solution. Barry > On Jan

[petsc-users] Eliminating rows and columns which are zeros

2023-01-10 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
Hello, I am assembling a MATIJ of size N, where a very large number of rows (and corresponding columns), are zeros. I would like to potentially eliminate them before the solve. For instance say N=7 0 0 0 0 0 0 0 0 1 -1 0 0 0 0 0 -1 2 0 0 0 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0