const t_inputrec *ir,
bool issueWarning)
{
- if (ir->opts.ngener > 1)
+ if (ir->opts.ngener - ir->nwall > 1)
{
/* The GPU code does not support more than one energy group.
* If the user requested GPUs explicitly, a fatal error is given later.
/* Initialize per-physical-node MPI process/thread ID and counters. */
gmx_init_intranode_counters(cr);
- if (opt2bSet("-multi", nfile, fnm))
+ if (cr->ms && cr->ms->nsim > 1 && !opt2bSet("-multidir", nfile, fnm))
{
GMX_LOG(mdlog.info).asParagraph().
appendText("The -multi flag is deprecated, and may be removed in a future version. Please "