/[escript]/branches/domexper/finley/src/CPPAdapter/SystemMatrixAdapter.cpp
ViewVC logotype

Diff of /branches/domexper/finley/src/CPPAdapter/SystemMatrixAdapter.cpp

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

revision 2270 by ksteube, Wed Oct 15 03:26:25 2008 UTC revision 2271 by jfenwick, Mon Feb 16 05:08:29 2009 UTC
# Line 72  void SystemMatrixAdapter::ypAx(escript:: Line 72  void SystemMatrixAdapter::ypAx(escript::
72     }     }
73     x.expand();     x.expand();
74     y.expand();     y.expand();
75     double* x_dp=x.getSampleData(0);     x.requireWrite();
76     double* y_dp=y.getSampleData(0);     y.requireWrite();
77       double* x_dp=x.getSampleDataRW(0);
78       double* y_dp=y.getSampleDataRW(0);
79     Paso_SystemMatrix_MatrixVector(1., mat,x_dp, 1.,y_dp);     Paso_SystemMatrix_MatrixVector(1., mat,x_dp, 1.,y_dp);
80     checkPasoError();     checkPasoError();
81  }  }
# Line 201  void SystemMatrixAdapter::setToSolution( Line 203  void SystemMatrixAdapter::setToSolution(
203     }     }
204     out.expand();     out.expand();
205     in.expand();     in.expand();
206     double* out_dp=out.getSampleData(0);     double* out_dp=out.getSampleDataRW(0);  
207     double* in_dp=in.getSampleData(0);     double* in_dp=in.getSampleDataRW(0);    
208     Paso_solve(mat,out_dp,in_dp,&paso_options);     Paso_solve(mat,out_dp,in_dp,&paso_options);
209     checkPasoError();     checkPasoError();
210  }  }
# Line 221  void SystemMatrixAdapter::nullifyRowsAnd Line 223  void SystemMatrixAdapter::nullifyRowsAnd
223     }     }
224     row_q.expand();     row_q.expand();
225     col_q.expand();     col_q.expand();
226     double* row_q_dp=row_q.getSampleData(0);     row_q.requireWrite();
227     double* col_q_dp=col_q.getSampleData(0);     col_q.requireWrite();
228       double* row_q_dp=row_q.getSampleDataRW(0);
229       double* col_q_dp=col_q.getSampleDataRW(0);
230     Paso_SystemMatrix_nullifyRowsAndCols(mat,row_q_dp,col_q_dp, mdv);     Paso_SystemMatrix_nullifyRowsAndCols(mat,row_q_dp,col_q_dp, mdv);
231     checkPasoError();     checkPasoError();
232  }  }

Legend:
Removed from v.2270  
changed lines
  Added in v.2271

  ViewVC Help
Powered by ViewVC 1.1.26