10.12., 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 66ef57c0 authored by Jean-Matthieu Gallard's avatar Jean-Matthieu Gallard

Fix indentfirst to first (see Jinja2 2.11 doc)

parent 3139b1fb
......@@ -36,6 +36,8 @@ sys.path.insert(1, Configuration.pathToMarkupsafe)
import jinja2
#print(jinja2.__version__) #debug
class AbstractModelBaseClass():
"""Base class of a Models
......
......@@ -138,7 +138,7 @@ int {{codeNamespace}}::fusedSpaceTimePredictorVolumeIntegral(
// K1
{% with inputLuh='luh', outputKi='K1', inputLuh_dataSize=nData %}
{% filter indent(width=2, indentfirst=True) %}{% include 'subtemplates/RK_loop.template' %}{% endfilter %}
{% filter indent(width=2, first=True) %}{% include 'subtemplates/RK_loop.template' %}{% endfilter %}
{% endwith %}
// K2
......@@ -153,7 +153,7 @@ int {{codeNamespace}}::fusedSpaceTimePredictorVolumeIntegral(
{% endif %}
}
{% with inputLuh='lwh', outputKi='K2', inputLuh_dataSize=nData %}
{% filter indent(width=2, indentfirst=True) %}{% include 'subtemplates/RK_loop.template' %}{% endfilter %}
{% filter indent(width=2, first=True) %}{% include 'subtemplates/RK_loop.template' %}{% endfilter %}
{% endwith %}
// Set initial guess using CERK
......@@ -236,7 +236,7 @@ int {{codeNamespace}}::fusedSpaceTimePredictorVolumeIntegral(
**** call to flux function over lQi into lFi ****
************************************************* #}
{% with inputQ='lQi', inputQ_dataSize=nDataPad, outputF='lFi', timeInterleaved=False, time_var='t' %}
{% filter indent(width=6, indentfirst=True) %}{% include 'subtemplates/flux_PDE_over_xyz.template' %}{% endfilter %}
{% filter indent(width=6, first=True) %}{% include 'subtemplates/flux_PDE_over_xyz.template' %}{% endfilter %}
{% endwith %}
{% endif %}{# useFlux #}
......@@ -284,7 +284,7 @@ int {{codeNamespace}}::fusedSpaceTimePredictorVolumeIntegral(
**** call to Source and NCP (or FusedSource) functions ****
*********************************************************** #}
{% with time_var='t', inputQ='lQi', output='rhs', inputQ_dataSize=nDataPad, timeInterleaved=False %}
{% filter indent(width=6, indentfirst=True) %}{% include 'subtemplates/source_ncp_PDE_over_xyz.template' %}{% endfilter %}
{% filter indent(width=6, first=True) %}{% include 'subtemplates/source_ncp_PDE_over_xyz.template' %}{% endfilter %}
{% endwith %}
{% endif %}
......
......@@ -15,7 +15,7 @@
**** call to flux function over {{inputLuh}} into lF_guess ****
******************************************************/ #}
{% with inputQ=inputLuh, inputQ_dataSize=nData, outputF='lF_guess', timeInterleaved=False, time_var='0' %}
{% filter indent(width=2, indentfirst=True) %}{% include 'subtemplates/flux_PDE_over_xyz.template' %}{% endfilter %}
{% filter indent(width=2, first=True) %}{% include 'subtemplates/flux_PDE_over_xyz.template' %}{% endfilter %}
{% endwith %}
// x direction
......@@ -67,7 +67,7 @@
**** call to Source and NCP (or FusedSource) functions ****
***********************************************************/ #}
{% with time_var='0', inputQ=inputLuh, output=outputKi, writeSource=False, multiplyByWeights=False, substractToOutput=True, inputQ_dataSize=inputLuh_dataSize, timeInterleaved=False %}
{% filter indent(width=4, indentfirst=True) %}{% include 'subtemplates/source_ncp_PDE_over_xyz.template' %}{% endfilter %}
{% filter indent(width=4, first=True) %}{% include 'subtemplates/source_ncp_PDE_over_xyz.template' %}{% endfilter %}
{% endwith %}
}
{% endif %}
\ No newline at end of file
Markdown is supported
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