/[escript]/trunk/paso/profiling/Paso_tests.c
ViewVC logotype

Diff of /trunk/paso/profiling/Paso_tests.c

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

revision 2819 by jfenwick, Fri Aug 21 06:30:25 2009 UTC revision 2820 by artak, Thu Dec 10 05:03:11 2009 UTC
# Line 18  Line 18 
18    
19  /**************************************************************/  /**************************************************************/
20    
21  /* Copyrights by ACcESS Australia 2003 */  /* Copyrights by ACcESS Australia 2009 */
22  /* Author: artak@uq.edu.au */  /* Author: artak@uq.edu.au */
23    
24  /**************************************************************/  /**************************************************************/
# Line 84  void Paso_test_run(Paso_SystemMatrix* A, Line 84  void Paso_test_run(Paso_SystemMatrix* A,
84   else if (level==2) /* Preconditiones only with default solver*/   else if (level==2) /* Preconditiones only with default solver*/
85      {      {
86        Paso_Options_setDefaults(&options);        Paso_Options_setDefaults(&options);
87        options.method=PASO_PCG;        options.method=PASO_DEFAULT;
88        options.verbose=TRUE;        options.verbose=TRUE;
89        options.preconditioner=PASO_JACOBI;        options.preconditioner=PASO_JACOBI;
90        fprintf(stdout,"Test preconditioner: PASO_DEFAULT with JACOBI\n");        fprintf(stdout,"Test preconditioner: PASO_DEFAULT with JACOBI\n");
# Line 92  void Paso_test_run(Paso_SystemMatrix* A, Line 92  void Paso_test_run(Paso_SystemMatrix* A,
92                
93        Paso_Options_setDefaults(&options);        Paso_Options_setDefaults(&options);
94        A->solver=NULL;        A->solver=NULL;
95        options.method=PASO_PCG;        options.method=PASO_DEFAULT;
96        options.verbose=TRUE;        options.verbose=TRUE;
97        fprintf(stdout,"Test preconditioner: PASO_DEFAULT with ILU\n");        fprintf(stdout,"Test preconditioner: PASO_DEFAULT with ILU\n");
98        options.preconditioner=PASO_ILU0;        options.preconditioner=PASO_ILU0;
# Line 100  void Paso_test_run(Paso_SystemMatrix* A, Line 100  void Paso_test_run(Paso_SystemMatrix* A,
100                
101        Paso_Options_setDefaults(&options);        Paso_Options_setDefaults(&options);
102        A->solver=NULL;        A->solver=NULL;
103        options.method=PASO_PCG;        options.method=PASO_DEFAULT;
104        options.verbose=TRUE;        options.verbose=TRUE;
105        fprintf(stdout,"Test preconditioner: PASO_DEFAULT with RILU\n");        fprintf(stdout,"Test preconditioner: PASO_DEFAULT with RILU\n");
106        options.preconditioner=PASO_RILU;        options.preconditioner=PASO_RILU;
# Line 108  void Paso_test_run(Paso_SystemMatrix* A, Line 108  void Paso_test_run(Paso_SystemMatrix* A,
108    
109        Paso_Options_setDefaults(&options);        Paso_Options_setDefaults(&options);
110        A->solver=NULL;        A->solver=NULL;
111        options.method=PASO_PCG;        options.method=PASO_DEFAULT;
112        options.verbose=TRUE;        options.verbose=TRUE;
113        fprintf(stdout,"Test preconditioner: PASO_DEFAULT with GS\n");        fprintf(stdout,"Test preconditioner: PASO_DEFAULT with GS\n");
114        options.preconditioner=PASO_GS;        options.preconditioner=PASO_GS;
# Line 116  void Paso_test_run(Paso_SystemMatrix* A, Line 116  void Paso_test_run(Paso_SystemMatrix* A,
116    
117        Paso_Options_setDefaults(&options);        Paso_Options_setDefaults(&options);
118        A->solver=NULL;        A->solver=NULL;
119        options.method=PASO_PCG;        options.method=PASO_DEFAULT;
120        options.verbose=TRUE;        options.verbose=TRUE;
121        fprintf(stdout,"Test preconditioner: PASO_DEFAULT with AMG\n");        fprintf(stdout,"Test preconditioner: PASO_DEFAULT with AMG\n");
122        options.preconditioner=PASO_AMG;        options.preconditioner=PASO_AMG;
123          Paso_test_matrix(A,b,&options);
124          
125          Paso_Options_setDefaults(&options);
126          A->solver=NULL;
127          options.method=PASO_DEFAULT;
128          options.verbose=TRUE;
129          fprintf(stdout,"Test preconditioner: PASO_DEFAULT with AMLI\n");
130          options.preconditioner=PASO_AMLI;
131        Paso_test_matrix(A,b,&options);          Paso_test_matrix(A,b,&options);  
132                
133      }      }

Legend:
Removed from v.2819  
changed lines
  Added in v.2820

  ViewVC Help
Powered by ViewVC 1.1.26