1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 15:55:37 +00:00
Grid/extras/Hadrons/Modules/MScalar/ScalarFV.hpp

45 lines
1.1 KiB
C++
Raw Normal View History

2017-03-21 11:39:46 +00:00
#ifndef Hadrons_ScalarFV_hpp_
#define Hadrons_ScalarFV_hpp_
#include <Grid/Hadrons/Global.hpp>
#include <Grid/Hadrons/Module.hpp>
#include <Grid/Hadrons/ModuleFactory.hpp>
BEGIN_HADRONS_NAMESPACE
/******************************************************************************
* ScalarFV *
******************************************************************************/
BEGIN_MODULE_NAMESPACE(MScalar)
class ScalarFVPar: Serializable
{
public:
GRID_SERIALIZABLE_CLASS_MEMBERS(ScalarFVPar,
unsigned int, i);
};
class TScalarFV: public Module<ScalarFVPar>
{
public:
// constructor
TScalarFV(const std::string name);
// destructor
virtual ~TScalarFV(void) = default;
// dependency relation
virtual std::vector<std::string> getInput(void);
virtual std::vector<std::string> getOutput(void);
// setup
virtual void setup(void);
// execution
virtual void execute(void);
};
MODULE_REGISTER_NS(ScalarFV, TScalarFV, MScalar);
END_MODULE_NAMESPACE
END_HADRONS_NAMESPACE
#endif // Hadrons_ScalarFV_hpp_