<div dir="ltr"><br><div class="gmail_extra">Sorry, my bad. Forget about this. Did not notice the type of et is already a pointer.<br><br></div><div class="gmail_extra">Sorry again, I’ll be more careful next time.<br><br></div>
<div class="gmail_extra">Kind regards,<br><br></div><div class="gmail_extra">Rui Fartaria<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 15, 2014 at 5:54 PM, Rui Fartaria <span dir="ltr">&lt;<a href="mailto:rui.fartaria@gmail.com" target="_blank">rui.fartaria@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I could not find this as reported yet so, here it goes:<br><br>
init_ewald_tab allocates space (snew(*et, 1);) for the *et memory reference that is passed to it.<br><br>
</div>In all places I saw it being called the reference passed is not of a pointer but always of a normal variable.<br></div><br>Anyway, I think the correct procedure here would be for the caller to allocate space and then call init_ewald_tab. This is because the function does not know what is being passed to it.<br>

<br></div>Kind regards,<br><br>Rui Fartaria<br><br><br><div><div><div><br><br></div></div></div></div>
</blockquote></div><br></div></div>