Merge branch 'master' of git://git.gromacs.org/gromacs
[gromacs/adressmacs.git] / src / gmxlib / physics_test.c
blob323c54e553bffcdd4d1b5f928c0f3cc8efb98641
1 #include <stdio.h>
2 #include "physics.h"
4 int main(int argc,char *argv[])
6 int i;
7 double x,y,z;
9 x = 3.25;
10 for(i=0; (i<eg2cNR); i++) {
11 y = gmx2convert(x,i);
12 z = convert2gmx(y,i);
13 printf("Converted %g [type %d] to %g and back to %g. Diff %g\n",
14 x,i,y,z,x-z);