1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-11 06:30:45 +01:00

Namespace

This commit is contained in:
paboyle 2018-01-14 22:19:25 +00:00
parent df29cc19ab
commit 56e87d6e55

View File

@ -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
directory
*************************************************************************************/
/* END LEGAL */
/* END LEGAL */
#ifndef SOLVER_MODULES_H
#define SOLVER_MODULES_H
namespace Grid {
NAMESPACE_BEGIN(Grid);
//////////////////////////////////////////////
// Operator Functions (Solvers)
@ -39,7 +39,7 @@ template <template <typename> class SolverType, class Field, class SPar>
class SolverModule
: public Parametrized<SPar>,
public HMCModuleBase<OperatorFunction<Field> > {
public:
public:
typedef HMCModuleBase< OperatorFunction<Field> > Base;
typedef typename Base::Product Product;
@ -60,7 +60,7 @@ class SolverModule
return SolverPtr.get();
}
private:
private:
virtual void initialize() = 0;
};
@ -69,7 +69,7 @@ class SolverModule
template <char const *str, class Field, class ReaderClass >
class HMC_SolverModuleFactory
: public Factory < HMCModuleBase<OperatorFunction<Field> > , Reader<ReaderClass> > {
public:
public:
// use SINGLETON FUNCTOR MACRO HERE
typedef Reader<ReaderClass> TheReader;
@ -80,7 +80,7 @@ class HMC_SolverModuleFactory
return e;
}
private:
private:
HMC_SolverModuleFactory(void) = default;
std::string obj_type() const {
return std::string(str);
@ -90,7 +90,7 @@ class HMC_SolverModuleFactory
class SolverParameters : Serializable {
public:
public:
GRID_SERIALIZABLE_CLASS_MEMBERS(SolverParameters,
RealD, tolerance,
RealD, max_iterations);
@ -132,7 +132,7 @@ class ConjugateResidualModule: public SolverModule<ConjugateResidual, Field, Sol
};
extern char solver_string[];
} // Grid
NAMESPACE_END(Grid);
#endif //SOLVER_MODULES_H