<div dir="ltr">Thanks.<div><br></div><div>Miguel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 22, 2014 at 10:16 AM, Abhyankar, Shrirang G. <span dir="ltr"><<a href="mailto:abhyshr@mcs.anl.gov" target="_blank">abhyshr@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Miguel,<br>
I've added DMClone_Network to shri/clone-dmnetwork and next branch. Not<br>
that DMClone() creates a shallow copy of DMNetwork. If you change the<br>
values of the components in the cloned DM then those will also be<br>
reflected in the original DM (since they share the address space).<br>
<br>
Shri<br>
<div class="HOEnZb"><div class="h5"><br>
-----Original Message-----<br>
From: Shri <<a href="mailto:abhyshr@mcs.anl.gov">abhyshr@mcs.anl.gov</a>><br>
Date: Wed, 22 Oct 2014 03:44:35 +0000<br>
To: "<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>" <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>><br>
Subject: Re: [petsc-users] Cloning a DMNetwork<br>
<br>
>There is no clone method implemented for DMNetwork yet. I'll work on it<br>
>tomorrow.<br>
><br>
>Thanks,<br>
>Shri<br>
><br>
>From: Miguel Angel Salazar de Troya <<a href="mailto:salazardetroya@gmail.com">salazardetroya@gmail.com</a>><br>
>Date: Tue, 21 Oct 2014 18:10:42 -0500<br>
>To: "<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>" <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>><br>
>Subject: [petsc-users] Cloning a DMNetwork<br>
><br>
><br>
>>Hi all<br>
>>I have a DMNetwork and I'm interested in cloning it to have another<br>
>>network with the same components. Can I do this with DMClone()? I have<br>
>>noticed that the components are not copied. Is there any function that<br>
>>takes care of this or it has to be hard coded?<br>
>><br>
>>Thanks<br>
>>Miguel<br>
>><br>
>>--<br>
>>Miguel Angel Salazar de Troya<br>
>>Graduate Research Assistant<br>
>>Department of Mechanical Science and Engineering<br>
>>University of Illinois at Urbana-Champaign<br>
>>(217) 550-2360<br>
>><a href="mailto:salaza11@illinois.edu">salaza11@illinois.edu</a><br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font face="verdana, sans-serif"><b>Miguel Angel Salazar de Troya</b></font><span><font color="#888888"><br><font face="arial,helvetica,sans-serif">Graduate Research Assistant<br>Department of Mechanical Science and Engineering<br></font>University of Illinois at Urbana-Champaign<br>(217) 550-2360<br>
<a href="mailto:salaza11@illinois.edu" target="_blank">salaza11@illinois.edu</a></font></span><div><br></div></div>
</div>