* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
* Copyright (c) 2013,2014,2015,2017,2018 by the GROMACS development team.
- * Copyright (c) 2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2019,2020,2021, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
"dihedraltypes", "nonbond_params", "implicit_genborn_params", "implicit_surface_params",
"cmaptypes",
/* All the directives above can not appear after moleculetype */
- "moleculetype", "atoms", "virtual_sites2", "virtual_sites3", "virtual_sites4",
- "virtual_sitesn", "bonds", "exclusions", "pairs", "pairs_nb", "angles", "dihedrals",
- "constraints", "settles", "polarization", "water_polarization", "thole_polarization",
- "system", "molecules", "position_restraints", "angle_restraints", "angle_restraints_z",
- "distance_restraints", "orientation_restraints", "dihedral_restraints", "cmap",
- "intermolecular_interactions", "maxdirs", "invalid", "none" }
+ "moleculetype", "atoms", "virtual_sites1", "virtual_sites2", "virtual_sites3",
+ "virtual_sites4", "virtual_sitesn", "bonds", "exclusions", "pairs", "pairs_nb", "angles",
+ "dihedrals", "constraints", "settles", "polarization", "water_polarization",
+ "thole_polarization", "system", "molecules", "position_restraints", "angle_restraints",
+ "angle_restraints_z", "distance_restraints", "orientation_restraints", "dihedral_restraints",
+ "cmap", "intermolecular_interactions", "maxdirs", "invalid", "none" }
};
int ifunc_index(Directive d, int type)
{
return F_BHAM;
}
+ case Directive::d_vsites1:
+ if (type == 1)
+ {
+ return F_VSITE1;
+ }
+ else
+ {
+ gmx_fatal(FARGS, "Invalid vsites1 type %d", type);
+ }
case Directive::d_vsites2:
switch (type)
{
set_nec(&(necessary[Directive::d_cmaptypes]), Directive::d_atomtypes, Directive::d_none);
set_nec(&(necessary[Directive::d_moleculetype]), Directive::d_atomtypes, Directive::d_none);
set_nec(&(necessary[Directive::d_atoms]), Directive::d_moleculetype, Directive::d_none);
+ set_nec(&(necessary[Directive::d_vsites1]), Directive::d_atoms, Directive::d_none);
set_nec(&(necessary[Directive::d_vsites2]), Directive::d_atoms, Directive::d_none);
set_nec(&(necessary[Directive::d_vsites3]), Directive::d_atoms, Directive::d_none);
set_nec(&(necessary[Directive::d_vsites4]), Directive::d_atoms, Directive::d_none);
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015,2019, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2019,2021, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
d_cmaptypes,
d_moleculetype,
d_atoms,
+ d_vsites1,
d_vsites2,
d_vsites3,
d_vsites4,
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
* Copyright (c) 2013,2014,2015,2016,2017 by the GROMACS development team.
- * Copyright (c) 2018,2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2018,2019,2020,2021, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
pline, FALSE, FALSE, 1.0, bZero, &bWarn_copy_A_B, wi);
break;
+ case Directive::d_vsites1:
case Directive::d_vsites2:
case Directive::d_vsites3:
case Directive::d_vsites4:
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team.
* Copyright (c) 2013,2014,2015,2016,2018 by the GROMACS development team.
- * Copyright (c) 2019,2020, by the GROMACS development team, led by
+ * Copyright (c) 2019,2020,2021, by the GROMACS development team, led by
* Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
* and including many others, as listed in the AUTHORS file in the
* top-level source directory and at http://www.gromacs.org.
case F_SETTLE:
writer->writeLineFormatted("doh=%15.8e, dhh=%15.8e", iparams.settle.doh, iparams.settle.dhh);
break;
+ case F_VSITE1: writer->ensureEmptyLine(); break;
case F_VSITE2: writer->writeLineFormatted("a=%15.8e", iparams.vsite.a); break;
case F_VSITE3:
case F_VSITE3FD: