File tsview-ng.c

RCS Header: /cvsroot/petscgraphics/tsview-ng.c,v 1.21 2004/08/11 12:44:08 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 DPRINTF( fmt, args... )

#define __FUNCT__ "render_dataviews"

#define __FUNCT__ "myfilter"

#define __FUNCT__ "main"


Global Variable xml

GladeXML* xml

Global Variable entrynum

int entrynum

Global Variable total_entries

int total_entries

Global Variable current_timestep

int current_timestep

Global Variable the_basename

char* the_basename

Global Variable basedirname

char* basedirname

Global Variable stepnames

char** stepnames

Global Variable current_time

double current_time

Global Variable width

int width

Global Variable height

int height

Global Variable nx

int nx

Global Variable ny

int ny

Global Variable dataview_count

int dataview_count

Global Variable dataviews

GtkWidget* dataviews[1]

Global Variable rgbbuf

guchar* rgbbuf[1]

Global Variable sizemag

double sizemag

Global Variable transp

PetscTruth transp

Global Variable vecmax

PetscScalar vecmax

Global Variable theda

DA theda

Global Variable global

Vec global

Global Variable minmax

PetscScalar minmax[6]

Global Variable fieldtypes

field_plot_type* fieldtypes

Global Variable dimensions

int dimensions

Global Variable num_fields

int num_fields

Global Variable current_field

int current_field

Global Variable field_index

int* field_index

Global Variable num_variables

int num_variables[1]

Global Variable variable_indices

int** variable_indices

Local Variables

help
static char help[]

basefilename
Little variable for myfilter() and refresh_stepnames().

static char* basefilename


Global Function change_variable()

void change_variable ( GtkWidget* widget, gpointer user_data )

Global Function display_timestep()

void display_timestep ( int usermetacount, char** usermetanames, char** usermetadata )

Global Function main()

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 and glade/GNOME initialization, it gets the list of files matching the basename.


Global Function myfilter()

This function returns non-zero for "qualifying" file names which start with the stored files' basename.time 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.

Global Function on_about_activate()

void on_about_activate ( GtkWidget* none, gpointer user_data )

Global Function on_mag_spin_value_changed()

void on_mag_spin_value_changed ( GtkWidget* mag_spin, gpointer user_data )

Global Function on_plot_area_expose_event()

void on_plot_area_expose_event ( GtkWidget* widget, GdkEventExpose* event, gpointer user_data )

Global Function on_refresh_activate()

void on_refresh_activate ( GtkWidget* none, gpointer user_data )

Global Function on_save_activate()

void on_save_activate ( GtkWidget* widget, gpointer user_data )

Global Function on_timestep_spin_value_changed()

void on_timestep_spin_value_changed ( GtkWidget* timestep_spin, gpointer user_data )

Global Function refresh_stepnames()

This loads the names of the files into a long list.

int refresh_stepnames ( void )


Global Function render_dataviews()

void render_dataviews ( void )