Re: amber-developers: ptraj precision

From: Thomas Cheatham <>
Date: Mon, 5 Feb 2007 21:27:48 -0700 (Mountain Standard Time)

> > So are you really doing a sscanf(buf, "%f", &value) where value is a float,
> > rather than a sscanf(buf, "%lf", &value) where value is a double?
> This looks like it is "it": at least, as I read the readAmberTrajectory()
> routine, it is using sscanf( "%f") to read into floats (xx,yy,zz), which are

Mea culpa, sorry for the bandwidth...

Both DAC and Bob point out the obvious (a) test and (b) fix... I do not
know what I was thinking back in the early 90's (really) and I will fix
this soon; atof is a macro to strtod().

(I guess I should state that I program in C, as opposed to being a C programmer :-)

Received on Wed Feb 07 2007 - 06:07:28 PST
Custom Search