Re: [petsc-users] Union of sequential vecs

2022-12-12 Thread Matthew Knepley
hread if needed. > > > > Best, > > Karthik. > > > > > > > > *From: *Matthew Knepley > *Date: *Saturday, 10 December 2022 at 02:20 > *To: *Chockalingam, Karthikeyan (STFC,DL,HC) < > karthikeyan.chockalin...@stfc.ac.uk> > *Cc: *Mark Adams , petsc-

Re: [petsc-users] Union of sequential vecs

2022-12-12 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
a different thread if needed. Best, Karthik. From: Matthew Knepley Date: Saturday, 10 December 2022 at 02:20 To: Chockalingam, Karthikeyan (STFC,DL,HC) Cc: Mark Adams , petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Union of sequential vecs On Fri, Dec 9, 2022 at 6:50 PM Karthikeyan

Re: [petsc-users] Union of sequential vecs

2022-12-09 Thread Matthew Knepley
ould not recommend doing things this way in the first place. PETSc can manage parallel meshes scalably, marking boundaries using DMLabel objects. Thanks, Matt > Best, > > Karthik. > > > > > > > > > > *From: *Mark Adams > *Date: *Friday, 9 December 2022 at 21:0

Re: [petsc-users] Union of sequential vecs

2022-12-09 Thread Mark Adams
m not sure I get this exactly but yes this is intended to get each process a global list of (boundary) vertices. Not super scalable, but if it gets you started then that's great. Good luck, Mark > > > Best, > > Karthik. > > > > > > > > > > *From: *Mark Ad

Re: [petsc-users] Union of sequential vecs

2022-12-09 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
hem together. Best, Karthik. From: Mark Adams Date: Friday, 9 December 2022 at 21:08 To: Chockalingam, Karthikeyan (STFC,DL,HC) Cc: Barry Smith , petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Union of sequential vecs If your space is pretty compact, eg, (0,12), you could create an

Re: [petsc-users] Union of sequential vecs

2022-12-09 Thread Blaise Bourdin
@mcs.anl.gov <petsc-users@mcs.anl.gov> Subject: Re: [petsc-users] Union of sequential vecs     How are you combining them to get Vec = {2,5,7,8,10,11,12}?     Do you want the values to remain on the same MPI rank as before, just in an MPI vector?     On

Re: [petsc-users] Union of sequential vecs

2022-12-09 Thread Barry Smith
c.dev>> > Date: Friday, 9 December 2022 at 20:04 > To: Chockalingam, Karthikeyan (STFC,DL,HC) > <mailto:karthikeyan.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] Union of sequential vecs

2022-12-09 Thread Mark Adams
thik. > > > > *From: *Barry Smith > *Date: *Friday, 9 December 2022 at 20:04 > *To: *Chockalingam, Karthikeyan (STFC,DL,HC) < > karthikeyan.chockalin...@stfc.ac.uk> > *Cc: *petsc-users@mcs.anl.gov > *Subject: *Re: [petsc-users] Union of sequential vecs &g

Re: [petsc-users] Union of sequential vecs

2022-12-09 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
at 20:04 To: Chockalingam, Karthikeyan (STFC,DL,HC) Cc: petsc-users@mcs.anl.gov Subject: Re: [petsc-users] Union of sequential vecs How are you combining them to get Vec = {2,5,7,8,10,11,12}? Do you want the values to remain on the same MPI rank as before, just in an MPI vector? On Dec 9

Re: [petsc-users] Union of sequential vecs

2022-12-09 Thread Barry Smith
How are you combining them to get Vec = {2,5,7,8,10,11,12}? Do you want the values to remain on the same MPI rank as before, just in an MPI vector? > On Dec 9, 2022, at 2:28 PM, Karthikeyan Chockalingam - STFC UKRI via > petsc-users wrote: > > Hi, > > I want to take the union of a

[petsc-users] Union of sequential vecs

2022-12-09 Thread Karthikeyan Chockalingam - STFC UKRI via petsc-users
Hi, I want to take the union of a set of sequential vectors, each living in a different processor. Say, Vec_Seq1 = {2,5,7} Vec_Seq2 = {5,8,10,11} Vec_Seq3 = {5,2,12}. Finally, get the union of all them Vec = {2,5,7,8,10,11,12}. I initially wanted to create a parallel vector and insert the