Skip to content

Commit

Permalink
Fixed code generation bug in case there are no tolerance fields (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
muellch authored Apr 12, 2023
1 parent 3c01d37 commit 9ca50dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyutils/src/icon4py/icon4pygen/bindings/codegen/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@
{%- for field in _this_node.out_fields -%}
{{ field.renderer.render_ctype('c++') }} {{ field.renderer.render_pointer() }} {{ field.name }}_{{ suffix }},
{%- endfor -%}
{%- if _this_node.tol_fields -%}
const int verticalStart, const int verticalEnd, const int horizontalStart, const int horizontalEnd,
{%- else -%}
const int verticalStart, const int verticalEnd, const int horizontalStart, const int horizontalEnd
{%- endif -%}
{%- for field in _this_node.tol_fields -%}
const double {{ field.name }}_rel_tol,
const double {{ field.name }}_abs_tol
Expand Down

0 comments on commit 9ca50dd

Please sign in to comment.