RCS Header: /cvsroot/petscgraphics/tsview.c,v 1.31 2003/11/19 00:48:34 hazelsct Exp
This program views the output of a time series saved using
IlluMultiSave().
It basically just switches between timesteps; future versions may be more
interesting. The neat part of it is that it loads multiprocessor data and
displays it on a single CPU.
Included Files
Preprocessor definitions
#define HELP_STRING
#define DPRINTF( fmt, args... )
#define __FUNCT__ "myfilter"
#define __FUNCT__ "main"
char* basefilename
Local Variables
help
static char help[]
This is
main().
int main ( int argc, char* argv[] )
- int main
- It returns an int to the OS.
- int argc
- Argument count.
- char* argv[]
- Arguments.
After
PETSc
initialization, it gets the list of files matching the basename.
In the main loop, the various timesteps are displayed, with options:
-
A number jumps to that entry in the files table.
- <return>
loads the next file.
- b
goes back one file.
- q
quits the program.
The Illuminator-based 3-D viewer can only display one field at a
time. At the beginning, that is field 0, and is cycled using the
v
command.
This function returns non-zero for "qualifying" file names which start with
the stored files' basename and end with
.cpu0000.meta.
It is used as the
select() function for scandir() in main().
int myfilter ( const struct dirent* direntry )
- int myfilter
- Returns non-zero for qualifying filenames.
- const struct dirent* direntry
- Directory entry with filename to test.