Go to the documentation of this file.
71 if (executeCalls_.empty() && endCalls_.empty() && writeCalls_.empty())
74 <<
"no executeCalls, endCalls or writeCalls defined."
80 <<
"Executing user-supplied system calls is not enabled by "
81 <<
"default because of " <<
nl
82 <<
"security issues. If you trust the case you can enable this "
83 <<
"facility by " <<
nl
84 <<
"adding to the InfoSwitches setting in the system controlDict:"
86 <<
" allowSystemOperations 1" <<
nl <<
nl
87 <<
"The system controlDict is either" <<
nl <<
nl
88 <<
" ~/.OpenFOAM/$WM_PROJECT_VERSION/controlDict" <<
nl <<
nl
90 <<
" $WM_PROJECT_DIR/etc/controlDict" <<
nl <<
nl
98 forAll(executeCalls_, callI)
122 forAll(writeCalls_, callI)
A class for handling words, derived from string.
#define forAll(list, i)
Loop across all elements in list.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
bool read(const char *, int32_t &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
static int allowSystemOperations
Flag if system operations are allowed.
Registry of regIOobjects.
virtual ~systemCall()
Destructor.
systemCall(const systemCall &)
Disallow default bitwise copy construct.
virtual void read(const dictionary &)
Read the system calls.
A list of keyword definitions, which are a keyword followed by any number of values (e....
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual void write()
Write, execute the "writeCalls".
virtual void timeSet()
Called when time was set at the end of the Time::operator++.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void end()
Execute the "endCalls" at the final time-loop.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.
int system(const std::string &command)
Execute the specified command.
virtual void execute()
Execute the "executeCalls" at each time-step.
word name(const complex &)
Return a string representation of a complex.