GfsEventScript
From Gerris
(Difference between revisions)
| Revision as of 10:20, 27 June 2008 Dfuster (Talk | contribs) ← Previous diff |
Revision as of 14:55, 27 June 2008 Dfuster (Talk | contribs) Next diff → |
||
| Line 17: | Line 17: | ||
| ===Examples=== | ===Examples=== | ||
| - | #[http://gfs.sourceforge.net/tests/tests/merging/merging.gfs.html Convergence for the three-way vortex merging problem] : Script | + | #[http://gfs.sourceforge.net/tests/tests/merging/merging.gfs.html Convergence for the three-way vortex merging problem] : Scripts |
| - | ## Hola | + | ## Example of eps figures generation on the fly with a given format. The simulation must be piped with gfsview |
Revision as of 14:55, 27 June 2008
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_STOPthe simulation is terminated (the return status indicates a failure)
Examples
- Convergence for the three-way vortex merging problem : Scripts
- Example of eps figures generation on the fly with a given format. The simulation must be piped with gfsview

