<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
I’m not sure what file you are editing but I’ll attempt an answer at this. What I’ve noticed is that there is a Gromacs wrapper for free() called “sfree()”. I can’t recall where I’ve found it defined but I’ve used it in my own code to free memory allocated
 for arrays. What you may find is that the array is either freed in the .c file that you are editing, or you may find that it is freed where it is initialized, if a pointer. In my own project, the arrays that I am taking advantage of are defined and freed in
 src/gromacs/gmxlib/typedefs.c.
<div class=""><br class="">
</div>
<div class="">If the file you are editing is a .cpp, the garbage collection may be automatic, but that depends on the structure type.</div>
<div class=""><br class="">
</div>
<div class="">I hope that helps!</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class=""><br class="">
</div>
<div class="">-ChrisM</div>
<div class=""><br class="">
</div>
<div apple-content-edited="true" class="">
<div class="">
<div class="">Mirabzadeh, Christopher&nbsp;</div>
<div class="">Research Assistant/Physics Instructor</div>
<div class="">Department of Physics</div>
<div class="">University of Idaho</div>
<div class="">Moscow, Id</div>
<div class="">(509)339-5647</div>
</div>
<div class=""><br class="">
</div>
</div>
<div><br class="">
<blockquote type="cite" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class=""><br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On Jun 9, 2015, at 3:26 PM, Sikandar Mashayak &lt;<a href="mailto:mashayak@votca.org" class="">mashayak@votca.org</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">
<div class="">
<div class="">Hi,<br class="">
<br class="">
</div>
I am trying to find out the location in the source code where the arrays, e..g, real *x, of the structure nbnxn_atomdata_t are freed? Are they freed explicitly or they are automatically deallocated when the program ends.<br class="">
<br class="">
</div>
Thanks,<br class="">
</div>
Sikandar<br class="">
</div>
-- <br class="">
Gromacs Developers mailing list<br class="">
<br class="">
* Please search the archive at <a href="http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List" class="">
http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List</a> before posting!<br class="">
<br class="">
* Can't post? Read <a href="http://www.gromacs.org/Support/Mailing_Lists" class="">
http://www.gromacs.org/Support/Mailing_Lists</a><br class="">
<br class="">
* For (un)subscribe requests visit<br class="">
<a href="https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers" class="">https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers</a> or send a mail to
<a href="mailto:gmx-developers-request@gromacs.org" class="">gmx-developers-request@gromacs.org</a>.</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</body>
</html>