1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-04 19:25:56 +01:00

ClangFormat

This commit is contained in:
Julian Lenz 2023-06-16 15:58:23 +01:00
parent c95bbd3948
commit 8c3792721b

View File

@ -2,52 +2,54 @@
using namespace Grid; using namespace Grid;
template<int ncolour> template <int ncolour>
void run_checks(bool print_generators = 0) { void run_checks(bool print_generators = 0) {
std::cout << GridLogMessage << "*********************************************" std::cout << GridLogMessage << "*********************************************"
<< std::endl; << std::endl;
std::cout << GridLogMessage << "* Generators for Sp(" << ncolour << ")" << "Fundamental" << std::endl; std::cout << GridLogMessage << "* Generators for Sp(" << ncolour << ")"
std::cout << GridLogMessage << "*********************************************" << "Fundamental" << std::endl;
<< std::endl; std::cout << GridLogMessage << "*********************************************"
<< std::endl;
if (print_generators)
{ if (print_generators) {
Sp<ncolour>::printGenerators(); Sp<ncolour>::printGenerators();
}
Sp<ncolour>::testGenerators();
if (Sp_TwoIndex<ncolour, Symmetric>::Dimension > 1) {
std::cout << GridLogMessage
<< "*********************************************" << std::endl;
std::cout << GridLogMessage << "* Generators for Sp(" << ncolour << ")"
<< "TwoIndex Symmetric: " << std::endl;
std::cout << GridLogMessage
<< "*********************************************" << std::endl;
if (print_generators) {
Sp_TwoIndex<ncolour, Symmetric>::printGenerators();
} }
Sp<ncolour>::testGenerators(); Sp_TwoIndex<ncolour, Symmetric>::testGenerators();
}
if (Sp_TwoIndex<ncolour, Symmetric>::Dimension > 1) {
std::cout << GridLogMessage << "*********************************************" if (Sp_TwoIndex<ncolour, AntiSymmetric>::Dimension > 1) {
<< std::endl; std::cout << GridLogMessage
std::cout << GridLogMessage << "* Generators for Sp(" << ncolour << ")" << "TwoIndex Symmetric: " << std::endl; << "*********************************************" << std::endl;
std::cout << GridLogMessage << "*********************************************" std::cout << GridLogMessage << "* Generators for Sp(" << ncolour << ")"
<< std::endl; << "TwoIndex AntiSymmetric: " << std::endl;
if (print_generators) { std::cout << GridLogMessage
Sp_TwoIndex<ncolour, Symmetric>::printGenerators(); << "*********************************************" << std::endl;
} if (print_generators) {
Sp_TwoIndex<ncolour, Symmetric>::testGenerators(); Sp_TwoIndex<ncolour, AntiSymmetric>::printGenerators();
}
if (Sp_TwoIndex<ncolour, AntiSymmetric>::Dimension > 1) {
std::cout << GridLogMessage << "*********************************************"
<< std::endl;
std::cout << GridLogMessage << "* Generators for Sp(" << ncolour << ")" << "TwoIndex AntiSymmetric: " << std::endl;
std::cout << GridLogMessage << "*********************************************"
<< std::endl;
if (print_generators) {
Sp_TwoIndex<ncolour, AntiSymmetric>::printGenerators();
}
Sp_TwoIndex<ncolour, AntiSymmetric>::testGenerators();
} }
Sp_TwoIndex<ncolour, AntiSymmetric>::testGenerators();
}
} }
int main(int argc, char** argv) { int main(int argc, char** argv) {
Grid_init(&argc, &argv); Grid_init(&argc, &argv);
run_checks<2>(1); // check and print Nc=2 run_checks<2>(1); // check and print Nc=2
run_checks<4>(1); // check and print Nc=4 run_checks<4>(1); // check and print Nc=4
run_checks<6>(); // check Nc=6 run_checks<6>(); // check Nc=6
run_checks<8>(); // check Nc=8 run_checks<8>(); // check Nc=8
Grid_finalize(); Grid_finalize();
} }