[petsc-users] Cloning a DMNetwork

Miguel Angel Salazar de Troya salazardetroya at gmail.com
Wed Oct 22 12:16:37 CDT 2014


Thanks.

Miguel

On Wed, Oct 22, 2014 at 10:16 AM, Abhyankar, Shrirang G. <
abhyshr at mcs.anl.gov> wrote:

> Miguel,
>   I've added DMClone_Network to shri/clone-dmnetwork and next branch. Not
> that DMClone() creates a shallow copy of DMNetwork. If you change the
> values of the components in the cloned DM then those will also be
> reflected in the original DM (since they share the address space).
>
> Shri
>
> -----Original Message-----
> From: Shri <abhyshr at mcs.anl.gov>
> Date: Wed, 22 Oct 2014 03:44:35 +0000
> To: "petsc-users at mcs.anl.gov" <petsc-users at mcs.anl.gov>
> Subject: Re: [petsc-users] Cloning a DMNetwork
>
> >There is no clone method implemented for DMNetwork yet. I'll work on it
> >tomorrow.
> >
> >Thanks,
> >Shri
> >
> >From:  Miguel Angel Salazar de Troya <salazardetroya at gmail.com>
> >Date:  Tue, 21 Oct 2014 18:10:42 -0500
> >To:  "petsc-users at mcs.anl.gov" <petsc-users at mcs.anl.gov>
> >Subject:  [petsc-users] Cloning a DMNetwork
> >
> >
> >>Hi all
> >>I have a DMNetwork and I'm interested in cloning it to have another
> >>network with the same components. Can I do this with DMClone()? I have
> >>noticed that the components are not copied. Is there any function that
> >>takes care of this or it has to be hard coded?
> >>
> >>Thanks
> >>Miguel
> >>
> >>--
> >>Miguel Angel Salazar de Troya
> >>Graduate Research Assistant
> >>Department of Mechanical Science and Engineering
> >>University of Illinois at Urbana-Champaign
> >>(217) 550-2360
> >>salaza11 at illinois.edu
> >
>
>


-- 
*Miguel Angel Salazar de Troya*
Graduate Research Assistant
Department of Mechanical Science and Engineering
University of Illinois at Urbana-Champaign
(217) 550-2360
salaza11 at illinois.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141022/4144de54/attachment.html>


More information about the petsc-users mailing list