aboutsummaryrefslogtreecommitdiff
path: root/boltzgen/kernel/template/momenta_boundary.cpp.mako
diff options
context:
space:
mode:
Diffstat (limited to 'boltzgen/kernel/template/momenta_boundary.cpp.mako')
-rw-r--r--boltzgen/kernel/template/momenta_boundary.cpp.mako8
1 files changed, 4 insertions, 4 deletions
diff --git a/boltzgen/kernel/template/momenta_boundary.cpp.mako b/boltzgen/kernel/template/momenta_boundary.cpp.mako
index 48b0fa5..ef7f7ad 100644
--- a/boltzgen/kernel/template/momenta_boundary.cpp.mako
+++ b/boltzgen/kernel/template/momenta_boundary.cpp.mako
@@ -24,15 +24,15 @@ collision_subexpr, collision_assignment = model.collision(f_eq = model.equilibri
</%def>
<%call expr="momenta_boundary('velocity', [(float_type, 'velocity[%d]' % descriptor.d)])">
- ${float_type} ${sympy.ccode(moments_assignment[0])}
+ const ${float_type} ${sympy.ccode(moments_assignment[0])}
% for i, expr in enumerate(moments_assignment[1:]):
- ${float_type} ${expr.lhs} = velocity[${i}];
+ const ${float_type} ${expr.lhs} = velocity[${i}];
% endfor
</%call>
<%call expr="momenta_boundary('density', [(float_type, 'density')])">
- ${float_type} ${moments_assignment[0].lhs} = density;
+ const ${float_type} ${moments_assignment[0].lhs} = density;
% for i, expr in enumerate(moments_assignment[1:]):
- ${float_type} ${sympy.ccode(expr)}
+ const ${float_type} ${sympy.ccode(expr)}
% endfor
</%call>