From 1627446b35f88b4a2fe20b16f23e28e959809020 Mon Sep 17 00:00:00 2001 From: Martin Bauer <martin.bauer@fau.de> Date: Mon, 5 Nov 2018 16:55:14 +0100 Subject: [PATCH] Worked on waLBerla boundary sweeps generation --- boundaries/boundaryhandling.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boundaries/boundaryhandling.py b/boundaries/boundaryhandling.py index 722984da..7d52c8a1 100644 --- a/boundaries/boundaryhandling.py +++ b/boundaries/boundaryhandling.py @@ -90,7 +90,8 @@ class LbmWeightInfo(CustomCppCode): def __init__(self, lb_method): weights = [str(w.evalf()) for w in lb_method.weights] - code = "const double %s [] = { %s };\n" % (LbmWeightInfo.WEIGHTS_SYMBOL.name, ",".join(weights)) + code = "const double __attribute__((unused)) %s [] = { %s };\n" % ( + LbmWeightInfo.WEIGHTS_SYMBOL.name, ",".join(weights)) super(LbmWeightInfo, self).__init__(code, symbols_read=set(), symbols_defined={LbmWeightInfo.WEIGHTS_SYMBOL}) -- GitLab