mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-10 15:55:37 +00:00
Namespace
This commit is contained in:
parent
df29cc19ab
commit
56e87d6e55
@ -25,11 +25,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
See the full license in the file "LICENSE" in the top level distribution
|
See the full license in the file "LICENSE" in the top level distribution
|
||||||
directory
|
directory
|
||||||
*************************************************************************************/
|
*************************************************************************************/
|
||||||
/* END LEGAL */
|
/* END LEGAL */
|
||||||
#ifndef SOLVER_MODULES_H
|
#ifndef SOLVER_MODULES_H
|
||||||
#define SOLVER_MODULES_H
|
#define SOLVER_MODULES_H
|
||||||
|
|
||||||
namespace Grid {
|
NAMESPACE_BEGIN(Grid);
|
||||||
|
|
||||||
//////////////////////////////////////////////
|
//////////////////////////////////////////////
|
||||||
// Operator Functions (Solvers)
|
// Operator Functions (Solvers)
|
||||||
@ -39,7 +39,7 @@ template <template <typename> class SolverType, class Field, class SPar>
|
|||||||
class SolverModule
|
class SolverModule
|
||||||
: public Parametrized<SPar>,
|
: public Parametrized<SPar>,
|
||||||
public HMCModuleBase<OperatorFunction<Field> > {
|
public HMCModuleBase<OperatorFunction<Field> > {
|
||||||
public:
|
public:
|
||||||
typedef HMCModuleBase< OperatorFunction<Field> > Base;
|
typedef HMCModuleBase< OperatorFunction<Field> > Base;
|
||||||
typedef typename Base::Product Product;
|
typedef typename Base::Product Product;
|
||||||
|
|
||||||
@ -60,7 +60,7 @@ class SolverModule
|
|||||||
return SolverPtr.get();
|
return SolverPtr.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void initialize() = 0;
|
virtual void initialize() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -69,7 +69,7 @@ class SolverModule
|
|||||||
template <char const *str, class Field, class ReaderClass >
|
template <char const *str, class Field, class ReaderClass >
|
||||||
class HMC_SolverModuleFactory
|
class HMC_SolverModuleFactory
|
||||||
: public Factory < HMCModuleBase<OperatorFunction<Field> > , Reader<ReaderClass> > {
|
: public Factory < HMCModuleBase<OperatorFunction<Field> > , Reader<ReaderClass> > {
|
||||||
public:
|
public:
|
||||||
// use SINGLETON FUNCTOR MACRO HERE
|
// use SINGLETON FUNCTOR MACRO HERE
|
||||||
typedef Reader<ReaderClass> TheReader;
|
typedef Reader<ReaderClass> TheReader;
|
||||||
|
|
||||||
@ -80,7 +80,7 @@ class HMC_SolverModuleFactory
|
|||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
HMC_SolverModuleFactory(void) = default;
|
HMC_SolverModuleFactory(void) = default;
|
||||||
std::string obj_type() const {
|
std::string obj_type() const {
|
||||||
return std::string(str);
|
return std::string(str);
|
||||||
@ -90,7 +90,7 @@ class HMC_SolverModuleFactory
|
|||||||
|
|
||||||
|
|
||||||
class SolverParameters : Serializable {
|
class SolverParameters : Serializable {
|
||||||
public:
|
public:
|
||||||
GRID_SERIALIZABLE_CLASS_MEMBERS(SolverParameters,
|
GRID_SERIALIZABLE_CLASS_MEMBERS(SolverParameters,
|
||||||
RealD, tolerance,
|
RealD, tolerance,
|
||||||
RealD, max_iterations);
|
RealD, max_iterations);
|
||||||
@ -132,7 +132,7 @@ class ConjugateResidualModule: public SolverModule<ConjugateResidual, Field, Sol
|
|||||||
};
|
};
|
||||||
|
|
||||||
extern char solver_string[];
|
extern char solver_string[];
|
||||||
} // Grid
|
|
||||||
|
|
||||||
|
NAMESPACE_END(Grid);
|
||||||
|
|
||||||
#endif //SOLVER_MODULES_H
|
#endif //SOLVER_MODULES_H
|
Loading…
Reference in New Issue
Block a user