Skip to content

Commit

Permalink
fix stokes_2d
Browse files Browse the repository at this point in the history
  • Loading branch information
gouarin committed Oct 2, 2023
1 parent 93538c2 commit a2ea900
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demos/FiniteVolume/stokes_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,12 +408,12 @@ int main(int argc, char* argv[])

// Boundary conditions
samurai::make_bc<samurai::Dirichlet>(velocity_np1,
[&](const auto&, const auto& coord)
[&](const auto&, const auto&, const auto& coord)
{
return exact_velocity(0, coord);
});
samurai::make_bc<samurai::Neumann>(pressure_np1,
[&](const auto&, const auto& coord)
[&](const auto&, const auto&, const auto& coord)
{
return exact_normal_grad_pressure(0, coord);
});
Expand Down Expand Up @@ -500,13 +500,13 @@ int main(int argc, char* argv[])
// Boundary conditions
velocity_np1.get_bc().clear();
samurai::make_bc<samurai::Dirichlet>(velocity_np1,
[&](const auto&, const auto& coord)
[&](const auto&, const auto&, const auto& coord)
{
return exact_velocity(t_np1, coord);
});
pressure_np1.get_bc().clear();
samurai::make_bc<samurai::Neumann>(pressure_np1,
[&](const auto&, const auto& coord)
[&](const auto&, const auto&, const auto& coord)
{
return exact_normal_grad_pressure(t_np1, coord);
});
Expand Down

0 comments on commit a2ea900

Please sign in to comment.