/[ascend]/trunk/base/generic/packages/sensitivity.h
ViewVC logotype

Diff of /trunk/base/generic/packages/sensitivity.h

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

revision 1161 by johnpye, Sun Jan 14 10:40:58 2007 UTC revision 1162 by johnpye, Wed Jan 17 04:34:59 2007 UTC
# Line 81  Line 81 
81  #include <solver/system.h>  #include <solver/system.h>
82  #include <solver/slv_client.h>  #include <solver/slv_client.h>
83    
   
 /* ignores: interp, i, whichvar */  
 extern int do_solve_eval( struct Instance *i, struct gl_list_t *arglist, void *user_data);  
   
 /* ignores: interp, i, whichvar */  
 extern int do_finite_diff_eval( struct Instance *i, struct gl_list_t *arglist, void *user_data);  
   
 extern char sensitivity_help[];  
   
 /* ignores: interp, i,  */  
 extern int do_sensitivity_eval_all( struct Instance *i, struct gl_list_t *arglist, void *user_data);  
   
 /* ignores: interp, i,  */  
 extern int do_sensitivity_eval( struct Instance *i, struct gl_list_t *arglist, void *user_data);  
   
 ASC_DLLSPEC int sensitivity_register(void);  
   
84  /*--------------------------------------------------  /*--------------------------------------------------
85      The following functions are provided only for use by LSODE. We want to      The following functions are provided only for use by LSODE. We want to
86      phase this out and replace with a new solver like IDA.      phase this out and replace with a new solver like IDA.
87  */  */
88  int Compute_J(slv_system_t sys);  ASC_DLLSPEC int Compute_J(slv_system_t sys);
89  int NumberFreeVars(slv_system_t sys);  ASC_DLLSPEC int NumberFreeVars(slv_system_t sys);
90  int NumberIncludedRels(slv_system_t sys);  int NumberIncludedRels(slv_system_t sys);
91  int LUFactorJacobian(slv_system_t sys);  int LUFactorJacobian(slv_system_t sys);
92  int Compute_dy_dx_smart(slv_system_t sys, real64 *rhs, real64 **dy_dx,  ASC_DLLSPEC int Compute_dy_dx_smart(slv_system_t sys, real64 *rhs, real64 **dy_dx,
93          int *inputs, int ninputs, int *outputs, int noutputs          int *inputs, int ninputs, int *outputs, int noutputs
94  );  );
95    
96    /*--------------------------------------------------
97        The following are provided to the external module 'sensitivity'. We want
98        to move all of these out into the external shared object, but can't until
99        the LSODE dependency goes away.
100    */
101    
102    ASC_DLLSPEC int DoSolve(struct Instance *inst);
103    ASC_DLLSPEC int DoDataAnalysis(struct var_variable **inputs,
104                  struct var_variable **outputs,
105                  int ninputs, int noutputs,
106                  real64 **dy_dx);
107    ASC_DLLSPEC int finite_difference(struct gl_list_t *arglist);
108    ASC_DLLSPEC struct Instance *FetchElement(struct gl_list_t *arglist,
109                         unsigned long whichbranch,
110                         unsigned long whichelement);
111    ASC_DLLSPEC int NumberRels(slv_system_t sys);
112    ASC_DLLSPEC int LUFactorJacobian1(slv_system_t sys,int rank);
113    ASC_DLLSPEC struct Instance *FetchElement(struct gl_list_t *arglist,
114                         unsigned long whichbranch,
115                         unsigned long whichelement);
116    
117    /* I *think* that we can probably replace these with 'densemtx.h' functions. */
118    
119    ASC_DLLSPEC real64 **make_matrix(int nrows, int ncols);
120    ASC_DLLSPEC void free_matrix(real64 **matrix, int nrows);
121    
122  #endif  /* ASC_SENSITIVITY_H */  #endif  /* ASC_SENSITIVITY_H */
123    

Legend:
Removed from v.1161  
changed lines
  Added in v.1162

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