Skip to content
Snippets Groups Projects
Commit 14d51c9f authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Some whitespace control in templates

parent 9494b949
No related branches found
No related tags found
No related merge requests found
......@@ -157,10 +157,10 @@ class FieldAllocation(JinjaCppFile):
TEMPLATE = jinja2.Template("""BlockDataID {{ field_name }}_data = field::addToStorage<{{ field_type }}>( {{ block_forrest }},
{{ field_name }}
{%- if init_value %} , {{ init_value }} {% endif %}
{%- if layout_str %} , {{ layout_str }} {% endif %}
{%- if num_ghost_layers %}, {{ num_ghost_layers }} {% endif %}
{%- if always_initialize %}, {{ always_initialize }} {% endif %})
{%- if init_value -%} , {{ init_value }} {% endif %}
{%- if layout_str -%} , {{ layout_str }} {% endif %}
{%- if num_ghost_layers -%}, {{ num_ghost_layers }} {% endif %}
{%- if always_initialize -%}, {{ always_initialize }} {% endif %})
""") # noqa
def __init__(self, block_forrest, field):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment