[gmx-developers] Minor bug in ewald.c:init_ewald_tab

Berk Hess hess at kth.se
Thu May 15 19:33:58 CEST 2014


Hi,

The argument to init_ewald_tab is a pointer to type ewald_tab_t, which 
is itself a pointer type. This latter pointer is being allocated. So 
it's fine.

Cheers,

Berk

On 05/15/2014 06:54 PM, Rui Fartaria wrote:
> Hi all,
>
> I could not find this as reported yet so, here it goes:
>
> init_ewald_tab allocates space (snew(*et, 1);) for the *et memory 
> reference that is passed to it.
>
> In all places I saw it being called the reference passed is not of a 
> pointer but always of a normal variable.
>
> 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.
>
> Kind regards,
>
> Rui Fartaria
>
>
>
>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-developers/attachments/20140515/a61f3a84/attachment.html>


More information about the gromacs.org_gmx-developers mailing list