} // namespace
-const char InsertMoleculesInfo::name[] = "insert-molecules";
-const char InsertMoleculesInfo::shortDescription[] =
- "Insert molecules into existing vacancies";
+
+const char* InsertMoleculesInfo::name()
+{
+ static const char* name = "insert-molecules";
+ return name;
+}
+
+const char* InsertMoleculesInfo::shortDescription()
+{
+ static const char* shortDescription =
+ "Insert molecules into existing vacancies";
+ return shortDescription;
+}
+
ICommandLineOptionsModulePointer InsertMoleculesInfo::create()
{
return ICommandLineOptionsModulePointer(new InsertMolecules());
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2014,2015, by the GROMACS development team, led by
+ * Copyright (c) 2014,2015,2018, 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.
class InsertMoleculesInfo
{
public:
- static const char name[];
- static const char shortDescription[];
+ static const char* name();
+ static const char* shortDescription();
static ICommandLineOptionsModulePointer create();
};
*low_up_rm = get_eint(&inp, "ndiff", 0, wi);
*maxwarn = get_eint(&inp, "maxwarn", 0, wi);
*pieces = get_eint(&inp, "pieces", 1, wi);
+ const char *yesno_names[BOOL_NR+1] =
+ {
+ "no", "yes", nullptr
+ };
*bALLOW_ASYMMETRY = get_eeenum(&inp, "asymmetry", yesno_names, wi);
check_warning_error(wi, FARGS);
if (inputrec->ePBC == epbcSCREW)
{
gmx_fatal(FARGS,
- "pbc=%s is only implemented with domain decomposition",
- epbc_names[inputrec->ePBC]);
+ "pbc=screw is only implemented with domain decomposition");
}
}
/*
* This file is part of the GROMACS molecular simulation package.
*
- * Copyright (c) 2012,2013,2014,2015,2016,2017, by the GROMACS development team, led by
+ * Copyright (c) 2012,2013,2014,2015,2016,2017,2018, 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.
"Perform a simulation, do a normal mode analysis or an energy minimization");
gmx::ICommandLineOptionsModule::registerModuleFactory(
- manager, gmx::InsertMoleculesInfo::name,
- gmx::InsertMoleculesInfo::shortDescription,
+ manager, gmx::InsertMoleculesInfo::name(),
+ gmx::InsertMoleculesInfo::shortDescription(),
&gmx::InsertMoleculesInfo::create);
// Modules from gmx_ana.h.