rheolef  6.6
solver_abtb.h
Go to the documentation of this file.
1 #ifndef _SKIT_SOLVER_ABTB_H
2 #define _SKIT_SOLVER_ABTB_H
3 #include "rheolef/solver.h"
4 #include "rheolef/mixed_solver.h"
5 #include "rheolef/csr.h"
6 
7 namespace rheolef {
8 
57 template <class T, class M = rheo_default_memory_model>
59 public:
60 
61 
62  typedef typename csr<T,M>::size_type size_type;
63 
64 
66  solver_abtb_basic (const csr<T,M>& a, const csr<T,M>& b, const csr<T,M>& mp,
67  const solver_option_type& opt = solver_option_type(),
68  const solver_option_type& sub_opt = solver_option_type());
69  solver_abtb_basic (const csr<T,M>& a, const csr<T,M>& b, const csr<T,M>& c, const csr<T,M>& mp,
71  const solver_option_type& sub_opt = solver_option_type());
72 
73 
74  void solve (const vec<T,M>& f, const vec<T,M>& g, vec<T,M>& u, vec<T,M>& p) const;
75 
76 protected:
77  void init();
88 };
90 @endcode
91 
92 } // namespace rheolef
93 #endif // _SKIT_SOLVER_ABTB_H
solver_abtb_basic< Float, rheo_default_memory_model > solver_abtb
Definition: solver_abtb.h:89
solver_option_type _opt
Definition: solver_abtb.h:78
solver_option_type - options for direct or interative solvers
solver_abtb – direct or iterative solver iterface for mixed linear systems
Definition: solver_abtb.h:58
solver_basic< T, M > _sa
Definition: solver_abtb.h:85
csr< T, M >::size_type size_type
Definition: solver_abtb.h:62
irheostream, orheostream - large data streams
Definition: compiler.h:7
Definition: rotating-hill.h:1
solver_basic< T, M > _sA
Definition: solver_abtb.h:84
void g(boost::multi_array< double, 3 >::reference subarray, size_t jmax, size_t kmax)
vec - vector in distributed environment
Definition: vec.h:44
solver_option_type _sub_opt
Definition: solver_abtb.h:79
solver - direct or interative solver interface
Definition: solver.h:8
solver_basic< T, M > _smp
Definition: solver_abtb.h:86
void solve(const vec< T, M > &f, const vec< T, M > &g, vec< T, M > &u, vec< T, M > &p) const
Definition: solver_abtb.cc:110
ublas::vector_range< ublas::vector< double > > f()
csr - compressed sparse row matrix
Definition: asr.h:8