3.2-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
defaultusagemessage.hh
Go to the documentation of this file.
1// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2// vi: set et ts=4 sw=4 sts=4:
3/*****************************************************************************
4 * See the file COPYING for full copying permissions. *
5 * *
6 * This program is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation, either version 3 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
18 *****************************************************************************/
24#ifndef DUMUX_DEFAULT_USAGE_MESSAGE_HH
25#define DUMUX_DEFAULT_USAGE_MESSAGE_HH
26
27#include <string>
28
29namespace Dumux {
30
37inline std::string defaultUsageMessage(const std::string& programName)
38{
39 return "Usage: " + programName + " [options] \n"
40 "Options usually are parameters given to the simulation, \n"
41 "and have to be specified with this syntax: \n"
42 "\t-GroupName.ParameterName VALUE, for example -TimeLoop.TEnd 100\n"
43 "\n"
44 "Parameters can also be defined in a parameter file that consists of\n"
45 "lines of the form \n"
46 "GroupName.ParameterName = VALUE # comment \n"
47 "have to be used. More conveniently, group names can be specified in square brackets, \n"
48 "such that each following parameter name belongs to that group, \n"
49 "[GroupName] \n"
50 "ParameterName = VALUE \n"
51 "See files named `params.input` in the `test` folder for examples \n"
52 "and the Dune documentation of ParameterTreeParser for the format specification. \n"
53 "\n"
54 "Parameters specified on the command line have priority over those in the parameter file.\n"
55 "If no parameter file name is given, './<programname>.input' is chosen as first\n"
56 "and './params.input' as second default.\n"
57 "\n"
58 "Important options include:\n"
59 "\t-h, --help Print this usage message and exit\n"
60 "\t-PrintParameters [true|false] Print the run-time modifiable parameters _after_ \n"
61 "\t the simulation [default: true]\n"
62 "\t-ParameterFile FILENAME File with parameter definitions\n"
63 "\t-TimeLoop.Restart RESTARTTIME Restart simulation from a restart file\n"
64 "\n\n";
65}
66
67} // end namespace Dumux
68
69#endif
std::string defaultUsageMessage(const std::string &programName)
Provides a general text block, that is part of error/ help messages.
Definition: defaultusagemessage.hh:37
Definition: adapt.hh:29