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

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

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

revision 2196 by phornby, Thu Nov 20 10:51:41 2008 UTC revision 2197 by gross, Thu Jan 8 05:49:16 2009 UTC
# Line 15  Line 15 
15  #ifndef INC_SOLVERFCT  #ifndef INC_SOLVERFCT
16  #define INC_SOLVERFCT  #define INC_SOLVERFCT
17    
18    #define DT_FACTOR_MAX 1000.
19    
20  #include "SystemMatrix.h"  #include "SystemMatrix.h"
21  #include "Options.h"  #include "Options.h"
22  #include "performance.h"  #include "performance.h"
# Line 24  typedef struct Paso_FCTransportProblem { Line 26  typedef struct Paso_FCTransportProblem {
26      double theta;      double theta;
27      double dt_max;      double dt_max;
28      bool_t valid_matrices;      bool_t valid_matrices;
29        double dt_factor; /* = MIN(1/(1-theta),DT_FACTOR_MAX) */
30    
31      Paso_SystemMatrix * transport_matrix;      Paso_SystemMatrix * transport_matrix;
32      Paso_SystemMatrix * mass_matrix;      Paso_SystemMatrix * mass_matrix;
33    
34        double constraint_factor;
35        double* constraint_weights;
36    
37      double* u;      double* u;
38      Paso_Coupler* u_coupler;      Paso_Coupler* u_coupler;
39    
# Line 42  typedef struct Paso_FCTransportProblem { Line 48  typedef struct Paso_FCTransportProblem {
48  } Paso_FCTransportProblem;  } Paso_FCTransportProblem;
49    
50    
51    
52  PASO_DLL_API  PASO_DLL_API
53  Paso_FCTransportProblem* Paso_FCTransportProblem_getReference(Paso_FCTransportProblem* in);  Paso_FCTransportProblem* Paso_FCTransportProblem_getReference(Paso_FCTransportProblem* in);
54    
# Line 111  void Paso_FCT_setUp(Paso_FCTransportProb Line 118  void Paso_FCT_setUp(Paso_FCTransportProb
118  PASO_DLL_API  PASO_DLL_API
119  index_t Paso_FCTransportProblem_getTypeId(const index_t solver,const index_t preconditioner, const index_t package,const  bool_t symmetry);  index_t Paso_FCTransportProblem_getTypeId(const index_t solver,const index_t preconditioner, const index_t package,const  bool_t symmetry);
120    
121    
122    PASO_DLL_API
123    void Paso_FCTransportProblem_insertConstraint(Paso_FCTransportProblem* fctp,  const double* r,  double* source);
124    
125    
126    PASO_DLL_API
127    void Paso_FCTransportProblem_setUpConstraint(Paso_FCTransportProblem* fctp,  const double* q, const double factor);
128    
129  #endif /* #ifndef INC_SOLVERFCT */  #endif /* #ifndef INC_SOLVERFCT */

Legend:
Removed from v.2196  
changed lines
  Added in v.2197

  ViewVC Help
Powered by ViewVC 1.1.26