next up previous
Next: Default Values Up: parser Previous: Temporary Functions

Automatic C code generation

For complicated dynamical systems or analyses which will require a large amount of computation, then the user will wish to code the dynamical system in C. If the model is written for the parser, then the parser may be able to do most of the work of writing the C language procedures necessary to interface into dstool. The system can be built and tested using the parser and when the user has decided on a set of satisfactory initial conditions and ranges, the user may fill in the Name field with a single descriptive word and select the Write C code option. This will produce a new Text Pane window with C code for the system.

The code may be immediately edited, if for example the user wishes to add explicit Jacobian or inverse routines. Additionally, the C code may be made more efficient or functions may be implemented which are unavailable in the parser. Any information which was not supplied through the parser will be assigned a default value. These are listed in the table in the following section. When the user is finished making any modifications, the C code file may be saved and compiled into dstool in the standard way. The dstool User's Manual contains a complete description of this process.


next up previous
Next: Default Values Up: parser Previous: Temporary Functions
Jens Rademacher
1999-10-19