* To help us fund GROMACS development, we humbly ask that you cite
* the research papers on the package. Check out http://www.gromacs.org.
*/
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
+#include "gmxpre.h"
#include <math.h>
#include <stdio.h>
#include <string.h>
+#include "gromacs/commandline/pargs.h"
#include "gromacs/fileio/confio.h"
+#include "gromacs/fileio/matio.h"
#include "gromacs/fileio/pdbio.h"
-#include "gromacs/utility/fatalerror.h"
-#include "gromacs/utility/futil.h"
-#include "gstat.h"
-#include "macros.h"
-#include "gromacs/math/utilities.h"
+#include "gromacs/fileio/tpxio.h"
+#include "gromacs/fileio/xvgr.h"
+#include "gromacs/gmxana/gmx_ana.h"
+#include "gromacs/gmxana/gstat.h"
+#include "gromacs/legacyheaders/macros.h"
+#include "gromacs/legacyheaders/txtdump.h"
+#include "gromacs/legacyheaders/typedefs.h"
+#include "gromacs/legacyheaders/viewit.h"
#include "gromacs/math/units.h"
+#include "gromacs/math/utilities.h"
+#include "gromacs/math/vec.h"
#include "gromacs/topology/residuetypes.h"
+#include "gromacs/utility/fatalerror.h"
+#include "gromacs/utility/futil.h"
#include "gromacs/utility/smalloc.h"
-#include "gromacs/commandline/pargs.h"
-#include "gromacs/fileio/tpxio.h"
-#include "txtdump.h"
-#include "typedefs.h"
-#include "gromacs/math/vec.h"
-#include "gromacs/fileio/xvgr.h"
-#include "viewit.h"
-#include "gromacs/fileio/matio.h"
-#include "gmx_ana.h"
static gmx_bool bAllowed(real phi, real psi)
{
snew(leg, NJC);
for (i = 0; (i < NKKKPHI); i++)
{
- leg[i] = strdup(kkkphi[i].name);
+ leg[i] = gmx_strdup(kkkphi[i].name);
}
for (i = 0; (i < NKKKPSI); i++)
{
- leg[i+NKKKPHI] = strdup(kkkpsi[i].name);
+ leg[i+NKKKPHI] = gmx_strdup(kkkpsi[i].name);
}
for (i = 0; (i < NKKKCHI); i++)
{
- leg[i+NKKKPHI+NKKKPSI] = strdup(kkkchi1[i].name);
+ leg[i+NKKKPHI+NKKKPSI] = gmx_strdup(kkkchi1[i].name);
}
xvgr_legend(fp, NJC, (const char**)leg, oenv);
fprintf(fp, "%5s ", "#Res.");
char *leg[edMax];
#define NLEG asize(leg)
- leg[0] = strdup("Phi");
- leg[1] = strdup("Psi");
- leg[2] = strdup("Omega");
- leg[3] = strdup("Chi1");
- leg[4] = strdup("Chi2");
- leg[5] = strdup("Chi3");
- leg[6] = strdup("Chi4");
- leg[7] = strdup("Chi5");
- leg[8] = strdup("Chi6");
+ leg[0] = gmx_strdup("Phi");
+ leg[1] = gmx_strdup("Psi");
+ leg[2] = gmx_strdup("Omega");
+ leg[3] = gmx_strdup("Chi1");
+ leg[4] = gmx_strdup("Chi2");
+ leg[5] = gmx_strdup("Chi3");
+ leg[6] = gmx_strdup("Chi4");
+ leg[7] = gmx_strdup("Chi5");
+ leg[8] = gmx_strdup("Chi6");
/* Print order parameters */
fp = xvgropen(fn, "Dihedral Rotamer Transitions", "Residue", "Transitions/ns",
for (i = 0; i < NLEG; i++)
{
- leg[i] = strdup(const_leg[i]);
+ leg[i] = gmx_strdup(const_leg[i]);
}
/* Print order parameters */
npargs = asize(pa);
ppa = add_acf_pargs(&npargs, pa);
- if (!parse_common_args(&argc, argv, PCA_CAN_VIEW | PCA_CAN_TIME | PCA_BE_NICE,
+ if (!parse_common_args(&argc, argv, PCA_CAN_VIEW | PCA_CAN_TIME,
NFILE, fnm, npargs, ppa, asize(desc), desc, asize(bugs), bugs,
&oenv))
{