<div dir="ltr">On Thu, Feb 28, 2013 at 4:21 AM, Johannes Lotz <span dir="ltr"><<a href="mailto:lotz@stce.rwth-aachen.de" target="_blank">lotz@stce.rwth-aachen.de</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, -- I'm new here<br>
<br>
and I have a somehow seemingly simple task:<br>
<br>
We need to get an exact copy of a previously set up SNES including all function pointers, all options and especially the DM (also in deep copy -- except the ApplicationContext struct).<br>
<br>
is there a showstopper -- or maybe already functionality there?<br></blockquote><div><br></div><div style>I am not opposed to making a shallow SNES copy, and we already have a DMClone(), so how about</div><div style><br>
</div><div style> SNESClone(snes, &snesB);</div><div style> DMClone(dm, &dmB);</div><div style> SNESSetDM(snesB, dmB);</div><div style><br></div><div style> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Regards,<br>
J.<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>