After implementing these choices, the relevant code in bball_init() looks like:
int n_varb=2; /* dim of phase space */ static char *variable_names[]={"phi","v"}; /* list of phase varb names */ static double variables[]={0.,0.}; /* default varb initial values */ static double variable_min[]={0.,-30.}; /* default varb min for display */ static double variable_max[]={TWOPI,30}; /* default varb max for display */We remark that TWOPI (
Although we have defined labels and initial values for the spatial variables, the independent variable (usually thought of as time) is also considered to be a member of every phase space. The code which provides this information is given by:
static char *indep_varb_name="time"; /* name of indep variable */ static double indep_varb_min=0.; /* default indep varb min for display */ static double indep_varb_max=10000.; /* default indep varb max for display */In fact, this is the way the code looked when we copied it from GENERIC.c, so we do not need to make any changes to the code. If we wanted to call the independent variable ``iteration'' instead of ``time,'' or if we wanted to change the default plotting range, then the code segment above would have to be appropriately modified.
Adrian Bunk 2001-08-22