Skip to content
Snippets Groups Projects
Commit 0d0d7efb authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Fix weird warning in acoustic solver (gcc debug)

parent b382d36a
Branches
Tags
1 merge request!103Set AssertError to inherit from std::runtime_error
......@@ -241,14 +241,6 @@ class AcousticSolverHandler::AcousticSolver final : public AcousticSolverHandler
{
BoundaryConditionList bc_list;
constexpr ItemType FaceType = [] {
if constexpr (Dimension > 1) {
return ItemType::face;
} else {
return ItemType::node;
}
}();
for (const auto& bc_descriptor : bc_descriptor_list) {
bool is_valid_boundary_condition = true;
......@@ -288,6 +280,14 @@ class AcousticSolverHandler::AcousticSolver final : public AcousticSolverHandler
bc_list.emplace_back(PressureBoundaryCondition{mesh_node_boundary, node_values});
} else {
constexpr ItemType FaceType = [] {
if constexpr (Dimension > 1) {
return ItemType::face;
} else {
return ItemType::node;
}
}();
MeshFaceBoundary<Dimension> mesh_face_boundary =
getMeshFaceBoundary(mesh, bc_descriptor->boundaryDescriptor());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment