Skip to content
Snippets Groups Projects
Commit 963fe31b authored by Tobias Leibner's avatar Tobias Leibner
Browse files

[momentmodels.min_density] fix std::atomic construction

parent dc3a5ab6
No related branches found
No related tags found
No related merge requests found
Subproject commit 2f4df9705ce37c6144befb1b1db336ad975a7ef6
Subproject commit a08102fed49dae633a61d7f4a0c76370c42037eb
......@@ -169,7 +169,7 @@ public:
static const bool adjust = DXTC_CONFIG_GET("adjust_alpha", 0);
if (!adjust)
return;
std::atomic<bool> changed = false;
std::atomic<bool> changed(false);
LocalMinDensitySetterType local_min_density_setter(
space_, alpha, range, analytical_flux_, min_acceptable_density_, param.get("dt")[0], changed);
auto walker = XT::Grid::Walker<typename SpaceType::GridViewType>(space_.grid_view());
......@@ -182,7 +182,7 @@ public:
static const bool adjust = DXTC_CONFIG_GET("adjust_alpha", 0);
if (!adjust)
return false;
std::atomic<bool> changed = false;
std::atomic<bool> changed(false);
LocalMinDensitySetterType local_min_density_setter(
space_, alpha, range, analytical_flux_, min_acceptable_density_, dt, changed);
auto walker = XT::Grid::Walker<typename SpaceType::GridViewType>(space_.grid_view());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment