![]() | ![]() | ![]() | Gerris Flow Solver Reference Manual | ![]() |
---|
#include <gfs.h> #define GFS_EVENT_STOP (obj) #define GFS_IS_EVENT_STOP (obj) struct GfsEventStop; GfsEventClass* gfs_event_stop_class (void);
GfsEventStop will stop the simulation whenever the maximum difference between the current field and the previous field of the given variable is smaller than the specified threshold.
The syntax in parameter files is as follows:
[ GfsEvent ] NAME MIN
struct GfsEventStop { GfsEvent parent; GfsVariable * v, * oldv; gdouble last, max; };
<<< Script event | Sum events >>> |