/[escript]/branches/trilinos_from_5897/paso/src/GMRES.cpp
ViewVC logotype

Diff of /branches/trilinos_from_5897/paso/src/GMRES.cpp

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

revision 5932 by caltinay, Fri Feb 5 03:37:49 2016 UTC revision 5933 by caltinay, Wed Feb 17 23:53:30 2016 UTC
# Line 62  Line 62 
62  #include "Solver.h"  #include "Solver.h"
63    
64  #include <cstring> // memset&memcpy  #include <cstring> // memset&memcpy
65    
66  namespace paso {  namespace paso {
67    
68  err_t Solver_GMRES(SystemMatrix_ptr A, double* r, double* x, dim_t* iter,  err_t Solver_GMRES(SystemMatrix_ptr A, double* r, double* x, dim_t* iter,
# Line 153  err_t Solver_GMRES(SystemMatrix_ptr A, d Line 154  err_t Solver_GMRES(SystemMatrix_ptr A, d
154          /***          /***
155           *** apply A to P to get AP           *** apply A to P to get AP
156           ***/           ***/
157          SystemMatrix_MatrixVector_CSR_OFFSET0(PASO_ONE, A, &P_PRES[0][0], PASO_ZERO, &AP[0]);          A->MatrixVector_CSR_OFFSET0(PASO_ONE, &P_PRES[0][0], PASO_ZERO, &AP[0]);
158          /***          /***
159           ***** calculation of the norm of R and the scalar products of           ***** calculation of the norm of R and the scalar products of
160           ***   the residuals and A*P:           ***   the residuals and A*P:

Legend:
Removed from v.5932  
changed lines
  Added in v.5933

  ViewVC Help
Powered by ViewVC 1.1.26