#include "main.h"
#include "force.h"
#include "macros.h"
-#include "random.h"
+#include "gromacs/random/random.h"
#include "names.h"
#include "gmx_fatal.h"
#include "txtdump.h"
#include "force.h"
#include "mdrun.h"
#include "md_support.h"
+ #include "sim_util.h"
#include "domdec.h"
#include "partdec.h"
#include "mdatoms.h"
gmx_wallcycle_t wcycle,
const char *name)
{
- char buf[STRLEN];
-
walltime_accounting_start(walltime_accounting);
-
- sprintf(buf, "Started %s", name);
- print_date_and_time(fplog, cr->nodeid, buf, NULL);
-
wallcycle_start(wcycle, ewcRUN);
+ print_start(fplog, cr, walltime_accounting, name);
}
static void em_time_end(gmx_walltime_accounting_t walltime_accounting,
gmx_wallcycle_t wcycle)
#include "constr.h"
#include "xvgr.h"
#include "copyrite.h"
-#include "gmx_random.h"
+#include "gromacs/random/random.h"
#include "domdec.h"
#include "partdec.h"
#include "genborn.h"
}
}
+ void print_start(FILE *fplog, t_commrec *cr,
+ gmx_walltime_accounting_t walltime_accounting,
+ const char *name)
+ {
+ char buf[STRLEN];
+
+ sprintf(buf, "Started %s", name);
+ print_date_and_time(fplog, cr->nodeid, buf, walltime_accounting);
+ }
+
static void sum_forces(int start, int end, rvec f[], rvec flr[])
{
int i;
#include "chargegroup.h"
#include "force.h"
#include "macros.h"
-#include "random.h"
#include "names.h"
#include "gmx_fatal.h"
#include "txtdump.h"
#include "typedefs.h"
#include "update.h"
-#include "random.h"
#include "constr.h"
#include "vec.h"
#include "tgroup.h"
#include "mdrun.h"
#include "domdec.h"
#include "partdec.h"
-#include "gmx_random.h"
+#include "gromacs/random/random.h"
#include "physics.h"
#include "xvgr.h"
#include "mdatoms.h"
/* Print to log file */
walltime_accounting_start(walltime_accounting);
- print_date_and_time(fplog, cr->nodeid,
- "Started Test Particle Insertion",
- walltime_accounting);
wallcycle_start(wcycle, ewcRUN);
+ print_start(fplog, cr, walltime_accounting, "Test Particle Insertion");
/* The last charge group is the group to be inserted */
cg_tp = top->cgs.nr - 1;