diff --git a/ProcessLib/BoundaryCondition/ConstraintDirichletBoundaryCondition.cpp b/ProcessLib/BoundaryCondition/ConstraintDirichletBoundaryCondition.cpp index 7f74f4a7662274cbd703b52dc6745b8efd558a75..acce3726620c45b75644b929f8c681063e7d7717 100644 --- a/ProcessLib/BoundaryCondition/ConstraintDirichletBoundaryCondition.cpp +++ b/ProcessLib/BoundaryCondition/ConstraintDirichletBoundaryCondition.cpp @@ -129,7 +129,7 @@ void ConstraintDirichletBoundaryCondition::preTimestep(double t, { _flux_values[boundary_element->getID()] = _local_assemblers[boundary_element->getID()]->integrate( - x, t, _bulk_mesh, + x, t, [this](std::size_t const element_id, MathLib::Point3d const& pnt, double const t, GlobalVector const& x) { diff --git a/ProcessLib/BoundaryCondition/ConstraintDirichletBoundaryConditionLocalAssembler.h b/ProcessLib/BoundaryCondition/ConstraintDirichletBoundaryConditionLocalAssembler.h index b379ab5ac3656664a022635529501f0a548b8889..ac2e5fb87a8a99575481dfdae17b8a919d4a74ce 100644 --- a/ProcessLib/BoundaryCondition/ConstraintDirichletBoundaryConditionLocalAssembler.h +++ b/ProcessLib/BoundaryCondition/ConstraintDirichletBoundaryConditionLocalAssembler.h @@ -49,7 +49,7 @@ public: default; virtual double integrate( - GlobalVector const& x, double const t, MeshLib::Mesh const& bulk_mesh, + GlobalVector const& x, double const t, std::function<Eigen::Vector3d(std::size_t const, MathLib::Point3d const&, double const, GlobalVector const&)> const& getFlux) = 0; @@ -149,11 +149,10 @@ public: /// @param x The global vector containing the values for numerical /// integration. /// @param t The point in time the the integration will be performed. - /// @param bulk_mesh The bulk mesh the process is defined on. /// @param getFlux The function of the constraining process used to /// calculate the flux. double integrate( - GlobalVector const& x, double const t, MeshLib::Mesh const& bulk_mesh, + GlobalVector const& x, double const t, std::function<Eigen::Vector3d( std::size_t const, MathLib::Point3d const&, double const, GlobalVector const&)> const& getFlux) override