Class documentation of Concepts

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