GfsEventScript

From Gerris

(Difference between revisions)
Jump to: navigation, search
Revision as of 03:08, 21 December 2006
Popinet (Talk | contribs)

← Previous diff
Revision as of 20:27, 19 February 2007
Popinet (Talk | contribs)

Next diff →
Line 7: Line 7:
} }
-where COMMANDS is the script to be executed with /bin/sh.+where <code>COMMANDS</code> is the script to be executed with /bin/sh.
Several shell variables are set: Several shell variables are set:

Revision as of 20:27, 19 February 2007

GfsEventScript can be used to execute a shell-script at given intervals.

The syntax in parameter files is as follows:

[ GfsEvent ] {
  COMMANDS
}

where COMMANDS is the script to be executed with /bin/sh.

Several shell variables are set:

GfsTime
the physical time
GfsIter
the iteration number
GfsPid
the processor number
GFS_STOP
if the exit status of the shell script is GFS_STOP the simulation is terminated
Personal tools
communication