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

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

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

revision 3282 by gross, Tue Sep 21 09:14:56 2010 UTC revision 3283 by gross, Mon Oct 18 22:39:28 2010 UTC
# Line 16  Line 16 
16    
17  #include "SystemMatrix.h"  #include "SystemMatrix.h"
18    
 #define PASO_COARSENING_IN_F 1  
 #define PASO_COARSENING_IN_C 2  
19    
20  void Paso_Coarsening_Local(index_t* mis_marker, Paso_SparseMatrix* A, double threshold, const index_t coarsening_method);  /* Remove:
21    #define PASO_COARSENING_IN_F TRUE
22    #define PASO_COARSENING_IN_C FALSE
23    */
24    
25  void Paso_Coarsening_Local_YS(Paso_SparseMatrix* A, index_t* mis_marker, double thershold);  void Paso_Coarsening_Local(index_t* marker_F, Paso_SparseMatrix* A,  Paso_Options* options);
26  void Paso_Coarsening_Local_RS(Paso_SparseMatrix* A, index_t* mis_marker, double theta);  void Paso_Coarsening_Local_Aggregation(Paso_SparseMatrix* A, index_t* marker_F, const double theta);
27  void Paso_Coarsening_Local_Aggregiation(Paso_SparseMatrix* A, index_t* mis_marker, double theta);  void Paso_Coarsening_Local_Aggregation_blk(Paso_SparseMatrix* A, index_t* marker_F, const double theta);
28    void Paso_Coarsening_Local_YS(Paso_SparseMatrix* A, index_t* marker_F, const double theta);
29    void Paso_Coarsening_Local_YS_blk(Paso_SparseMatrix* A, index_t* marker_F, const double theta);
30    
31    void Paso_Coarsening_Local_RS(Paso_SparseMatrix* A, index_t* marker_F, double theta);
32    
33  /*===============*/  void Paso_Coarsening_Local_Partition(Paso_Pattern* pattern,index_t* marker_F);
34  void Paso_Coarsening_Local_greedy(Paso_Pattern* pattern, index_t* mis_marker);  void Paso_Coarsening_Local_greedy(Paso_Pattern* pattern, index_t* marker_F);
 void Paso_Coarsening_Local_greedy_color(Paso_Pattern* pattern, index_t* mis_marker);  
 void Paso_Coarsening_Local_greedy_diag(Paso_SparseMatrix* A, index_t* mis_marker, double thershold);  
35    
36  void Paso_Coarsening_Local_YS_plus(Paso_SparseMatrix* A, index_t* mis_marker, double alpha, double taw, double delta);  
37  void Paso_Coarsening_Local_Standard(Paso_SparseMatrix* A, index_t* mis_marker, double theta);  
38  void Paso_Coarsening_Local_greedy_RS(Paso_SparseMatrix* A, index_t* mis_marker, double theta);  /*=== REVISE ============*/
39  void Paso_Coarsening_Local_greedy_Agg(Paso_SparseMatrix* A, index_t* mis_marker, double theta);  void Paso_Coarsening_Local_greedy_color(Paso_Pattern* pattern, index_t* marker_F);
40    void Paso_Coarsening_Local_greedy_diag(Paso_SparseMatrix* A, index_t* marker_F, double thershold);
41    
42    void Paso_Coarsening_Local_YS_plus(Paso_SparseMatrix* A, index_t* marker_F, double alpha, double taw, double delta);
43    void Paso_Coarsening_Local_Standard(Paso_SparseMatrix* A, index_t* marker_F, double theta);
44    void Paso_Coarsening_Local_greedy_RS(Paso_SparseMatrix* A, index_t* marker_F, double theta);
45    void Paso_Coarsening_Local_greedy_Agg(Paso_SparseMatrix* A, index_t* marker_F, double theta);
46  /*dim_t how_many(dim_t n,dim_t* S_i, int value1, dim_t* addedSet, int value2);*/  /*dim_t how_many(dim_t n,dim_t* S_i, int value1, dim_t* addedSet, int value2);*/
47  void Paso_Coarsening_Local_Standard_Block(Paso_SparseMatrix* A, index_t* mis_marker, double theta);  void Paso_Coarsening_Local_Standard_Block(Paso_SparseMatrix* A, index_t* marker_F, double theta);
48    
49  dim_t how_many(dim_t i,Paso_Pattern * S, bool_t transpose);  dim_t how_many(dim_t i,Paso_Pattern * S, bool_t transpose);
50  dim_t arg_max(dim_t n, dim_t* lambda, dim_t mask);  dim_t arg_max(dim_t n, dim_t* lambda, dim_t mask);
51  Paso_Pattern* Paso_Coarsening_Local_getTranspose(Paso_Pattern* P);  Paso_Pattern* Paso_Coarsening_Local_getTranspose(Paso_Pattern* P);
52  void Paso_Coarsening_Local_getReport(dim_t n,index_t* mis_marker);  
53  void Paso_Coarsening_Local_Read(char *fileName,dim_t n,index_t* mis_marker);  void Paso_Coarsening_Local_getReport(dim_t n,index_t* marker_F);
54  void Paso_Coarsening_Local_Write(char *fileName,dim_t n,index_t* mis_marker);  void Paso_Coarsening_Local_Read(char *fileName,dim_t n,index_t* marker_F);
55    void Paso_Coarsening_Local_Write(char *fileName,dim_t n,index_t* marker_F);
56    
57    
58  #endif  #endif

Legend:
Removed from v.3282  
changed lines
  Added in v.3283

  ViewVC Help
Powered by ViewVC 1.1.26