* the research papers on the package. Check out http://www.gromacs.org.
*/
/* This file is completely threadsafe - keep it that way! */
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "gmxpre.h"
#include <math.h>
#include <string.h>
-#include "sysstuff.h"
#include "gromacs/utility/smalloc.h"
-#include "typedefs.h"
-#include "gmx_fatal.h"
-#include "ebin.h"
-#include "main.h"
+#include "gromacs/legacyheaders/typedefs.h"
+#include "gromacs/utility/fatalerror.h"
+#include "gromacs/legacyheaders/ebin.h"
#include "gromacs/math/utilities.h"
-#include "vec.h"
-#include "physics.h"
+#include "gromacs/math/vec.h"
+#include "gromacs/math/units.h"
t_ebin *mk_ebin(void)
{
eb->e_sim[i].e = 0;
eb->e_sim[i].eav = 0;
eb->e_sim[i].esum = 0;
- eb->enm[i].name = strdup(enm[i-index]);
+ eb->enm[i].name = gmx_strdup(enm[i-index]);
if (unit != NULL)
{
- eb->enm[i].unit = strdup(unit);
+ eb->enm[i].unit = gmx_strdup(unit);
}
else
{
}
}
}
- eb->enm[i].unit = strdup(u);
+ eb->enm[i].unit = gmx_strdup(u);
}
}
{
e[i] = i;
sprintf(buf, "e%d", i);
- ce[i] = strdup(buf);
+ ce[i] = gmx_strdup(buf);
}
ie = get_ebin_space(eb, NE, ce);
add_ebin(eb, ie, NE, e, 0);
{
s[i] = i;
sprintf(buf, "s%d", i);
- cs[i] = strdup(buf);
+ cs[i] = gmx_strdup(buf);
}
is = get_ebin_space(eb, NS, cs);
add_ebin(eb, is, NS, s, 0);
{
t[i] = i;
sprintf(buf, "t%d", i);
- ct[i] = strdup(buf);
+ ct[i] = gmx_strdup(buf);
}
it = get_ebin_space(eb, NT, ct);
add_ebin(eb, it, NT, t, 0);