repo.or.cz
/
gromacs
/
adressmacs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' of git://git.gromacs.org/gromacs
[gromacs/adressmacs.git]
/
src
/
gmxlib
/
physics_test.c
blob
323c54e553bffcdd4d1b5f928c0f3cc8efb98641
1
#include <stdio.h>
2
#include
"physics.h"
3
4
int
main
(
int
argc
,
char
*
argv
[])
5
{
6
int
i
;
7
double
x
,
y
,
z
;
8
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
);
15
}
16
}