Class documentation of Concepts

Loading...
Searching...
No Matches
mumpsoverlapFabric.hh
Go to the documentation of this file.
1
9#ifndef mumpsoverlapfabric_hh
10#define mumpsoverlapfabric_hh
11
12#include "mumpsoverlap.hh"
13#include "solverFabric.hh"
14#include "sparseMatrix.hh"
15#include "CRS.hh"
16
17namespace concepts {
18
19 // *********************************************************** MumpsFabric **
20
24 template<class F = Real>
25 class MumpsOverlapFabric : public SolverFabric<F> {
26 public:
27 MumpsOverlapFabric(const int part) : part_(part) {};
29 virtual Operator<F>* operator()() {return new Operator<F>(1,1);};
30 virtual MumpsOverlap<F>* operator()(Operator<F>& matrix) {
31 if (dynamic_cast<concepts::CRSConvertable<F>*>(&matrix))
32 return new MumpsOverlap<F>(matrix, this->part_);
33 else {
35 return new MumpsOverlap<F>(tmpMatrix, this->part_);
36 }
37 }
38 protected:
39 int part_;
40 virtual std::ostream& info(std::ostream& os) const {
41 return os << concepts::typeOf(*this)<<"()";
42 }
43 };
44
45} // concepts
46
47#endif // mumpsoverlapfabric_hh
virtual Operator< F > * operator()()
Unused, avoids the "No return statement in function returning non-void [-Wreturn-type]" warning.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
std::string typeOf(const T &t)
Definition output.hh:43
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320