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

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

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

revision 2382 by artak, Tue Apr 14 03:48:22 2009 UTC revision 2383 by artak, Tue Apr 14 03:53:56 2009 UTC
# Line 52  int main (int argc, char *argv[]) { Line 52  int main (int argc, char *argv[]) {
52            
53      options.verbose=TRUE;      options.verbose=TRUE;
54    
55      while ((c = getopt(argc, argv, "s:p:f:r:l:c:")) != -1) {      while ((c = getopt(argc, argv, "s:p:f:r:l:c:h")) != -1) {
56        switch(c) {        switch(c) {
57          case 's':          case 's':
58              solver=optarg;              solver=optarg;
# Line 115  int main (int argc, char *argv[]) { Line 115  int main (int argc, char *argv[]) {
115          case '?':          case '?':
116              printf("unknown arg %c\n", optopt);              printf("unknown arg %c\n", optopt);
117              break;              break;
118          case ':':          case 'h':
119              printf("Usage: PasoTests -f filename [-s solver] [-p preconditioner] [-l level] [-r rhs matrix] [-c coupling parameter for AMG]\n");              printf("Usage: PasoTests -f filename [-s solver] [-p preconditioner] [-l level] [-r rhs matrix] [-c coupling parameter for AMG]\n");
120              printf("\t filename - matrix to be loaded in CSR Matrix-Market format\n");              printf("\t filename - matrix to be loaded in CSR Matrix-Market format\n");
121              printf("\t solver   - PCG, GMRES, PRES20, TFQMR and MINRES\n");              printf("\t solver   - PCG, GMRES, PRES20, TFQMR and MINRES\n");
# Line 125  int main (int argc, char *argv[]) { Line 125  int main (int argc, char *argv[]) {
125              printf("\t\t 1 - test all solvers with default preconditioner\n");                          printf("\t\t 1 - test all solvers with default preconditioner\n");            
126              printf("\t\t 2 - test all preconditioners with default solver\n");              printf("\t\t 2 - test all preconditioners with default solver\n");
127              printf("\t\t 3 - compare solution obtained by using AMG and Jacobi precondioners\n");                          printf("\t\t 3 - compare solution obtained by using AMG and Jacobi precondioners\n");            
128              printf("rhs matris - right hand side vector in CSR Matrix Market format.\n");              printf("\trhs matris - right hand side vector in CSR Matrix Market format.\n");
129              printf("coupling parameter for AMG - this is the threshold value used in AMG in courenening process. Default is 0.05.\n");                          printf("\tcoupling parameter for AMG - this is the threshold value used in AMG in courenening process. Default is 0.05.\n");            
130              break;              break;
131          }          }
132      }      }
133            
134      if (A==NULL) {      if (A==NULL) {
135        fprintf(stderr,"CSR Matrix not Loaded\n");        /*fprintf(stderr,"CSR Matrix not Loaded\n");*/
136        return 0;        return 0;
137      }      }
138        

Legend:
Removed from v.2382  
changed lines
  Added in v.2383

  ViewVC Help
Powered by ViewVC 1.1.26