[petsc-users] Cloning a DMNetwork
Abhyankar, Shrirang G.
abhyshr at mcs.anl.gov
Wed Oct 22 10:16:16 CDT 2014
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
>
More information about the petsc-users
mailing list