Re: [petsc-users] Cloning a DMNetwork

2014-10-22 Thread Abhyankar, Shrirang G.
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 abhy...@mcs.anl.gov
Date: Wed, 22 Oct 2014 03:44:35 +
To: petsc-users@mcs.anl.gov petsc-users@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 salazardetr...@gmail.com
Date:  Tue, 21 Oct 2014 18:10:42 -0500
To:  petsc-users@mcs.anl.gov petsc-users@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
salaz...@illinois.edu




Re: [petsc-users] Cloning a DMNetwork

2014-10-22 Thread Miguel Angel Salazar de Troya
Thanks.

Miguel

On Wed, Oct 22, 2014 at 10:16 AM, Abhyankar, Shrirang G. 
abhy...@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 abhy...@mcs.anl.gov
 Date: Wed, 22 Oct 2014 03:44:35 +
 To: petsc-users@mcs.anl.gov petsc-users@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 salazardetr...@gmail.com
 Date:  Tue, 21 Oct 2014 18:10:42 -0500
 To:  petsc-users@mcs.anl.gov petsc-users@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
 salaz...@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
salaz...@illinois.edu


[petsc-users] Cloning a DMNetwork

2014-10-21 Thread Miguel Angel Salazar de Troya
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
salaz...@illinois.edu


Re: [petsc-users] Cloning a DMNetwork

2014-10-21 Thread Abhyankar, Shrirang G.
There is no clone method implemented for DMNetwork yet. I'll work on it
tomorrow.

Thanks,
Shri

From:  Miguel Angel Salazar de Troya salazardetr...@gmail.com
Date:  Tue, 21 Oct 2014 18:10:42 -0500
To:  petsc-users@mcs.anl.gov petsc-users@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
salaz...@illinois.edu