Skip to content
Snippets Groups Projects
Commit 5cecb2d0 authored by Michael Zikeli's avatar Michael Zikeli
Browse files

Merge branch 'zikelim/Issue40' into 'main'

Fix Issue 40

Closes #40

See merge request !30
parents caefe09b eabcd562
No related branches found
No related tags found
1 merge request!30Fix Issue 40
Pipeline #68755 passed with warnings
...@@ -1018,9 +1018,9 @@ class HyTeGElementwiseOperator: ...@@ -1018,9 +1018,9 @@ class HyTeGElementwiseOperator:
"_data_" "_data_"
+ self.symbolizer.float_loop_ctr_array(geometry.dimensions)[d].name + self.symbolizer.float_loop_ctr_array(geometry.dimensions)[d].name
) )
custom_code += f"real_t {array_name}[{float_ctr_array_size}];\n" custom_code += f"{str(self._type_descriptor.pystencils_type)} {array_name}[{float_ctr_array_size}];\n"
for i in range(float_ctr_array_size): for i in range(float_ctr_array_size):
custom_code += f"{array_name}[{i}] = (real_t) ctr_{d}" custom_code += f"{array_name}[{i}] = ({str(self._type_descriptor.pystencils_type)}) ctr_{d}"
if d == 0: if d == 0:
# We only vectorize the innermost loop. # We only vectorize the innermost loop.
# Only that counter is increased. The others are constant. # Only that counter is increased. The others are constant.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment