Added a file physics.c with routines that convert values from and to
authorDavid van der Spoel <spoel@xray.bmc.uu.se>
Mon, 16 Aug 2010 09:14:38 +0000 (11:14 +0200)
committerDavid van der Spoel <spoel@xray.bmc.uu.se>
Mon, 16 Aug 2010 09:14:38 +0000 (11:14 +0200)
commit8684c947198a1d0c2ecdf3d97a0ae14a3180a732
tree8203a4c3feaec78cf41d7dbb4c31e96bcea535a5
parent23fcdf1b7bec9c3f17777d08fae3cb3e9aab675f
Added a file physics.c with routines that convert values from and to
gromacs units. The physics.h header file describes which units are supported
(in a list of enums).
Example:
x = convert2gmx(y,eg2cAngstrom);
will convert y in Angstrom to gromacs units (nm). Back transform by
y = gmx2convert(x,eg2cAngstrom);
include/physics.h
src/gmxlib/Makefile.am
src/gmxlib/physics.c [new file with mode: 0644]
src/gmxlib/physics_test.c [new file with mode: 0644]