Skip to content
Snippets Groups Projects
Commit 1627446b authored by Martin Bauer's avatar Martin Bauer
Browse files

Worked on waLBerla boundary sweeps generation

parent cf82305e
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,8 @@ class LbmWeightInfo(CustomCppCode): ...@@ -90,7 +90,8 @@ class LbmWeightInfo(CustomCppCode):
def __init__(self, lb_method): def __init__(self, lb_method):
weights = [str(w.evalf()) for w in lb_method.weights] 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(), super(LbmWeightInfo, self).__init__(code, symbols_read=set(),
symbols_defined={LbmWeightInfo.WEIGHTS_SYMBOL}) symbols_defined={LbmWeightInfo.WEIGHTS_SYMBOL})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment