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
1 merge request!30Fix Issue 40
Pipeline #68755 passed with warnings with stages
in 40 minutes and 31 seconds
......@@ -1018,9 +1018,9 @@ class HyTeGElementwiseOperator:
"_data_"
+ 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):
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:
# We only vectorize the innermost loop.
# Only that counter is increased. The others are constant.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment