2019-04-26 07:24:56 +01:00
|
|
|
/*************************************************************************************
|
|
|
|
|
|
|
|
Grid physics library, www.github.com/paboyle/Grid
|
|
|
|
|
2019-04-26 08:23:15 +01:00
|
|
|
Source file: Hadrons/Modules/MDistil/Perambulator.cc
|
2019-04-26 07:24:56 +01:00
|
|
|
|
2019-04-26 07:39:05 +01:00
|
|
|
Copyright (C) 2019
|
2019-04-26 07:24:56 +01:00
|
|
|
|
|
|
|
Author: Felix Erben <ferben@ed.ac.uk>
|
|
|
|
Author: Michael Marshall <Michael.Marshall@ed.ac.uk>
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License along
|
|
|
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
|
|
|
|
See the full license in the file "LICENSE" in the top level distribution directory
|
|
|
|
*************************************************************************************/
|
|
|
|
/* END LEGAL */
|
|
|
|
|
2019-04-26 08:23:15 +01:00
|
|
|
#include <Hadrons/Modules/MDistil/Perambulator.hpp>
|
2019-01-18 13:14:28 +00:00
|
|
|
|
|
|
|
using namespace Grid;
|
|
|
|
using namespace Hadrons;
|
|
|
|
using namespace MDistil;
|
|
|
|
|
2019-04-26 08:23:15 +01:00
|
|
|
template class Grid::Hadrons::MDistil::TPerambulator<FIMPL>;
|
2019-11-02 14:58:32 +00:00
|
|
|
|
2019-11-08 11:55:00 +00:00
|
|
|
BEGIN_HADRONS_NAMESPACE
|
2019-11-02 14:58:32 +00:00
|
|
|
|
2019-11-08 11:55:00 +00:00
|
|
|
// Global constants for distillation
|
2019-11-02 14:58:32 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_HDF5
|
2019-11-08 11:55:00 +00:00
|
|
|
extern const std::string NamedTensorFileExtension{".h5"};
|
2019-11-02 14:58:32 +00:00
|
|
|
#else
|
2019-11-08 11:55:00 +00:00
|
|
|
extern const std::string NamedTensorFileExtension{".dat"};
|
2019-11-02 14:58:32 +00:00
|
|
|
#endif
|
2019-11-08 11:55:00 +00:00
|
|
|
|
|
|
|
BEGIN_MODULE_NAMESPACE(MDistil)
|
|
|
|
|
|
|
|
const std::string NoiseTensor::Name_{"Noises"};
|
|
|
|
const std::vector<std::string> NoiseTensor::DefaultIndexNames_{"nNoise", "nT", "nVec", "nS"};
|
|
|
|
|
|
|
|
const std::string PerambTensor::Name_{"Perambulator"};
|
|
|
|
const std::vector<std::string> PerambTensor::DefaultIndexNames_{"nT", "nVec", "LI", "nNoise", "nT_inv", "SI"};
|
|
|
|
|
|
|
|
END_MODULE_NAMESPACE
|
|
|
|
END_HADRONS_NAMESPACE
|