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

Hadrons: contractor token @traj@ for trajectory number in input file

This commit is contained in:
2018-11-19 16:04:01 +00:00
parent f22a27d7f9
commit 5d7cc29eaf
2 changed files with 17 additions and 2 deletions

View File

@ -60,7 +60,7 @@ namespace Contractor
{
public:
GRID_SERIALIZABLE_CLASS_MEMBERS(A2AMatrixPar,
std::string, fileStem,
std::string, file,
std::string, dataset,
unsigned int, cacheSize,
std::string, name);
@ -279,9 +279,10 @@ int main(int argc, char* argv[])
// load data
for (auto &p: par.a2aMatrix)
{
std::string filename = RESULT_FILE_NAME(p.fileStem, traj);
std::string filename = p.file;
double t, size;
tokenReplace(filename, "traj", traj);
std::cout << "======== Loading '" << filename << "'" << std::endl;
A2AMatrixIo<HADRONS_A2AM_IO_TYPE> a2aIo(filename, p.dataset, par.global.nt);