Simulation output

Name

Simulation output -- Saving the whole simulation

Synopsis


#include <gfs.h>


#define     GFS_OUTPUT_SIMULATION_CLASS     (klass)
#define     GFS_OUTPUT_SIMULATION           (obj)
#define     GFS_IS_OUTPUT_SIMULATION        (obj)

struct      GfsOutputSimulation;

GfsOutputClass* gfs_output_simulation_class (void);

Description

GfsOutputSimulation will write a description of the current state of the simulation which contains both standard simulation parameters, layout of the cell hierarchy and associated variable values.

The syntax in parameter files is as follows:

[ GfsOutput ] { depth = 5 variables = U,V,C binary = 1 }

with

depthAn optional parameter setting the maximum depth which will be considered (the default is infinity).
variablesA comma-separated list of the names of the variables which will be written. The default is all the simulation permanent variables.
binaryAn optional parameter specifying if a binary format should be used. Binary files allow faster reading of simulation files. The default is a more portable ASCII format.

Details

GFS_OUTPUT_SIMULATION_CLASS()

#define     GFS_OUTPUT_SIMULATION_CLASS(klass)

klass :


GFS_OUTPUT_SIMULATION()

#define     GFS_OUTPUT_SIMULATION(obj)

obj :


GFS_IS_OUTPUT_SIMULATION()

#define     GFS_IS_OUTPUT_SIMULATION(obj)

obj :


struct GfsOutputSimulation

struct GfsOutputSimulation {

  GfsOutput parent;

  gint max_depth;
  GfsVariable * var;
  gboolean binary;
};


gfs_output_simulation_class ()

GfsOutputClass* gfs_output_simulation_class (void);

Returns :