/[escript]/trunk/paso/src/Functions.h
ViewVC logotype

Diff of /trunk/paso/src/Functions.h

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

revision 1638 by gross, Mon Apr 7 23:38:50 2008 UTC revision 1639 by gross, Mon Jul 14 08:55:25 2008 UTC
# Line 17  Line 17 
17    
18  #include "Common.h"  #include "Common.h"
19  #include "Paso_MPI.h"  #include "Paso_MPI.h"
20    
21    enum Paso_FunctionType {
22      LINEAR_SYSTEM,
23      FCT
24    };
25    
26    typedef enum Paso_FunctionType Paso_FunctionType;
27    
28  typedef struct Paso_Function {  typedef struct Paso_Function {
29    int kind;    Paso_FunctionType kind;
30    dim_t local_n;    dim_t n;
31    Paso_MPIInfo *mpi_info;    Paso_MPIInfo *mpi_info;
32      double *b;
33      double *tmp;
34      void *more;
35  } Paso_Function;  } Paso_Function;
36    
37  err_t Paso_FunctionDerivative(double* J0w, const double* w, Paso_Function* F, const double *f0, const double *x0, double* setoff);  err_t Paso_FunctionDerivative(double* J0w, const double* w, Paso_Function* F, const double *f0, const double *x0, double* setoff);
38  err_t Paso_FunctionCall(Paso_Function * F,double* value, const double* arg);  err_t Paso_FunctionCall(Paso_Function * F,double* value, const double* arg);
39    
40    Paso_Function * Paso_Function_FCT_alloc(Paso_MPIInfo *mpi_info);
41    err_t Paso_Function_FCT_call(Paso_Function * F,double* value, const double* arg);
42    void Paso_Function_FCT_free(Paso_Function * F);
43    
44  #endif  #endif

Legend:
Removed from v.1638  
changed lines
  Added in v.1639

  ViewVC Help
Powered by ViewVC 1.1.26