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

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

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

revision 1706 by artak, Thu Aug 14 05:34:25 2008 UTC revision 1707 by ksteube, Thu Aug 14 06:38:14 2008 UTC
# Line 55  void Paso_Solver(Paso_SystemMatrix* A,do Line 55  void Paso_Solver(Paso_SystemMatrix* A,do
55     err_t errorCode;     err_t errorCode;
56     dim_t numSol = Paso_SystemMatrix_getTotalNumCols(A);     dim_t numSol = Paso_SystemMatrix_getTotalNumCols(A);
57     dim_t numEqua = Paso_SystemMatrix_getTotalNumRows(A);     dim_t numEqua = Paso_SystemMatrix_getTotalNumRows(A);
58     double blocktimer_start = blocktimer_time();     double blocktimer_precond, blocktimer_start = blocktimer_time();
59    
60       tolerance=MAX(options->tolerance,EPSILON);       tolerance=MAX(options->tolerance,EPSILON);
61       Paso_resetError();       Paso_resetError();
# Line 149  void Paso_Solver(Paso_SystemMatrix* A,do Line 149  void Paso_Solver(Paso_SystemMatrix* A,do
149              }              }
150              /* construct the preconditioner */              /* construct the preconditioner */
151                                
152                blocktimer_precond = blocktimer_time();
153              Performance_startMonitor(pp,PERFORMANCE_PRECONDITIONER_INIT);              Performance_startMonitor(pp,PERFORMANCE_PRECONDITIONER_INIT);
154              Paso_Solver_setPreconditioner(A,options);              Paso_Solver_setPreconditioner(A,options);
155              Performance_stopMonitor(pp,PERFORMANCE_PRECONDITIONER_INIT);              Performance_stopMonitor(pp,PERFORMANCE_PRECONDITIONER_INIT);
156                blocktimer_increment("Paso_Solver_setPreconditioner()", blocktimer_precond);
157              if (! Paso_noError()) return;              if (! Paso_noError()) return;
158                time_iter=Paso_timer();                time_iter=Paso_timer();
159                /* get an initial guess by evaluating the preconditioner */                /* get an initial guess by evaluating the preconditioner */

Legend:
Removed from v.1706  
changed lines
  Added in v.1707

  ViewVC Help
Powered by ViewVC 1.1.26