![]() | ![]() | ![]() | Gerris Flow Solver Reference Manual | ![]() |
---|
#include <gfs.h> #define GFS_EVENT_SUM (obj) #define GFS_IS_EVENT_SUM (obj) struct GfsEventSum; GfsEventClass* gfs_event_sum_class (void); GfsEventClass* gfs_event_sum2_class (void);
GfsEventSum and GfsEventSum2 can be used to compute and store the sum and squared sum of a time-varying variable.
The syntax in parameter files is as follows:
[ GfsEvent ] V SV
struct GfsEventSum { GfsEvent parent; GfsVariable * v, * sv; FttCellTraverseFunc sum; gdouble last, dt; };
<<< Stop event | Initialisation >>> |