/[escript]/trunk/paso/src/Options_setDefaults.c
ViewVC logotype

Diff of /trunk/paso/src/Options_setDefaults.c

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

revision 3282 by gross, Thu Aug 26 06:49:42 2010 UTC revision 3283 by gross, Mon Oct 18 22:39:28 2010 UTC
# Line 52  void Paso_Options_setDefaults(Paso_Optio Line 52  void Paso_Options_setDefaults(Paso_Optio
52    options->post_sweeps=2;    options->post_sweeps=2;
53    options->coarsening_threshold=0.25;    options->coarsening_threshold=0.25;
54    options->min_coarse_matrix_size=500;    options->min_coarse_matrix_size=500;
55    options->level_max=10;    options->level_max=100;
56    options->accept_failed_convergence=FALSE;    options->accept_failed_convergence=FALSE;
57    options->coarsening_method=PASO_DEFAULT;    options->coarsening_method=PASO_DEFAULT;
58    options->relaxation_factor=0.95;    options->relaxation_factor=0.95;
59    options->smoother=PASO_GS;    options->smoother=PASO_GS;
60    options->use_local_preconditioner=FALSE;    options->use_local_preconditioner=FALSE;
61      options->min_coarse_sparsity=0.05;
62      options->refinements=2;
63      options->coarse_matrix_refinements=0;
64      options->diagonal_dominance_threshold=0.5;
65      
66    
67    /* diagnostic values */    /* diagnostic values */
68    options->num_iter=-1;    options->num_iter=-1;
# Line 65  void Paso_Options_setDefaults(Paso_Optio Line 70  void Paso_Options_setDefaults(Paso_Optio
70    options->num_inner_iter=-1;    options->num_inner_iter=-1;
71    options->time=-1.;    options->time=-1.;
72    options->set_up_time=-1.;    options->set_up_time=-1.;
73      options->coarsening_selection_time=-1.;
74      options->coarsening_matrix_time=-1;
75    options->net_time=-1.;    options->net_time=-1.;
76    options->residual_norm=-1.;    options->residual_norm=-1.;
77    options->converged=FALSE;    options->converged=FALSE;
# Line 78  void Paso_Options_showDiagnostics(const Line 85  void Paso_Options_showDiagnostics(const
85      printf("\tnum_inner_iter = %d\n",options->num_inner_iter);      printf("\tnum_inner_iter = %d\n",options->num_inner_iter);
86      printf("\ttime = %e\n",options->time);      printf("\ttime = %e\n",options->time);
87      printf("\tset_up_time = %e\n",options->set_up_time);      printf("\tset_up_time = %e\n",options->set_up_time);
88          printf("\tnet_time = %e\n",options->net_time);      printf("\tcoarsening_selection_time = %e\n",options->coarsening_selection_time);
89        printf("\tscoarsening_matrix_time = %e\n",options->coarsening_matrix_time);
90        printf("\tnet_time = %e\n",options->net_time);
91      printf("\tresidual_norm = %e\n",options->residual_norm);      printf("\tresidual_norm = %e\n",options->residual_norm);
92      printf("\tconverged = %d\n",options->converged);      printf("\tconverged = %d\n",options->converged);
93          printf("\tpreconditioner_size = %e Mbytes\n", options->preconditioner_size);          printf("\tpreconditioner_size = %e Mbytes\n", options->preconditioner_size);
# Line 191  void Paso_Options_show(const Paso_Option Line 200  void Paso_Options_show(const Paso_Option
200      printf("\tcoarsening_method = %s (%d)\n",Paso_Options_name(options->coarsening_method), options->coarsening_method);      printf("\tcoarsening_method = %s (%d)\n",Paso_Options_name(options->coarsening_method), options->coarsening_method);
201      printf("\trelaxation_factor = %e\n",options->relaxation_factor);      printf("\trelaxation_factor = %e\n",options->relaxation_factor);
202      printf("\tuse_local_preconditioner = %d\n",options->use_local_preconditioner);      printf("\tuse_local_preconditioner = %d\n",options->use_local_preconditioner);
203        printf("\tmin_coarse_sparsity = %e\n",options->min_coarse_sparsity);
204        printf("\trefinements = %d\n",options->refinements);
205        printf("\tcoarse_matrix_refinements = %d\n",options->coarse_matrix_refinements);
206        
207  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26