1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

Added empty ScalarFV module

This commit is contained in:
James Harrison 2017-03-21 11:39:46 +00:00
parent ee93f0218b
commit ef0fe2bcc1
4 changed files with 88 additions and 1 deletions

View File

@ -9,6 +9,7 @@
#include <Grid/Hadrons/Modules/MScalar/ChargedProp.hpp>
#include <Grid/Hadrons/Modules/MScalar/FreeProp.hpp>
#include <Grid/Hadrons/Modules/MScalar/Scalar.hpp>
#include <Grid/Hadrons/Modules/MScalar/ScalarFV.hpp>
#include <Grid/Hadrons/Modules/MSolver/RBPrecCG.hpp>
#include <Grid/Hadrons/Modules/MSource/Point.hpp>
#include <Grid/Hadrons/Modules/MSource/SeqGamma.hpp>

View File

@ -0,0 +1,40 @@
#include <Grid/Hadrons/Modules/MScalar/ScalarFV.hpp>
using namespace Grid;
using namespace Hadrons;
using namespace MScalar;
/******************************************************************************
* TScalarFV implementation *
******************************************************************************/
// constructor /////////////////////////////////////////////////////////////////
TScalarFV::TScalarFV(const std::string name)
: Module<ScalarFVPar>(name)
{}
// dependencies/products ///////////////////////////////////////////////////////
std::vector<std::string> TScalarFV::getInput(void)
{
std::vector<std::string> in;
return in;
}
std::vector<std::string> TScalarFV::getOutput(void)
{
std::vector<std::string> out = {getName()};
return out;
}
// setup ///////////////////////////////////////////////////////////////////////
void TScalarFV::setup(void)
{
}
// execution ///////////////////////////////////////////////////////////////////
void TScalarFV::execute(void)
{
}

View File

@ -0,0 +1,44 @@
#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_

View File

@ -4,7 +4,8 @@ modules_cc =\
Modules/MGauge/StochEm.cc \
Modules/MGauge/Unit.cc \
Modules/MScalar/ChargedProp.cc \
Modules/MScalar/FreeProp.cc
Modules/MScalar/FreeProp.cc \
Modules/MScalar/ScalarFV.cc
modules_hpp =\
Modules/MAction/DWF.hpp \
@ -18,6 +19,7 @@ modules_hpp =\
Modules/MScalar/ChargedProp.hpp \
Modules/MScalar/FreeProp.hpp \
Modules/MScalar/Scalar.hpp \
Modules/MScalar/ScalarFV.hpp \
Modules/MSolver/RBPrecCG.hpp \
Modules/MSource/Point.hpp \
Modules/MSource/SeqGamma.hpp \