/[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 4657 by jfenwick, Thu Feb 6 06:12:20 2014 UTC revision 4836 by caltinay, Mon Apr 7 05:51:55 2014 UTC
# Line 15  Line 15 
15  *****************************************************************************/  *****************************************************************************/
16    
17    
18  #ifndef INC_PASO_FUNCTIONS  #ifndef __PASO_FUNCTIONS_H__
19  #define INC_PASO_FUNCTIONS  #define __PASO_FUNCTIONS_H__
   
20    
21  #include "Common.h"  #include "Common.h"
22  #include "esysUtils/Esys_MPI.h"  #include "esysUtils/Esys_MPI.h"
23  #include "performance.h"  #include "performance.h"
24    
25  enum Paso_FunctionType {  enum Paso_FunctionType {
26    LINEAR_SYSTEM      LINEAR_SYSTEM
27  };  };
28    
29  typedef enum Paso_FunctionType Paso_FunctionType;  typedef enum Paso_FunctionType Paso_FunctionType;
30    
31  typedef struct Paso_Function {  struct Paso_Function
32    Paso_FunctionType kind;  {
33    dim_t n;      Paso_FunctionType kind;
34    Esys_MPIInfo *mpi_info;      dim_t n;
35    double *b;      Esys_MPIInfo *mpi_info;
36    double *tmp;      double* b;
37    void *more;      double* tmp;
38  } Paso_Function;  };
39    
40  err_t Paso_FunctionDerivative(double* J0w, const double* w, Paso_Function* F, const double *f0, const double *x0, double* setoff, Paso_Performance *pp);  err_t Paso_FunctionDerivative(double* J0w, const double* w, Paso_Function* F,
41  err_t Paso_FunctionCall(Paso_Function * F,double* value, const double* arg, Paso_Performance *pp);                                const double* f0, const double* x0,
42  void Paso_Function_free(Paso_Function * F);                                double* setoff, Paso_Performance* pp);
43    
44    err_t Paso_FunctionCall(Paso_Function* F, double* value, const double* arg,
45                            Paso_Performance* pp);
46    
47    void Paso_Function_free(Paso_Function* F);
48    
49    #endif // __PASO_FUNCTIONS_H__
50    
 #endif  

Legend:
Removed from v.4657  
changed lines
  Added in v.4836

  ViewVC Help
Powered by ViewVC 1.1.26