Re: [petsc-users] When to perform PETSc.Vec assembly with petsc4py

2025-07-15 Thread SCOTTO Alexandre via petsc-users
users@mcs.anl.gov<mailto:petsc-users@mcs.anl.gov> > Objet : Re: [petsc-users] When to perform PETSc.Vec assembly with petsc4py > On Tue, Jul 15, 2025 at 8:13 AM SCOTTO Alexandre via petsc-users > mailto:petsc-users@mcs.anl.gov>> wrote: > Hello Jose, > > Thanks f

Re: [petsc-users] When to perform PETSc.Vec assembly with petsc4py

2025-07-15 Thread SCOTTO Alexandre via petsc-users
PETSc.Vec assembly with petsc4py On Tue, Jul 15, 2025 at 8:13 AM SCOTTO Alexandre via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Hello Jose, Thanks for your answer. Then it seems that I have under the hood usages of setValues() in my code since I do not explicitly make use of it but

Re: [petsc-users] When to perform PETSc.Vec assembly with petsc4py

2025-07-15 Thread SCOTTO Alexandre via petsc-users
call x.setValues() under the hood. Jose > El 15 jul 2025, a las 12:02, SCOTTO Alexandre via petsc-users > escribió: > > Dear PETSc community, > As a beginner in the MPI world and with the PETSc library, I come with a > possibly very naive question. > I know from the documen

[petsc-users] When to perform PETSc.Vec assembly with petsc4py

2025-07-15 Thread SCOTTO Alexandre via petsc-users
Dear PETSc community, As a beginner in the MPI world and with the PETSc library, I come with a possibly very naive question. I know from the documentation that assembling vectors must be done, but it is not clear to me when to perform this operation. Is there a simple way to know when a vector n

Re: [petsc-users] Insertion mode for Scatter

2025-06-15 Thread SCOTTO Alexandre via petsc-users
e.sco...@irt-saintexupery.com>> Cc : petsc-users@mcs.anl.gov<mailto:petsc-users@mcs.anl.gov> Objet : Re: [petsc-users] Insertion mode for Scatter On 13 Jun 2025, at 11:32 AM, SCOTTO Alexandre via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Dear PETSc community, I am currently

[petsc-users] Insertion mode for Scatter

2025-06-13 Thread SCOTTO Alexandre via petsc-users
Dear PETSc community, I am currently struggling with the ADD_VALUE mode of the Scatter object. Here is a simple piece of (Python) code to illustrate the issue: vec_1 = PETSc.Vec().createMPI(size=10) vec_1.shift(2.0) vec_2 = PETSc.Vec().createMPI(size=10) vec_2.shift(1.0) index_set = PETSc.IS()

Re: [petsc-users] Profiling objects creation

2025-06-10 Thread SCOTTO Alexandre via petsc-users
Tue, Jun 10, 2025 at 5:30 AM SCOTTO Alexandre via petsc-users mailto:petsc-users@mcs.anl.gov>> wrote: Dear PETSc community, I am using the PETSc API petsc4py and I am interested in profiling the number of PETSc objects created during the run of my script. I have used the -log_view option

[petsc-users] Profiling objects creation

2025-06-10 Thread SCOTTO Alexandre via petsc-users
Dear PETSc community, I am using the PETSc API petsc4py and I am interested in profiling the number of PETSc objects created during the run of my script. I have used the -log_view option to get information on the run in a dedicated file, and I got this (among other infirmation): [cid:image001.