[gmx-developers] Re: tpr-files

Erik Lindahl lindahl at sbc.su.se
Wed Aug 24 16:53:24 CEST 2005


Hi,

No - long long is an extension, and not mandated by ANSI C.

If it is only in calc_avecsixtwelve() we can cast the result do a  
double. David just mentioned something about an int/long issue for  
XDR files, but that might have been something else?

Cheers,

Erik


On Aug 23, 2005, at 1:58 PM, Berk Hess wrote:

> Rainer Böckmann wrote:
>
>
>> Dear Berk,
>>
>> I changed now the statement
>>
>>  long  npair,npair_ij;
>>
>> to
>>
>>  long long  npair,npair_ij;
>>
>> This seems to work, at least the C6 term is positive and the  
>> dispersion energy negative.
>>
>> Thanks a lot!
>> Rainer
>>
>>
> Ah, that's exactly what I (thought to have) fixed some time ago!
>
> But I see now in /usr/include/limits.h that on 64bit x86 machines long
> is larger than int, but on 32bit x86 machines long is equal to int.
> I guess we have to use long long, but is this always supported?
>
> Berk.
>
> _______________________________________________
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://www.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-developers-request at gromacs.org.
>
>




More information about the gromacs.org_gmx-developers mailing list