diff options
author | Adrian Kummerlaender | 2019-11-09 00:08:36 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2019-11-09 00:08:36 +0100 |
commit | cb818d5a55361b6aea2af3d6713ff98886c400bc (patch) | |
tree | c75a9a021fbd6f1bf659c8dbe393da42bc4604cf /boltzgen/kernel/template/equilibrilize.cpp.mako | |
parent | d3c24f497f29ba9f26a87c3099f1e46688d0414b (diff) | |
download | boltzgen-cb818d5a55361b6aea2af3d6713ff98886c400bc.tar boltzgen-cb818d5a55361b6aea2af3d6713ff98886c400bc.tar.gz boltzgen-cb818d5a55361b6aea2af3d6713ff98886c400bc.tar.bz2 boltzgen-cb818d5a55361b6aea2af3d6713ff98886c400bc.tar.lz boltzgen-cb818d5a55361b6aea2af3d6713ff98886c400bc.tar.xz boltzgen-cb818d5a55361b6aea2af3d6713ff98886c400bc.tar.zst boltzgen-cb818d5a55361b6aea2af3d6713ff98886c400bc.zip |
Mark equilibrilize, momenta result values as const
Doesn't change the outcome but is more in line how the rest of the
generated code looks like.
Diffstat (limited to 'boltzgen/kernel/template/equilibrilize.cpp.mako')
-rw-r--r-- | boltzgen/kernel/template/equilibrilize.cpp.mako | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boltzgen/kernel/template/equilibrilize.cpp.mako b/boltzgen/kernel/template/equilibrilize.cpp.mako index 74a6aa1..e10eb6c 100644 --- a/boltzgen/kernel/template/equilibrilize.cpp.mako +++ b/boltzgen/kernel/template/equilibrilize.cpp.mako @@ -2,6 +2,6 @@ <%call expr="pattern.operator('equilibrilize')"> % for i, w_i in enumerate(descriptor.w): - ${float_type} f_next_${i} = ${w_i.evalf()}; + const ${float_type} f_next_${i} = ${w_i.evalf()}; % endfor </%call> |