Skip to content
Snippets Groups Projects
Commit e57b5dc4 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Correct buffer size

parent ceb384b1
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,8 @@ def _realize_sum_factorization_kernel(sf): ...@@ -87,7 +87,8 @@ def _realize_sum_factorization_kernel(sf):
for buf in buffers: for buf in buffers:
# Determine the necessary size of the buffer. We assume that we do not # Determine the necessary size of the buffer. We assume that we do not
# underintegrate the form!!! # underintegrate the form!!!
size = product(m.quadrature_size for m in sf.matrix_sequence) * sf.vector_width size = max(product(m.quadrature_size for m in sf.matrix_sequence) * sf.vector_width,
product(m.basis_size for m in sf.matrix_sequence) * sf.vector_width)
temporary_variable("{}_dummy".format(buf), temporary_variable("{}_dummy".format(buf),
shape=(size,), shape=(size,),
custom_base_storage=buf, custom_base_storage=buf,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment