Skip to content

Commit

Permalink
Fix problem with initialization order
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbbeyer committed Sep 4, 2024
1 parent 64392b7 commit a674a00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ class LBWalberlaImpl : public LBWalberlaBase {
LBWalberlaImpl(std::shared_ptr<LatticeWalberla> lattice, double viscosity,
double density)
: m_viscosity(FloatType_c(viscosity)), m_density(FloatType_c(density)),
m_kT(FloatType{0}), m_lattice(std::move(lattice)), m_seed(0) {
m_kT(FloatType{0}), m_seed(0), m_lattice(std::move(lattice)) {

auto const &blocks = m_lattice->get_blocks();
auto const n_ghost_layers = m_lattice->get_ghost_layers();
Expand Down

0 comments on commit a674a00

Please sign in to comment.