1 /* yourcode.h
2 
3    Originally written by Frederic Bois
4 
5    Copyright (c) 1993-2017 Free Software Foundation, Inc.
6 
7    This file is part of GNU MCSim.
8 
9    GNU MCSim is free software; you can redistribute it and/or
10    modify it under the terms of the GNU General Public License
11    as published by the Free Software Foundation; either version 3
12    of the License, or (at your option) any later version.
13 
14    GNU MCSim is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18 
19    You should have received a copy of the GNU General Public License
20    along with GNU MCSim; if not, see <http://www.gnu.org/licenses/>
21 
22    Header file for the "yourcode.c" file, containing customizable routines.
23 */
24 
25 #ifndef YOURCODE_H_DEFINED
26 
27 /* ----------------------------------------------------------------------------
28    Inclusions
29 */
30 
31 #include "sim.h"
32 
33 
34 /* ----------------------------------------------------------------------------
35    Typedefs
36 */
37 
38 typedef struct tagMCPREDOUT {
39   long nbrdy;    /* number of kinetic ys */
40   double *pred;  /* pointer to the data */
41   int passflag;  /* typically a pass/fail flag */
42 } MCPREDOUT, *PMCPREDOUT;
43 
44 
45 /* ----------------------------------------------------------------------------
46    Prototypes  */
47 
48 void   DoStep_by_Step (/* your needed parameters here, e.g.:
49                           double t, long *neq, double *y */);
50 void   OutspecToLinearArray (PANALYSIS panal, PMCPREDOUT pMCPredOut);
51 void   TransformPred (PANALYSIS, PMCPREDOUT);
52 double Definite_Integral (double (*Function)(double), double dFrom, double dTo);
53 void   Interpolate_Poly (double rgdX[], double rgdY[], int n, double x,
54                          double *pdY, double *pdDY);
55 double Trapezes (double (*Function)(double x), double dFrom, double dTo,
56                  int nSteps);
57 
58 #define YOURCODE_H_DEFINED
59 #endif  /* YOURCODE_H_DEFINED */
60 
61 /* End */
62 
63