In order not to have to type
gmx gmxdump
gmx gmcheck
the second gmx was removed from the command name.
Added check in cmdlinemodulemanager.cpp for binaries starting with gmx.
Change-Id: I7db4faf8ae57688388b1e5263a7117c2bdb570c8
{
binaryName.erase(0, 2);
}
{
binaryName.erase(0, 2);
}
+ if (binaryName.compare(0, 3, "gmx") == 0)
+ {
+ binaryName.erase(0, 3);
+ }
return findModuleByName(binaryName);
}
return findModuleByName(binaryName);
}
* VERSION 3.2.0
* Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* VERSION 3.2.0
* Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
- * Copyright (c) 2001-2004, The GROMACS development team,
+ * Copyright (c) 2001-2013, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* This program is free software; you can redistribute it and/or
* check out http://www.gromacs.org for more information.
* This program is free software; you can redistribute it and/or
int gmx_gmxcheck(int argc, char *argv[])
{
const char *desc[] = {
int gmx_gmxcheck(int argc, char *argv[])
{
const char *desc[] = {
- "[TT]gmxcheck[tt] reads a trajectory ([TT].trj[tt], [TT].trr[tt] or ",
+ "[TT]gmx check[tt] reads a trajectory ([TT].trj[tt], [TT].trr[tt] or ",
"[TT].xtc[tt]), an energy file ([TT].ene[tt] or [TT].edr[tt])",
"or an index file ([TT].ndx[tt])",
"and prints out useful information about them.[PAR]",
"[TT].xtc[tt]), an energy file ([TT].ene[tt] or [TT].edr[tt])",
"or an index file ([TT].ndx[tt])",
"and prints out useful information about them.[PAR]",
"the program will check whether the bond lengths defined in the tpr",
"file are indeed correct in the trajectory. If not you may have",
"non-matching files due to e.g. deshuffling or due to problems with",
"the program will check whether the bond lengths defined in the tpr",
"file are indeed correct in the trajectory. If not you may have",
"non-matching files due to e.g. deshuffling or due to problems with",
- "virtual sites. With these flags, [TT]gmxcheck[tt] provides a quick check for such problems.[PAR]",
+ "virtual sites. With these flags, [TT]gmx check[tt] provides a quick check for such problems.[PAR]",
"The program can compare two run input ([TT].tpr[tt], [TT].tpb[tt] or",
"[TT].tpa[tt]) files",
"when both [TT]-s1[tt] and [TT]-s2[tt] are supplied.",
"The program can compare two run input ([TT].tpr[tt], [TT].tpb[tt] or",
"[TT].tpa[tt]) files",
"when both [TT]-s1[tt] and [TT]-s2[tt] are supplied.",
* VERSION 3.2.0
* Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* VERSION 3.2.0
* Written by David van der Spoel, Erik Lindahl, Berk Hess, and others.
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
- * Copyright (c) 2001-2004, The GROMACS development team,
+ * Copyright (c) 2001-2013, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* This program is free software; you can redistribute it and/or
* check out http://www.gromacs.org for more information.
* This program is free software; you can redistribute it and/or
real rav, minthird;
char buf[22];
real rav, minthird;
char buf[22];
- printf("gmxdump: %s\n", fn);
+ printf("gmx dump: %s\n", fn);
in = open_enx(fn, "r");
do_enxnms(in, &nre, &enm);
assert(enm);
in = open_enx(fn, "r");
do_enxnms(in, &nre, &enm);
assert(enm);
int gmx_gmxdump(int argc, char *argv[])
{
const char *desc[] = {
int gmx_gmxdump(int argc, char *argv[])
{
const char *desc[] = {
- "[TT]gmxdump[tt] reads a run input file ([TT].tpa[tt]/[TT].tpr[tt]/[TT].tpb[tt]),",
+ "[TT]gmx dump[tt] reads a run input file ([TT].tpa[tt]/[TT].tpr[tt]/[TT].tpb[tt]),",
"a trajectory ([TT].trj[tt]/[TT].trr[tt]/[TT].xtc[tt]), an energy",
"file ([TT].ene[tt]/[TT].edr[tt]), or a checkpoint file ([TT].cpt[tt])",
"and prints that to standard output in a readable format.",
"a trajectory ([TT].trj[tt]/[TT].trr[tt]/[TT].xtc[tt]), an energy",
"file ([TT].ene[tt]/[TT].edr[tt]), or a checkpoint file ([TT].cpt[tt])",
"and prints that to standard output in a readable format.",
void registerLegacyModules(gmx::CommandLineModuleManager *manager)
{
// Modules from this directory (were in src/kernel/).
void registerLegacyModules(gmx::CommandLineModuleManager *manager)
{
// Modules from this directory (were in src/kernel/).
- registerModule(manager, &gmx_gmxcheck, "gmxcheck",
+ registerModule(manager, &gmx_gmxcheck, "check",
"Check and compare files");
"Check and compare files");
- registerModule(manager, &gmx_gmxdump, "gmxdump",
+ registerModule(manager, &gmx_gmxdump, "dump",
"Make binary files human readable");
registerModule(manager, &gmx_grompp, "grompp",
"Make a run input file");
"Make binary files human readable");
registerModule(manager, &gmx_grompp, "grompp",
"Make a run input file");