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

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

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

revision 430 by gross, Wed Jan 11 06:40:50 2006 UTC revision 431 by gross, Fri Jan 13 05:07:10 2006 UTC
# Line 19  static double TOLERANCE_FOR_SCALARS=0.; Line 19  static double TOLERANCE_FOR_SCALARS=0.;
19    
20  /* ILU preconditioner */  /* ILU preconditioner */
21  struct Paso_Solver_ILU {  struct Paso_Solver_ILU {
   dim_t n;  
22    dim_t n_block;    dim_t n_block;
23    dim_t n_F;    dim_t n;
24    dim_t n_C;    index_t num_colors;
25    double* inv_A_FF;    index_t* colorOf;
26    index_t* A_FF_pivot;    index_t* main_iptr;
27    Paso_SystemMatrix * A_FC;    double* factors;
28    Paso_SystemMatrix * A_CF;    Paso_SystemMatrixPattern* pattern;
   index_t* rows_in_F;  
   index_t* rows_in_C;  
   index_t* mask_F;  
   index_t* mask_C;  
   double* x_F;  
   double* b_F;  
   double* x_C;  
   double* b_C;  
   struct Paso_Solver_ILU * ILU_of_Schur;  
29  };  };
30  typedef struct Paso_Solver_ILU Paso_Solver_ILU;  typedef struct Paso_Solver_ILU Paso_Solver_ILU;
31    
# Line 92  void Paso_Preconditioner_free(Paso_Solve Line 82  void Paso_Preconditioner_free(Paso_Solve
82  void Paso_Solver_setPreconditioner(Paso_SystemMatrix* A,Paso_Options* options);  void Paso_Solver_setPreconditioner(Paso_SystemMatrix* A,Paso_Options* options);
83  void Paso_Solver_solvePreconditioner(Paso_SystemMatrix* A,double*,double*);  void Paso_Solver_solvePreconditioner(Paso_SystemMatrix* A,double*,double*);
84  void Paso_Solver_applyBlockDiagonalMatrix(dim_t n_block,dim_t n,double* D,index_t* pivot,double* x,double* b);  void Paso_Solver_applyBlockDiagonalMatrix(dim_t n_block,dim_t n,double* D,index_t* pivot,double* x,double* b);
85    
86  void Paso_Solver_ILU_free(Paso_Solver_ILU * in);  void Paso_Solver_ILU_free(Paso_Solver_ILU * in);
87  Paso_Solver_ILU* Paso_Solver_getILU(Paso_SystemMatrix * A_p,bool_t verbose);  Paso_Solver_ILU* Paso_Solver_getILU(Paso_SystemMatrix * A_p,bool_t verbose);
88  void Paso_Solver_solveILU(Paso_Solver_ILU * ilu, double * x, double * b);  void Paso_Solver_solveILU(Paso_Solver_ILU * ilu, double * x, double * b);
89  void Paso_Solver_updateIncompleteSchurComplement(Paso_SystemMatrix* A_CC,Paso_SystemMatrix *A_CF,double* invA_FF,index_t* A_FF_pivot,Paso_SystemMatrix *A_FC);  
90    void Paso_Solver_RILU_free(Paso_Solver_RILU * in);
91    Paso_Solver_RILU* Paso_Solver_getRILU(Paso_SystemMatrix * A_p,bool_t verbose);
92    void Paso_Solver_solveRILU(Paso_Solver_RILU * rilu, double * x, double * b);
93    
94    void Paso_Solver_updateIncompleteSchurComplement(Paso_SystemMatrix* A_CC,Paso_SystemMatrix *A_CF,double*
95    invA_FF,index_t* A_FF_pivot,Paso_SystemMatrix *A_FC);
96  Paso_Solver_Jacobi* Paso_Solver_getJacobi(Paso_SystemMatrix * A_p);  Paso_Solver_Jacobi* Paso_Solver_getJacobi(Paso_SystemMatrix * A_p);
97  void Paso_Solver_solveJacobi(Paso_Solver_Jacobi * prec, double * x, double * b);  void Paso_Solver_solveJacobi(Paso_Solver_Jacobi * prec, double * x, double * b);
98  void Paso_Solver_Jacobi_free(Paso_Solver_Jacobi * in);  void Paso_Solver_Jacobi_free(Paso_Solver_Jacobi * in);

Legend:
Removed from v.430  
changed lines
  Added in v.431

  ViewVC Help
Powered by ViewVC 1.1.26