gmx_fatal(FARGS, "Trying to print nonexistent graph (file %s, line %d)",
file, line);
}
-#define GCHECK(g) if (g == NULL) g_error(__LINE__, __FILE__)
+#define GCHECK(g) if ((g) == NULL) g_error(__LINE__, __FILE__)
void p_graph(FILE *log, const char *title, t_graph *g)
{
************************************************************/
static void mk_1shift_tric(int npbcdim, const matrix box, const rvec hbox,
- const rvec xi, const rvec xj, int *mi, int *mj)
+ const rvec xi, const rvec xj, const int *mi, int *mj)
{
/* Calculate periodicity for triclinic box... */
int m, d;
}
static void mk_1shift(int npbcdim, const rvec hbox, const rvec xi, const rvec xj,
- int *mi, int *mj)
+ const int *mi, int *mj)
{
/* Calculate periodicity for rectangular box... */
int m;
}
static void mk_1shift_screw(const matrix box, const rvec hbox,
- const rvec xi, const rvec xj, int *mi, int *mj)
+ const rvec xi, const rvec xj, const int *mi, int *mj)
{
/* Calculate periodicity for rectangular box... */
int signi, m;
return ng;
}
-static int first_colour(int fC, egCol Col, t_graph *g, egCol egc[])
+static int first_colour(int fC, egCol Col, t_graph *g, const egCol egc[])
/* Return the first node with colour Col starting at fC.
* return -1 if none found.
*/