Skip to content
Snippets Groups Projects
Commit 48205219 authored by Markus Holzer's avatar Markus Holzer
Browse files

Merge branch 'mr_pdf_centering_codegen' into 'master'

Pdf centering information in codegen

See merge request walberla/walberla!545
parents 31ad4832 9dcd0dd9
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