#include <stdlib.h>
#include <string.h>
-#include "vec.h"
+
+#include "gromacs/math/vec.h"
#include "macros.h"
-#include "gromacs/utility/smalloc.h"
#include "types/commrec.h"
#include "force.h"
#include "names.h"
#include "mdatoms.h"
#include "nrnb.h"
#include "ns.h"
-#include "mtop_util.h"
+#include "gromacs/topology/mtop_util.h"
#include "chargegroup.h"
+#include "gromacs/pbcutil/pbc.h"
+#include "gromacs/topology/block.h"
+#include "gromacs/topology/topology.h"
+#include "gromacs/utility/smalloc.h"
+
static real box_margin;
static real max_dist(rvec *x, real *r, int start, int end)