home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / biology / gsrc208a.zip / GEP1.H < prev    next >
C/C++ Source or Header  |  1993-02-04  |  4KB  |  96 lines

  1. /*
  2.     GEPASI - a simulator of metabolic pathways and other dynamical systems
  3.     Copyright (C) 1989, 1992  Pedro Mendes
  4. */
  5.  
  6. /*************************************/
  7. /*                                   */
  8. /*          GWTOP - Topology         */
  9. /*        MS-WINDOWS front end       */
  10. /*                                   */
  11. /*       Initialization and some     */
  12. /*           data structures         */
  13. /*                                   */
  14. /*           QuickC/WIN 1.0          */
  15. /*                                   */
  16. /*   (include here compilers that    */
  17. /*   compiled GWSIM successfully)    */
  18. /*                                   */
  19. /*************************************/
  20.  
  21.  
  22. struct kint {
  23.                   unsigned char nsub;
  24.                 unsigned char npro;
  25.                 unsigned char nmodf;
  26.                 unsigned char revers;
  27.                 int idx;
  28.                 LPSTR descr;
  29.                };
  30.  
  31. struct nodet{
  32.              char item;
  33.              unsigned char val;
  34.              unsigned char left;
  35.              unsigned char right;
  36.             } ;
  37.  
  38. struct treet{
  39.              struct nodet node[256];
  40.              char id[64][10];
  41.              float constant[32];
  42.              int nnode,
  43.                  nnum,
  44.                  nid,
  45.                  nsub,
  46.                  npro,
  47.                  nmodf,
  48.                  nconst,
  49.                  revers;
  50.              char descr[64];
  51.             } ;
  52.  
  53. extern GLOBALHANDLE hMetname;                                /* handle to memory block w/ metname    */
  54. extern GLOBALHANDLE hStepname;                                /* handle to memory block w/ metname    */
  55. extern GLOBALHANDLE hStoiu;                                    /* handle to memory block w/ metname    */
  56. extern GLOBALHANDLE hLoop;                                    /* handle to memory block w/ loop        */
  57. extern GLOBALHANDLE hKtype;                                    /* handle to memory block w/ ktype        */
  58. extern GLOBALHANDLE hRstr;                                    /* handle to memory block w/ rstr        */
  59. extern GLOBALHANDLE hPool;                                    /* handle to memory block w/ strings    */
  60. extern GLOBALHANDLE hTree;                                    /* handle to memory block w/ tree        */
  61.  
  62. extern char (huge *metname)[NAME_L];                        /* pointer to work with metname array    */
  63. extern char (huge *stepname)[NAME_L];                        /* metabolite names                        */
  64. extern char (huge *stepname)[NAME_L];                        /* metabolite names                        */
  65. extern int  huge *stoiu;                                    /* pointer to work with metname array    */
  66. extern unsigned char (huge *loop)[MAX_STEP][MAX_MET];        /* def. of modification loops            */
  67. extern int  (huge *rstr)[MAX_STEP][MAX_MOL];                /* reaction structure                    */
  68. extern char    topname[256];                                    /* title for the topology                */
  69. extern int        kinetu[MAX_STEP];                            /* type of kinetics (user numb.)        */
  70. extern int        kfl[MAX_STEP];                                /* flags for input of user-def.kinetics */
  71. extern unsigned char nmod[MAX_STEP];                        /* number of assigned modfs of a react.    */
  72. extern int        intmet[MAX_MET];                            /* 1 if internal metabolite                */
  73. extern unsigned char revers[MAX_STEP];                        /* 1 if reaction is reversible            */
  74. extern double    xu[MAX_MET];                                /* concentrations at time t user        */
  75. extern struct    kint huge *ktype;                            /* ptr array of kinetic types & proprt    */
  76. extern double    endtime;                                    /* time value for last iteration        */
  77. extern double    hrcz;                                        /* highest rate considered zero            */
  78. extern double    dft_endtime;                                /* time value for last iteration        */
  79. extern double    dft_hrcz;                                    /* highest rate considered zero            */
  80. extern float    ver_no;                                        /* .top and .sim version number            */
  81. extern int        totmet;                                        /* number of total metabolites            */
  82. extern int        nmetab;                                        /* number of internal metabolites        */
  83. extern int        nsteps;                                        /* number of steps                        */
  84. extern int        nloops;                                        /* number of modifier loops             */
  85. extern int        nrateq;                                        /* number of kinetic types in the datab */
  86. extern int        nudf;                                        /* number of user-defined kin. types    */
  87. extern int        newtree;                                    /* 1 if user added kinetic new types    */
  88. extern int        debugval;                                    /* debug mode                            */
  89. extern int        dft_debugval;                                /* debug mode                            */
  90. extern int        options;                                    /* various options                        */
  91. extern unsigned int pfo;                                    /* number of points for output            */
  92. extern unsigned int dft_pfo;                                /* number of points for output            */
  93. extern struct    treet huge *tree;                            /* function tree for rate equations        */
  94. extern struct    treet tr;                                    /* tree for the input                    */
  95.  
  96.