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

Removed 'unused' attribute, which does not work on windows

parent e20ebf94
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ class LbmWeightInfo(CustomCppCode):
def __init__(self, lb_method):
weights = [str(w.evalf()) for w in lb_method.weights]
w_sym = LbmWeightInfo.WEIGHTS_SYMBOL
code = "const double __attribute__((unused)) %s [] = { %s };\n" % (w_sym.name, ",".join(weights))
code = "const double %s [] = { %s };\n" % (w_sym.name, ",".join(weights))
super(LbmWeightInfo, self).__init__(code, symbols_read=set(), symbols_defined={w_sym})
......
......@@ -253,7 +253,7 @@ def add_black_and_white_image(boundary_handling, image_file, target_slice=None,
image_target_slice = shift_slice(intersection_slice, [-s.start for s in image_slice])
mask_target_slice = [mask_target_slice[i] if i in plane else slice(None, None) for i in range(dim)]
image_target_slice = [image_target_slice[i] if i in plane else np.newaxis for i in range(dim)]
result[tuple(mask_target_slice)] = zoomed_image[image_target_slice]
result[tuple(mask_target_slice)] = zoomed_image[tuple(image_target_slice)]
return result
return boundary_handling.set_boundary(boundary, slice_obj=image_slice, mask_callback=callback,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment