1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
/*
* user.c
*
* See the README file in this directory for information
* on how to modify this file.
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <modellib.h>
/* ----------------------------------------------------------------
* INCLUDE USER DYNAMICAL SYSTEMS CATEGORIES HERE
*
* ----------------------------------------------------------------
*/
char *USER_DS_Category[] = { "User models" /* Category 0 */
};
/* ----------------------------------------------------------------
* INCLUDE USER DYNAMICAL SYSTEM NAMES HERE
*
* We have put in the Lorenz system as an example
* ----------------------------------------------------------------
*/
/* declare the model initialization procedure here */
extern int lorenz_init();
/* list the category, a short model name, and the initialization proc here */
struct DS_DataS USER_DS_Sel[]= {
{ 0, "Lorenz system", lorenz_init }
};
/* ----------------------------------------------------------------
*
* INCLUDE USER COMPUTATIONAL MODULES HERE
*
* ----------------------------------------------------------------
*/
/* extern void mycode_install(); */
typedef void (*PFV)();
PFV user_install_procs[] = {
/* mycode_install, */
(PFV) NULL
};
/* DO NOT EDIT THE FOLLOWING LINES */
int N_USER_DS_Category = sizeof(USER_DS_Category) / sizeof(char *);
int N_USER_DS = sizeof(USER_DS_Sel) / sizeof(struct DS_DataS);
int N_USER_INSTALL = sizeof(user_install_procs)/sizeof(PFV);
|