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

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

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

revision 6057 by caltinay, Wed Mar 2 04:13:26 2016 UTC revision 6058 by caltinay, Thu Mar 10 06:51:55 2016 UTC
# Line 149  SystemMatrix::~SystemMatrix() Line 149  SystemMatrix::~SystemMatrix()
149  void SystemMatrix::setPreconditioner(Options* options)  void SystemMatrix::setPreconditioner(Options* options)
150  {  {
151      if (!solver_p) {      if (!solver_p) {
152          solver_p = Preconditioner_alloc(shared_from_this(), options);          SystemMatrix_ptr mat(boost::dynamic_pointer_cast<SystemMatrix>(getPtr()));
153            solver_p = Preconditioner_alloc(mat, options);
154      }      }
155  }  }
156    
157  void SystemMatrix::solvePreconditioner(double* x, double* b)  void SystemMatrix::solvePreconditioner(double* x, double* b)
158  {  {
159      Preconditioner* prec=(Preconditioner*)solver_p;      Preconditioner* prec=(Preconditioner*)solver_p;
160      Preconditioner_solve(prec, shared_from_this(), x, b);      SystemMatrix_ptr mat(boost::dynamic_pointer_cast<SystemMatrix>(getPtr()));
161        Preconditioner_solve(prec, mat, x, b);
162  }  }
163    
164  void SystemMatrix::freePreconditioner()  void SystemMatrix::freePreconditioner()

Legend:
Removed from v.6057  
changed lines
  Added in v.6058

  ViewVC Help
Powered by ViewVC 1.1.26