/[escript]/branches/pasoc/paso/src/Transport.h
ViewVC logotype

Diff of /branches/pasoc/paso/src/Transport.h

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

revision 6561 by jfenwick, Fri May 12 05:51:39 2017 UTC revision 6562 by jfenwick, Fri May 12 08:15:37 2017 UTC
# Line 28  Line 28 
28    
29  namespace paso {  namespace paso {
30    
31    template <class T>
32  class TransportProblem;  class TransportProblem;
 typedef boost::shared_ptr<TransportProblem> TransportProblem_ptr;  
 typedef boost::shared_ptr<const TransportProblem> const_TransportProblem_ptr;  
33    
34    template <class T>
35    using TransportProblem_ptr = boost::shared_ptr<TransportProblem<T> >;
36    
37    template <class T>
38    using const_TransportProblem_ptr = boost::shared_ptr<const TransportProblem<T> >;
39    
40    template <class T>
41  class TransportProblem : public escript::AbstractTransportProblem,  class TransportProblem : public escript::AbstractTransportProblem,
42                           public boost::enable_shared_from_this<TransportProblem>                           public boost::enable_shared_from_this<TransportProblem<T> >
43  {  {
44  public:  public:
45      /// Default constructor - throws exception      /// Default constructor - throws exception
# Line 61  public: Line 67  public:
67          return transport_matrix->row_block_size;          return transport_matrix->row_block_size;
68      }      }
69    
70      inline SystemMatrix_ptr borrowTransportMatrix() const      inline SystemMatrix_ptr<T> borrowTransportMatrix() const
71      {      {
72          return transport_matrix;          return transport_matrix;
73      }      }
74    
75      inline SystemMatrix_ptr borrowMassMatrix() const      inline SystemMatrix_ptr<T> borrowMassMatrix() const
76      {      {
77          return mass_matrix;          return mass_matrix;
78      }      }
# Line 98  public: Line 104  public:
104          return MATRIX_FORMAT_DEFAULT + MATRIX_FORMAT_BLK1;          return MATRIX_FORMAT_DEFAULT + MATRIX_FORMAT_BLK1;
105      }      }
106    
107      SystemMatrix_ptr transport_matrix;      SystemMatrix_ptr<T> transport_matrix;
108      SystemMatrix_ptr mass_matrix;      SystemMatrix_ptr<T> mass_matrix;
109      SystemMatrix_ptr iteration_matrix;      SystemMatrix_ptr<T> iteration_matrix;
110    
111      mutable bool valid_matrices;      mutable bool valid_matrices;
112      /// safe time step size for reactive part      /// safe time step size for reactive part

Legend:
Removed from v.6561  
changed lines
  Added in v.6562

  ViewVC Help
Powered by ViewVC 1.1.26