next up previous contents index
Next: Memory Methods on Time_Curve Up: Time_Curve Previous: The Time_Curve Structure

Curve_Parm

 

The time-dependent definition interval and the distribution of points are stored in a Curve_Parm instance:  

typedef struct {
  INSTANCE_STRUCT;               /* Subclass of Root */
  FUNCTION_RULER *min_rul;       /* Internal ... */
  FUNCTION_RULER *max_rul;
  FUNCTION_RULER *dstrbn_rul;
  t_fun *t_min, *t_max;          /* ... use only min, max and dstrbn */
  int num_of_points;             /* Number of points */
  SPLINE1D *dstrbn;              /* Spline for distribution of points */
  double min, max;               /* Definition interval */
} CURVE_PARM;

You should only use min, max and the dstrbn Spline. The rulers are used to edit these values, they are added to the option menu when a description file is read in. The two t_funs are only used to set up the ruler splines for min and max, to describe these values in the input file a time-dependent function (i.e. a function depending on t) can be used.

There are only some memory management functions on class Curve_Parm:

   GRAPE(cparm, "free")()
CURVE_PARM * cparm
Delete an instance of class Curve_Parm. All data is freed using "list-free", all cparm rulers are removed from the manager and deleted. See 5.4.4.1 for details on "delete"/"free".

   tex2html_wrap44740    tex2html_wrap44742
CURVE_PARM * cparm
"list-alloc" is only provided for consistency, all memory for Curve_Parm instances is (usually) done in "read-data" which reads a Curve_Parm input file.

"list-free" frees all data including the function rulers and the spline which have been allocated in "read-data".



SFB 256 Universität Bonn and IAM Universität Freiburg

Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.