From a674a005bbf12d964b36950998c721babd67d58f Mon Sep 17 00:00:00 2001 From: David Beyer Date: Wed, 4 Sep 2024 14:10:32 +0200 Subject: [PATCH] Fix problem with initialization order --- src/walberla_bridge/src/lattice_boltzmann/LBWalberlaImpl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/walberla_bridge/src/lattice_boltzmann/LBWalberlaImpl.hpp b/src/walberla_bridge/src/lattice_boltzmann/LBWalberlaImpl.hpp index 68386a8a53..b6625ae7bf 100644 --- a/src/walberla_bridge/src/lattice_boltzmann/LBWalberlaImpl.hpp +++ b/src/walberla_bridge/src/lattice_boltzmann/LBWalberlaImpl.hpp @@ -402,7 +402,7 @@ class LBWalberlaImpl : public LBWalberlaBase { LBWalberlaImpl(std::shared_ptr 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();