Sum events

Name

Sum events -- Computing time-integrated fields

Synopsis


#include <gfs.h>


#define     GFS_EVENT_SUM                   (obj)
#define     GFS_IS_EVENT_SUM                (obj)

            GfsEventSum;

GfsEventClass* gfs_event_sum_class          (void);

Description

GfsEventSum can be used to compute and store the sum over time of a variable.

The syntax in parameter files is as follows:

[ GfsEvent ] V SV

where V is an existing variable name and SV is a (possibly new) variable name where the sum will be stored.

Details

GFS_EVENT_SUM()

#define     GFS_EVENT_SUM(obj)

obj :


GFS_IS_EVENT_SUM()

#define     GFS_IS_EVENT_SUM(obj)

obj :


GfsEventSum

typedef struct {
  GfsEvent parent;

  GfsFunction * v;
  GfsVariable * sv;
  FttCellTraverseFunc sum;
  gdouble last, dt;
} GfsEventSum;


gfs_event_sum_class ()

GfsEventClass* gfs_event_sum_class          (void);

Returns :