From 37b6b82869f9b1a86fae5c3e592076a56e91a841 Mon Sep 17 00:00:00 2001 From: Julian Lenz Date: Sun, 18 Dec 2022 16:12:56 +0000 Subject: [PATCH] Fix file extensions --- Grid/qcd/utils/GaugeGroup.h | 6 +++--- Grid/qcd/utils/{SUn.h => SUn.impl} | 3 +++ Grid/qcd/utils/{Sp2n.h => Sp2n.impl} | 10 ++++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) rename Grid/qcd/utils/{SUn.h => SUn.impl} (99%) rename Grid/qcd/utils/{Sp2n.h => Sp2n.impl} (96%) diff --git a/Grid/qcd/utils/GaugeGroup.h b/Grid/qcd/utils/GaugeGroup.h index dc2c99c1..ecd92780 100644 --- a/Grid/qcd/utils/GaugeGroup.h +++ b/Grid/qcd/utils/GaugeGroup.h @@ -2,7 +2,7 @@ Grid physics library, www.github.com/paboyle/Grid -Source file: ./lib/qcd/utils/SUn.h +Source file: ./lib/qcd/utils/GaugeGroup.h Copyright (C) 2015 @@ -145,8 +145,8 @@ class GaugeGroup { typedef Lattice LatticeSU2MatrixF; typedef Lattice LatticeSU2MatrixD; -#include "Grid/qcd/utils/SUn.h" -#include "Grid/qcd/utils/Sp2n.h" +#include "Grid/qcd/utils/SUn.impl" +#include "Grid/qcd/utils/Sp2n.impl" public: template diff --git a/Grid/qcd/utils/SUn.h b/Grid/qcd/utils/SUn.impl similarity index 99% rename from Grid/qcd/utils/SUn.h rename to Grid/qcd/utils/SUn.impl index 61b19fbc..eaf82877 100644 --- a/Grid/qcd/utils/SUn.h +++ b/Grid/qcd/utils/SUn.impl @@ -5,6 +5,9 @@ // class GaugeGroup { // // around it. +// +// Please note that the unconventional file extension makes sure that it +// doesn't get found by the scripts/filelist during bootstrapping. private: static int su2subgroups(GroupName::SU) { return (ncolour * (ncolour - 1)) / 2; } diff --git a/Grid/qcd/utils/Sp2n.h b/Grid/qcd/utils/Sp2n.impl similarity index 96% rename from Grid/qcd/utils/Sp2n.h rename to Grid/qcd/utils/Sp2n.impl index 6d559c0a..c8ed2ddc 100644 --- a/Grid/qcd/utils/Sp2n.h +++ b/Grid/qcd/utils/Sp2n.impl @@ -1,3 +1,13 @@ +// This file is #included into the body of the class template definition of +// GaugeGroup. So, image there to be +// +// template +// class GaugeGroup { +// +// around it. +// +// Please note that the unconventional file extension makes sure that it +// doesn't get found by the scripts/filelist during bootstrapping. private: static int su2subgroups(GroupName::Sp) { return (ncolour/2 * (ncolour/2 - 1)) / 2; }