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

Hadrons: introduction message

This commit is contained in:
Antonin Portelli 2018-06-25 19:08:22 +01:00
parent adcef36189
commit 2e1c66897f
2 changed files with 29 additions and 7 deletions

View File

@ -51,9 +51,27 @@ Application::Application(void)
loc[d] /= mpi[d];
locVol_ *= loc[d];
}
LOG(Message) << "Global lattice: " << dim << std::endl;
LOG(Message) << "MPI partition : " << mpi << std::endl;
LOG(Message) << "Local lattice : " << loc << std::endl;
LOG(Message) << "====== HADRONS APPLICATION STARTING ======" << std::endl;
LOG(Message) << "** Dimensions" << std::endl;
LOG(Message) << "Global lattice : " << dim << std::endl;
LOG(Message) << "MPI partition : " << mpi << std::endl;
LOG(Message) << "Local lattice : " << loc << std::endl;
LOG(Message) << std::endl;
LOG(Message) << "** Default parameters (associated C macro)" << std::endl;
LOG(Message) << "ASCII output precision (DEFAULT_ASCII_PREC) : "
<< DEFAULT_ASCII_PREC << std::endl;
LOG(Message) << "Fermion implementation (FIMPL) : "
<< HADRONS_STR(FIMPL) << std::endl;
LOG(Message) << "Fermion complex implementation (ZFIMPL) : "
<< HADRONS_STR(ZFIMPL) << std::endl;
LOG(Message) << "Scalar implementation (SIMPL) : "
<< HADRONS_STR(SIMPL) << std::endl;
LOG(Message) << "Gauge implementation (GIMPL) : "
<< HADRONS_STR(GIMPL) << std::endl;
LOG(Message) << "Eigenvector base size (HADRONS_DEFAULT_LANCZOS_NBASIS): "
<< HADRONS_DEFAULT_LANCZOS_NBASIS << std::endl;
LOG(Message) << "Schur decomposition (HADRONS_DEFAULT_SCHUR) : "
<< HADRONS_STR(HADRONS_DEFAULT_SCHUR) << std::endl;
}
Application::Application(const Application::GlobalPar &par)

View File

@ -43,6 +43,10 @@ See the full license in the file "LICENSE" in the top level distribution directo
#define DEFAULT_ASCII_PREC 16
#endif
/* the 'using Grid::operator<<;' statement prevents a very nasty compilation
* error with GCC 5 (clang & GCC 6 compile fine without it).
*/
#define BEGIN_HADRONS_NAMESPACE \
namespace Grid {\
using namespace QCD;\
@ -58,10 +62,6 @@ using Grid::operator>>;
#define END_MODULE_NAMESPACE }
/* the 'using Grid::operator<<;' statement prevents a very nasty compilation
* error with GCC 5 (clang & GCC 6 compile fine without it).
*/
#ifndef FIMPL
#define FIMPL WilsonImplR
#endif
@ -207,6 +207,10 @@ void makeFileDir(const std::string filename, GridBase *g);
#define HADRONS_SCHUR_SOLVE(conv) _HADRONS_SCHUR_SOLVE_(conv)
#define HADRONS_DEFAULT_SCHUR_SOLVE HADRONS_SCHUR_SOLVE(HADRONS_DEFAULT_SCHUR)
// stringify macro
#define _HADRONS_STR(x) #x
#define HADRONS_STR(x) _HADRONS_STR(x)
END_HADRONS_NAMESPACE
#include <Grid/Hadrons/Exceptions.hpp>