Skip to content
Snippets Groups Projects
Commit 9dcd0dd9 authored by Helen Schottenhamml's avatar Helen Schottenhamml Committed by Markus Holzer
Browse files

Pdf centering information in codegen

parent 31ad4832
No related merge requests found
......@@ -103,6 +103,8 @@ public:
static const {{dtype}} wInv[{{Q}}];
static const bool compressible = {% if compressible %}true{% else %}false{% endif %};
static const bool zeroCentered = {% if zero_centered %}true{% else %}false{% endif %};
static const bool equilibriumDeviationOnly = {% if equilibrium_deviation_only %}true{% else %}false{% endif %};
class Sweep
{
......
......@@ -114,6 +114,8 @@ def __lattice_model(generation_context, class_name, config, lb_method, stream_co
'D': lb_method.stencil.D,
'Q': lb_method.stencil.Q,
'compressible': lb_method.conserved_quantity_computation.compressible,
'zero_centered': lb_method.conserved_quantity_computation.zero_centered_pdfs,
'equilibrium_deviation_only': lb_method.equilibrium_distribution.deviation_only,
'weights': ",".join(str(w.evalf()) + constant_suffix for w in lb_method.weights),
'inverse_weights': ",".join(str((1 / w).evalf()) + constant_suffix for w in lb_method.weights),
'dtype': "float" if is_float else "double",
......
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