From 75113e6523bf5a5687c27c826a8b8e892722a84a Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Tue, 24 Apr 2018 19:49:27 +0100 Subject: [PATCH] Hadrons: Scalar SU(N) variable name update --- extras/Hadrons/Modules/MScalarSUN/Utils.hpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extras/Hadrons/Modules/MScalarSUN/Utils.hpp b/extras/Hadrons/Modules/MScalarSUN/Utils.hpp index 1a17282a..b9e49715 100644 --- a/extras/Hadrons/Modules/MScalarSUN/Utils.hpp +++ b/extras/Hadrons/Modules/MScalarSUN/Utils.hpp @@ -89,15 +89,20 @@ inline void dmuAcc(Field &out, const Field &in, const unsigned int mu, const Dif } } +inline std::string varName(const std::string name, const std::string suf) +{ + return name + "_" + suf; +} + inline std::string varName(const std::string name, const unsigned int mu) { - return name + "_" + std::to_string(mu); + return varName(name, std::to_string(mu)); } inline std::string varName(const std::string name, const unsigned int mu, const unsigned int nu) { - return name + "_" + std::to_string(mu) + "_" + std::to_string(nu); + return varName(name, std::to_string(mu) + "_" + std::to_string(nu)); } END_MODULE_NAMESPACE