/[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 3042 by artak, Thu Dec 10 05:03:11 2009 UTC revision 3043 by artak, Fri Jun 18 04:45:14 2010 UTC
# Line 52  int main (int argc, char *argv[]) { Line 52  int main (int argc, char *argv[]) {
52            
53            
54      options.verbose=TRUE;      options.verbose=TRUE;
55        options.level_max=2;
56        options.tolerance=1.E-6;
57        options.smoother=PASO_GAUSS_SEIDEL;
58        options.pre_sweeps=5;
59        options.post_sweeps=5;
60    
61      while ((c = getopt(argc, argv, "s:p:f:r:l:t:c:h")) != -1) {      while ((c = getopt(argc, argv, "s:p:f:r:l:t:c:h")) != -1) {
62        switch(c) {        switch(c) {
# Line 119  int main (int argc, char *argv[]) { Line 124  int main (int argc, char *argv[]) {
124              break;              break;
125          case 't':          case 't':
126              options.coarsening_threshold=atof(optarg);              options.coarsening_threshold=atof(optarg);
127                break;
128          case 'c':          case 'c':
129              prec=optarg;              prec=optarg;
130              if (strcmp(prec,"RS")==0)              if (strcmp(prec,"RS")==0)
# Line 129  int main (int argc, char *argv[]) { Line 135  int main (int argc, char *argv[]) {
135                  options.coarsening_method=PASO_AGGREGATION_COARSENING;                  options.coarsening_method=PASO_AGGREGATION_COARSENING;
136              else if (strcmp(prec,"STD")==0)              else if (strcmp(prec,"STD")==0)
137                  options.coarsening_method=PASO_STANDARD_COARSENING;                  options.coarsening_method=PASO_STANDARD_COARSENING;
138          break;              break;
139          case '?':          case '?':
140              printf("unknown arg %c\n", optopt);              printf("unknown arg %c\n", optopt);
141              break;              break;

Legend:
Removed from v.3042  
changed lines
  Added in v.3043

  ViewVC Help
Powered by ViewVC 1.1.26