Incoming NBNXN patches change the behaviour if you just leave the VDW
modifier set to zero. The modifier is not supposed to be zero, because
grompp is supposed to change eintmodPOTSHIFT_VERLET to something
non-zero, but since we don't have a vanilla constructor for an
inputrec and use it outside grompp, we have a horrible flow-on effect.
So we set both the modifiers explicitly, to avoid these problems.
Change-Id: I2f8381e81104e673fb1a602b2d9cac1ccd81fff0
/* inputrec structure */
snew(ir, 1);
- ir->cutoff_scheme = ecutsGROUP;
- ir->coulombtype = eelCUT;
- ir->vdwtype = evdwCUT;
- ir->ndelta = 2;
- ir->ns_type = ensGRID;
+ ir->cutoff_scheme = ecutsGROUP;
+ ir->coulomb_modifier = eintmodNONE;
+ ir->vdw_modifier = eintmodNONE;
+ ir->coulombtype = eelCUT;
+ ir->vdwtype = evdwCUT;
+ ir->ndelta = 2;
+ ir->ns_type = ensGRID;
snew(ir->opts.egp_flags, 1);
top = gmx_mtop_generate_local_top(mtop, ir);