<div dir="ltr"><div><div><div>Hi all,<br><br></div>

<p class="gmail-MsoPlainText"><span lang="NL-BE">We are currently trying to bring
adolc to a code that has a custom Vector class that internally holds a C array
of doubles (actually, the Vector class is templated on the scalar type) and
whose copy constructor performs the copy using std::memcpy(). We have seen that
memcpy does not work with adoubles, since this will copy the location in the
tape and results in a shallow copy rather than a deep copy. Is there any clever
way to handle memcpy with a C array of adoubles to achieve a deep copy? As a
temporary fix, we looped over the array and therefore skipped using memcpy.
However, there are cases where this fix could be harder to implement. Also, we
think this may decrease the computational efficiency of the code.</span></p>

<span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="NL-BE"></span></div><span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="NL-BE">Thank you for your help,<br></span></div><span style="font-size:11pt;font-family:"Calibri",sans-serif" lang="NL-BE">Antoine Falisse<br></span></div>