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

Rename module ScalarFV to ScalarVP

This commit is contained in:
James Harrison 2017-03-27 15:02:16 +01:00
parent 483fd3cfa1
commit 4512dbdf58
4 changed files with 29 additions and 26 deletions

View File

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

View File

@ -1,31 +1,32 @@
#include <Grid/Hadrons/Modules/MScalar/ScalarFV.hpp> #include <Grid/Hadrons/Modules/MScalar/ScalarVP.hpp>
using namespace Grid; using namespace Grid;
using namespace Hadrons; using namespace Hadrons;
using namespace MScalar; using namespace MScalar;
/****************************************************************************** /******************************************************************************
* TScalarFV implementation * * TScalarVP implementation *
******************************************************************************/ ******************************************************************************/
// constructor ///////////////////////////////////////////////////////////////// // constructor /////////////////////////////////////////////////////////////////
TScalarFV::TScalarFV(const std::string name) TScalarVP::TScalarVP(const std::string name)
: Module<ScalarFVPar>(name) : Module<ScalarVPPar>(name)
{} {}
// dependencies/products /////////////////////////////////////////////////////// // dependencies/products ///////////////////////////////////////////////////////
std::vector<std::string> TScalarFV::getInput(void) std::vector<std::string> TScalarVP::getInput(void)
{ {
std::string prop0Name = par().scalarProp + "_0"; prop0Name_ = par().scalarProp + "_0";
std::string propD1Name = par().scalarProp + "_D1"; propD1Name_ = par().scalarProp + "_D1";
std::string propD1D1Name = par().scalarProp + "_D1D1"; propD1D1Name_ = par().scalarProp + "_D1D1";
std::string propD2Name = par().scalarProp + "_D2"; propD2Name_ = par().scalarProp + "_D2";
std::vector<std::string> in = {par().source, par().emField, par().scalarProp, std::vector<std::string> in = {par().source, par().emField, par().scalarProp,
prop0Name, propD1Name, propD1D1Name, propD2Name}; prop0Name_, propD1Name_, propD1D1Name_,
propD2Name_};
return in; return in;
} }
std::vector<std::string> TScalarFV::getOutput(void) std::vector<std::string> TScalarVP::getOutput(void)
{ {
std::vector<std::string> out = {getName()}; std::vector<std::string> out = {getName()};
@ -33,13 +34,13 @@ std::vector<std::string> TScalarFV::getOutput(void)
} }
// setup /////////////////////////////////////////////////////////////////////// // setup ///////////////////////////////////////////////////////////////////////
void TScalarFV::setup(void) void TScalarVP::setup(void)
{ {
} }
// execution /////////////////////////////////////////////////////////////////// // execution ///////////////////////////////////////////////////////////////////
void TScalarFV::execute(void) void TScalarVP::execute(void)
{ {
} }

View File

@ -1,5 +1,5 @@
#ifndef Hadrons_ScalarFV_hpp_ #ifndef Hadrons_ScalarVP_hpp_
#define Hadrons_ScalarFV_hpp_ #define Hadrons_ScalarVP_hpp_
#include <Grid/Hadrons/Global.hpp> #include <Grid/Hadrons/Global.hpp>
#include <Grid/Hadrons/Module.hpp> #include <Grid/Hadrons/Module.hpp>
@ -8,14 +8,14 @@
BEGIN_HADRONS_NAMESPACE BEGIN_HADRONS_NAMESPACE
/****************************************************************************** /******************************************************************************
* ScalarFV * * ScalarVP *
******************************************************************************/ ******************************************************************************/
BEGIN_MODULE_NAMESPACE(MScalar) BEGIN_MODULE_NAMESPACE(MScalar)
class ScalarFVPar: Serializable class ScalarVPPar: Serializable
{ {
public: public:
GRID_SERIALIZABLE_CLASS_MEMBERS(ScalarFVPar, GRID_SERIALIZABLE_CLASS_MEMBERS(ScalarVPPar,
std::string, emField, std::string, emField,
std::string, source, std::string, source,
std::string, scalarProp, std::string, scalarProp,
@ -23,7 +23,7 @@ public:
std::string, output); std::string, output);
}; };
class TScalarFV: public Module<ScalarFVPar> class TScalarVP: public Module<ScalarVPPar>
{ {
public: public:
SCALAR_TYPE_ALIASES(SIMPL,); SCALAR_TYPE_ALIASES(SIMPL,);
@ -31,9 +31,9 @@ public:
typedef PhotonR::GaugeLinkField EmComp; typedef PhotonR::GaugeLinkField EmComp;
public: public:
// constructor // constructor
TScalarFV(const std::string name); TScalarVP(const std::string name);
// destructor // destructor
virtual ~TScalarFV(void) = default; virtual ~TScalarVP(void) = default;
// dependency relation // dependency relation
virtual std::vector<std::string> getInput(void); virtual std::vector<std::string> getInput(void);
virtual std::vector<std::string> getOutput(void); virtual std::vector<std::string> getOutput(void);
@ -41,12 +41,14 @@ public:
virtual void setup(void); virtual void setup(void);
// execution // execution
virtual void execute(void); virtual void execute(void);
private:
std::string prop0Name_, propD1Name_, propD1D1Name_, propD2Name_;
}; };
MODULE_REGISTER_NS(ScalarFV, TScalarFV, MScalar); MODULE_REGISTER_NS(ScalarVP, TScalarVP, MScalar);
END_MODULE_NAMESPACE END_MODULE_NAMESPACE
END_HADRONS_NAMESPACE END_HADRONS_NAMESPACE
#endif // Hadrons_ScalarFV_hpp_ #endif // Hadrons_ScalarVP_hpp_

View File

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