ENH: Moved example of systemCall function object from cavity tutorial

This commit is contained in:
andy
2011-03-07 10:31:31 +00:00
parent 1fbf80f410
commit 67a819bcab
2 changed files with 80 additions and 31 deletions

View File

@ -45,36 +45,5 @@ timePrecision 6;
runTimeModifiable true;
functions
{
systemCall1
{
type systemCall;
functionObjectLibs ("libsystemCall.so");
enabled true;
outputControl outputTime;
// called every time step
executeCalls
(
"echo execute"
);
// called at the end of the run
endCalls
(
"echo \*\*\* writing .bashrc \*\*\*"
"cat ~/.bashrc"
"echo \*\*\* done \*\*\*"
);
// called every ouput time
writeCalls
(
"echo \*\*\* writing data \*\*\*"
);
}
}
// ************************************************************************* //