Re: [petsc-users] Vec sizing using DMDA

2020-04-27 Thread Antoine Côté
Perfect, thank you very much! Best regards, Antoine De : Matthew Knepley Envoyé : 24 avril 2020 11:10 À : Antoine Côté Cc : petsc-users@mcs.anl.gov Objet : Re: [petsc-users] Vec sizing using DMDA On Fri, Apr 24, 2020 at 10:47 AM Antoine Côté

Re: [petsc-users] Vec sizing using DMDA

2020-04-24 Thread Matthew Knepley
ector(dm, &rhs[i]);CHKERRQ(ierr); } ierr = PetscFree(rhs); Thanks, Matt Best regards > > -- > *De :* Matthew Knepley > *Envoyé :* 23 avril 2020 15:23 > *À :* Antoine Côté > *Cc :* petsc-users@mcs.anl.gov > *Objet :* Re: [petsc-users] V

Re: [petsc-users] Vec sizing using DMDA

2020-04-24 Thread Antoine Côté
gards De : Matthew Knepley Envoyé : 23 avril 2020 15:23 À : Antoine Côté Cc : petsc-users@mcs.anl.gov Objet : Re: [petsc-users] Vec sizing using DMDA On Thu, Apr 23, 2020 at 12:12 PM Antoine Côté mailto:antoine.co...@usherbrooke.ca>> wrote: Hi, I'm using a C++/PETSc program t

Re: [petsc-users] Vec sizing using DMDA

2020-04-23 Thread Matthew Knepley
On Thu, Apr 23, 2020 at 12:12 PM Antoine Côté wrote: > Hi, > > I'm using a C++/PETSc program to do Topological Optimization. A finite > element analysis is solved at every iteration of the optimization. > Displacements U are obtained using KSP solver. U is a Vec created using a > 3D DMDA with 3 D

[petsc-users] Vec sizing using DMDA

2020-04-23 Thread Antoine Côté
Hi, I'm using a C++/PETSc program to do Topological Optimization. A finite element analysis is solved at every iteration of the optimization. Displacements U are obtained using KSP solver. U is a Vec created using a 3D DMDA with 3 DOF (ux, uy, uz). Boundary conditions are stored in Vec N, and f