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é
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
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
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
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