1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-06-16 06:47:06 +01:00

twist and boundary conditions for free propagator

This commit is contained in:
2019-04-05 10:08:27 +01:00
parent 84940fbdf0
commit 00963a7499
4 changed files with 46 additions and 25 deletions

View File

@ -49,6 +49,7 @@ public:
std::string, source,
std::string, action,
double, mass,
std::string , boundary,
std::string, twist);
};
@ -172,7 +173,12 @@ void TFreeProp<FImpl>::execute(void)
{
HADRONS_ERROR(Size, "number of twist angles does not match number of dimensions");
}
mat.FreePropagator(source,sol,mass,twist);
std::vector<Complex> boundary = strToVec<Complex>(par().boundary);
if(boundary.size() != Nd)
{
HADRONS_ERROR(Size, "number of boundary conditions does not match number of dimensions");
}
mat.FreePropagator(source,sol,mass,boundary,twist);
FermToProp<FImpl>(prop, sol, s, c);
// create 4D propagators from 5D one if necessary
if (Ls_ > 1)