/[escript]/trunk/pasowrap/src/TransportProblemAdapter.cpp
ViewVC logotype

Diff of /trunk/pasowrap/src/TransportProblemAdapter.cpp

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

revision 3792 by jfenwick, Thu Dec 8 04:35:52 2011 UTC revision 3793 by gross, Wed Feb 1 07:39:43 2012 UTC
# Line 34  TransportProblemAdapter::TransportProble Line 34  TransportProblemAdapter::TransportProble
34    
35  PASOWRAP_DLL_API  PASOWRAP_DLL_API
36  TransportProblemAdapter::TransportProblemAdapter(Paso_TransportProblem* transport_problem,  TransportProblemAdapter::TransportProblemAdapter(Paso_TransportProblem* transport_problem,
                                                  const bool useBackwardEuler,  
37                                                   const int block_size,                                                   const int block_size,
38                                                   const escript::FunctionSpace& functionspace):                                                   const escript::FunctionSpace& functionspace):
39  AbstractTransportProblem(useBackwardEuler, block_size, functionspace)  AbstractTransportProblem(block_size, functionspace)
40  {  {
41      m_transport_problem.reset(transport_problem,null_deleter());      m_transport_problem.reset(transport_problem,null_deleter());
42  }  }
# Line 82  void TransportProblemAdapter::setToSolut Line 81  void TransportProblemAdapter::setToSolut
81      double* out_dp=out.getSampleDataRW(0);      double* out_dp=out.getSampleDataRW(0);
82      double* u0_dp=u0.getSampleDataRW(0);      double* u0_dp=u0.getSampleDataRW(0);
83      double* source_dp=source.getSampleDataRW(0);      double* source_dp=source.getSampleDataRW(0);
     Paso_TransportProblem_solve(transp,out_dp,dt,u0_dp,source_dp,&paso_options);  
84      SystemMatrixAdapter::pasoToEscriptOptions(&paso_options,options);      SystemMatrixAdapter::pasoToEscriptOptions(&paso_options,options);
85        Paso_TransportProblem_solve(transp,out_dp,dt,u0_dp,source_dp,&paso_options);
86    
87      checkPasoError();      checkPasoError();
88  }  }
89    

Legend:
Removed from v.3792  
changed lines
  Added in v.3793

  ViewVC Help
Powered by ViewVC 1.1.26