62 return parRunControl_;
68 return rootPath()/caseName();
110 return options_[opt];
116 return options_.found(opt);
133 Foam::argList::argRead<Foam::string>(
const label index)
const
141 Foam::argList::argRead<Foam::word>(
const label index)
const
149 Foam::argList::argRead<Foam::fileName>(
const label index)
const
157 Foam::argList::optionRead<Foam::string>(
const word& opt)
const
159 return options_[opt];
165 Foam::argList::optionRead<Foam::word>(
const word& opt)
const
167 return options_[opt];
173 Foam::argList::optionRead<Foam::fileName>(
const word& opt)
const
175 return options_[opt];
186 string::const_iterator iter = str.begin();
191 const char c = *iter;
202 maxLevel =
max(maxLevel, level);
212 string argstr(optionLookup(opt).str());
218 label level = bracketLevel(os.
str()) + 1;
220 while (bracketLevel(argstr) < level)
222 argstr.insert(0,
"(");
223 argstr.insert(argstr.size(),
")");
248 optionLookup(opt)() >> val;
260 if (optionFound(opt))
262 val = optionRead<T>(opt);
280 if (optionReadIfPresent<T>(opt, val))
299 if (optionFound(opt))
301 return optionRead<T>(opt);
320 return options_[opt];
Input from memory buffer stream.
Output to memory buffer stream.
string str() const
Return the string.
Helper class for initialising parallel jobs from the command arguments.
const string & commandLine() const
Return the command line string.
const fileName & caseName() const
Return case name (parallel run) or global case (serial run)
const string & arg(const label index) const
Return the argument corresponding to index.
const fileName & globalCaseName() const
Return case name.
const string & operator[](const label index) const
Return the argument corresponding to index.
T optionRead(const word &opt) const
Read a value from the named option.
label bracketLevel(const string &str) const
Count brackets, to support the optionReadList function.
label size() const
Return the number of arguments.
bool optionFound(const word &opt) const
Return true if the named option is found.
const ParRunControl & parRunControl() const
Return parRunControl.
const string & option(const word &opt) const
Return the argument string associated with the named option.
const word & executable() const
Name of executable without the path.
const stringList & args() const
Return arguments.
List< T > optionReadList(const word &opt) const
Read a List of values from the named option.
bool optionReadIfPresent(const word &opt, T &) const
Read a value from the named option if present.
const Foam::HashTable< string > & options() const
Return options.
fileName path() const
Return the path to the caseName.
const fileName & rootPath() const
Return root path.
T argRead(const label index) const
Read a value from the argument at index.
IStringStream optionLookup(const word &opt) const
Return an IStringStream from the named option.
T optionLookupOrDefault(const word &opt, const T &deflt) const
Read a value from the named option if present.
A class for handling file names.
A class for handling character strings derived from std::string.
A class for handling words, derived from string.
const dimensionedScalar c
Speed of light in a vacuum.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)