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

2025-07-15 Thread Matthew Knepley
lain this behaviour that > would help me better understand how to properly use PETSc! > > Regards, > > Alexandre. > > De : Matthew Knepley > > Envoyé : mardi 15 juillet 2025 14:18 > > À : SCOTTO Alexandre > > Cc : Jose E. Roman ; petsc-users@mcs.anl.gov >

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

2025-07-15 Thread SCOTTO Alexandre via petsc-users
16:06 À : Jose E. Roman Cc : SCOTTO Alexandre ; petsc-users@mcs.anl.gov Objet : Re: [petsc-users] When to perform PETSc.Vec assembly with petsc4py We check that the x argument is assembled in MatMultTranspose(), but not y. It seems possible that y could have stashed values that get communicated

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

2025-07-15 Thread Matthew Knepley
hat doing so, we only access the local portion of the array > which should not require any assemble() am I right? > > > > Best regards, > > Alexandre. > > > > > > -Message d'origine- > > De : Jose E. Roman > > Envoyé : mardi 15 juillet 2025

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

2025-07-15 Thread Jose E. Roman via petsc-users
at would > help me better understand how to properly use PETSc! > Regards, > Alexandre. > De : Matthew Knepley > Envoyé : mardi 15 juillet 2025 14:18 > À : SCOTTO Alexandre > Cc : Jose E. Roman ; petsc-users@mcs.anl.gov > Objet : Re: [petsc-users] When to perform PETSc.V

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

2025-07-15 Thread Stefano Zampini
y use PETSc! > > > > Regards, > Alexandre. > > > > *De :* Matthew Knepley > *Envoyé :* mardi 15 juillet 2025 14:18 > *À :* SCOTTO Alexandre > *Cc :* Jose E. Roman ; petsc-users@mcs.anl.gov > *Objet :* Re: [petsc-users] When to perform PETSc.Vec assembly

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

2025-07-15 Thread SCOTTO Alexandre via petsc-users
Cc : petsc-users@mcs.anl.gov<mailto:petsc-users@mcs.anl.gov> Objet : Re: [petsc-users] When to perform PETSc.Vec assembly with petsc4py Assembly is needed after a call to x.setValues() or any of its variants. https://urldefense.us/v3/__https://petsc.org/main/petsc4py/reference/petsc4py.

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

2025-07-15 Thread Matthew Knepley
COTTO Alexandre > Cc : petsc-users@mcs.anl.gov > Objet : Re: [petsc-users] When to perform PETSc.Vec assembly with petsc4py > > Assembly is needed after a call to x.setValues() or any of its variants. > > https://urldefense.us/v3/__https://pet

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

2025-07-15 Thread Barry Smith via petsc-users
t; Best regards, > Alexandre. > > > -Message d'origine- > De : Jose E. Roman > Envoyé : mardi 15 juillet 2025 12:21 > À : SCOTTO Alexandre > Cc : petsc-users@mcs.anl.gov > Objet : Re: [petsc-users] When to perform PETSc.Vec assembly with petsc4py > >

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

2025-07-15 Thread SCOTTO Alexandre via petsc-users
ge d'origine- De : Jose E. Roman Envoyé : mardi 15 juillet 2025 12:21 À : SCOTTO Alexandre Cc : petsc-users@mcs.anl.gov Objet : Re: [petsc-users] When to perform PETSc.Vec assembly with petsc4py Assembly is needed after a call to x.setValues() or any of its variants. https://urldefe

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

2025-07-15 Thread Jose E. Roman via petsc-users
Assembly is needed after a call to x.setValues() or any of its variants. https://urldefense.us/v3/__https://petsc.org/main/petsc4py/reference/petsc4py.PETSc.Vec.html*petsc4py.PETSc.Vec.setValue__;Iw!!G_uCfscf7eWS!cvSh6J_ggyBtDLAEXjAIxkYQUbKkTTiA-QPyYNKZh3E_iJjftgP4afSVeUnPwdIE84eDB6to38b3rFjJg9yRB1

[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