/[ascend]/trunk/base/generic/solver/analyze.h
ViewVC logotype

Diff of /trunk/base/generic/solver/analyze.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1186 by johnpye, Sat Jan 20 09:15:51 2007 UTC revision 1187 by johnpye, Sun Jan 21 06:03:58 2007 UTC
# Line 85  extern void analyze_free_reused_mem(void Line 85  extern void analyze_free_reused_mem(void
85  /*------------------------------------------------------------------------------  /*------------------------------------------------------------------------------
86    Stuff for retrieving differential and derivative variables from the system    Stuff for retrieving differential and derivative variables from the system
87  */  */
 typedef struct SolverDiffVarStruct{  
     struct var_variable *var;  
     long ode_type;  
 } SolverDiffVar;  
88    
89  /**  /**
90      Structure that holds a differential variable and the sequence of      Structure that holds a differential variable and the sequence of
# Line 99  typedef struct SolverDiffVarStruct{ Line 95  typedef struct SolverDiffVarStruct{
95  */  */
96  typedef struct SolverDiffVarSequenceStruct{  typedef struct SolverDiffVarSequenceStruct{
97      long ode_id;      long ode_id;
98      int n;      short n;
99      struct SolverDiffVarStruct *vars;      struct var_variable **vars; /* will be in order of ascending ode_type, starting from 1 */
100  } SolverDiffVarSequence;  } SolverDiffVarSequence;
101    
102  /**  /**
# Line 126  extern const SolverDiffVarCollection *an Line 122  extern const SolverDiffVarCollection *an
122  #endif  #endif
123    
124  /*------------------------------------------------------------------------------  /*------------------------------------------------------------------------------
125    Some routines that arguably aren't part of the 'analysis' module per se.      These routines are in use elsewhere in the solver directory, but we want
126    What is the argument for them being here?      to get rid of them, as they contain dependencies on the compiler's data
127        structures.
128  */  */
129    
130  extern int varinst_found_in_whenlist(slv_system_t sys, struct Instance *inst);  extern int varinst_found_in_whenlist(slv_system_t sys, struct Instance *inst);
131  /**<  /**<
132      Determine if the conditional variable inst is part of the      Determine if the conditional variable inst is part of the
133      variable list of some when in the when list of slv_system_t      variable list of some when in the when list of slv_system_t
134    
135        @DEPRECATED we want to get rid of this in order to clean up the
136        solver interface (divorce it from dependencies on compiler)
137  */  */
138    
139  extern int dis_var_in_a_when(struct Instance *var, struct w_when *when);  extern int dis_var_in_a_when(struct Instance *var, struct w_when *when);
140  /**<  /**<
141      Return 1 if the discrete var is a member of the when var list, else      Return 1 if the discrete var is a member of the when var list, else
142      return 0      return 0
143  */  
144        @DEPRECATED we want to get rid of this in order to clean up the
145        solver interface (divorce it from dependencies on compiler)*/
146    
147  extern int GetIntFromSymbol(CONST char *symval, struct gl_list_t *symbol_list);  extern int GetIntFromSymbol(CONST char *symval, struct gl_list_t *symbol_list);
148  /**<  /**<
149      Creates the gl_list of SymboValues struct to asign an integer      Creates the gl_list of SymboValues struct to asign an integer
150      value to a symbol value      value to a symbol value
151  */  
152        @DEPRECATED we want to get rid of this in order to clean up the
153        solver interface (divorce it from dependencies on compiler)*/
154    
155  extern void DestroySymbolValuesList(struct gl_list_t *symbol_list);  extern void DestroySymbolValuesList(struct gl_list_t *symbol_list);
156  /**<  /**<
157      Destroy the gl_list of SymbolValues struct created to asign an integer      Destroy the gl_list of SymbolValues struct created to asign an integer
158      value to symbol value      value to symbol value
159    
160        @DEPRECATED we want to get rid of this in order to clean up the
161        solver interface (divorce it from dependencies on compiler)
162  */  */
163    
164  /* @} */  /* @} */

Legend:
Removed from v.1186  
changed lines
  Added in v.1187

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22