mirror of
https://github.com/paboyle/Grid.git
synced 2024-11-15 02:05:37 +00:00
f8e1941327
1) virtual functions not available in base class constructor where I'd like to use them - e.g. IndexNames 2) Must define new constructors in derived classes ... so the specialisations are fatter than I'd like. Would prefer to revert to specifying tensor name and index name defaults in template
58 lines
2.0 KiB
C++
58 lines
2.0 KiB
C++
/*************************************************************************************
|
|
|
|
Grid physics library, www.github.com/paboyle/Grid
|
|
|
|
Source file: Hadrons/Modules/MDistil/Perambulator.cc
|
|
|
|
Copyright (C) 2019
|
|
|
|
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 */
|
|
|
|
#include <Hadrons/Modules/MDistil/Perambulator.hpp>
|
|
|
|
using namespace Grid;
|
|
using namespace Hadrons;
|
|
using namespace MDistil;
|
|
|
|
template class Grid::Hadrons::MDistil::TPerambulator<FIMPL>;
|
|
|
|
BEGIN_HADRONS_NAMESPACE
|
|
|
|
// Global constants for distillation
|
|
|
|
#ifdef HAVE_HDF5
|
|
extern const std::string NamedTensorFileExtension{".h5"};
|
|
#else
|
|
extern const std::string NamedTensorFileExtension{".dat"};
|
|
#endif
|
|
|
|
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
|