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

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

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

revision 3098 by gross, Fri Aug 20 08:08:27 2010 UTC revision 3111 by gross, Thu Aug 26 06:49:42 2010 UTC
# Line 80  void Paso_Solver_setPreconditioner(Paso_ Line 80  void Paso_Solver_setPreconditioner(Paso_
80                prec->type=PASO_JACOBI;                prec->type=PASO_JACOBI;
81                break;                break;
82         case PASO_GS:         case PASO_GS:
83            if (options->verbose) printf("Gauss-Seidel(%d) preconditioner is used.\n",options->sweeps);            if (options->sweeps > 0 ) {
84            prec->gs=Paso_Solver_getGS(A, options->sweeps, options->use_local_preconditioner, options->verbose);            if (options->verbose) printf("Gauss-Seidel(%d) preconditioner is used.\n",options->sweeps);
85            prec->type=PASO_GS;            prec->gs=Paso_Solver_getGS(A, options->sweeps, options->use_local_preconditioner, options->verbose);
86              prec->type=PASO_GS;
87              } else {
88             if (options->verbose) printf("Jacobi preconditioner is used.\n");
89             prec->jacobi=Paso_Solver_getJacobi(A);
90             prec->type=PASO_JACOBI;
91              }
92            break;            break;
             
93         /***************************************************************************************/           /***************************************************************************************/  
94             case PASO_ILU0:             case PASO_ILU0:
95                if (options->verbose) printf("ILU preconditioner is used.\n");                if (options->verbose) printf("ILU preconditioner is used.\n");

Legend:
Removed from v.3098  
changed lines
  Added in v.3111

  ViewVC Help
Powered by ViewVC 1.1.26