/[escript]/branches/trilinos_from_5897/escriptcore/src/AbstractTransportProblem.cpp
ViewVC logotype

Diff of /branches/trilinos_from_5897/escriptcore/src/AbstractTransportProblem.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 22  Line 22 
22  #include "Data.h"  #include "Data.h"
23  #include <iostream>  #include <iostream>
24    
25    namespace bp = boost::python;
26    
27  namespace escript {  namespace escript {
28    
# Line 49  int AbstractTransportProblem::isEmpty() Line 50  int AbstractTransportProblem::isEmpty()
50  }  }
51    
52    
53  Data AbstractTransportProblem::solve(Data& u0, Data& source, const double dt, boost::python::object& options) const  Data AbstractTransportProblem::solve(Data& u0, Data& source, double dt,
54                                         bp::object& options)
55  {  {
56       if (isEmpty())       if (isEmpty())
57            throw TransportProblemException("Error - transport problem is empty.");            throw TransportProblemException("Error - transport problem is empty.");
# Line 71  Data AbstractTransportProblem::solve(Dat Line 73  Data AbstractTransportProblem::solve(Dat
73       return out;       return out;
74  }  }
75    
76  void AbstractTransportProblem::insertConstraint(Data& source, Data& q, Data& r) const  void AbstractTransportProblem::insertConstraint(Data& source, Data& q, Data& r)
77  {  {
78       source.expand();       source.expand();
79       if (isEmpty())       if (isEmpty())
# Line 98  void AbstractTransportProblem::insertCon Line 100  void AbstractTransportProblem::insertCon
100       }       }
101  }  }
102    
103  void AbstractTransportProblem::copyConstraint(Data& source, Data& q, Data& r) const  void AbstractTransportProblem::copyConstraint(Data& source, Data& q, Data& r)
104  {  {
105      throw TransportProblemException("Error - copyConstraint is not available");      throw TransportProblemException("Error - copyConstraint is not available");
106  }  }
107    
108  void AbstractTransportProblem::setToSolution(Data& out, Data &u0, Data& source,const double dt, boost::python::object& options) const  void AbstractTransportProblem::setToSolution(Data& out, Data &u0, Data& source,
109                                                 double dt, bp::object& options)
110  {  {
111      throw TransportProblemException("Error - setToSolution is not available");      throw TransportProblemException("Error - setToSolution is not available");
112  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26