From 48179a8f66d71ab4264d3401ee94fb2dc7b687f5 Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Fri, 17 Apr 2020 23:04:59 +0200
Subject: [PATCH] [MatL] Fracture/Coulomb. Drop anonymous namespace.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Not really need here and caused some warnings to appear
in the unity builds.

Warning were of type:
MaterialLib/FractureModels/Coulomb.cpp:182:38: warning: ‘MaterialLib::Fracture::Coulomb::Coulomb<DisplacementDim>::computeConstitutiveRelation(double, const ParameterLib::SpatialPosition&, double, Eigen::Ref<const Eigen::Matrix<double, -1, 1> >, Eigen::Ref<const Eigen::Matrix<double, -1, 1> >, Eigen::Ref<const Eigen::Matrix<double, -1, 1> >, Eigen::Ref<const Eigen::Matrix<double, -1, 1> >, Eigen::Ref<Eigen::Matrix<double, -1, 1> >, Eigen::Ref<Eigen::Matrix<double, -1, -1> >, typename MaterialLib::Fracture::FractureModelBase<DisplacementDim>::MaterialStateVariables&) [with int DisplacementDim = 3; typename MaterialLib::Fracture::FractureModelBase<DisplacementDim>::MaterialStateVariables = MaterialLib::Fracture::FractureModelBase<3>::MaterialStateVariables]::<lambda(const ResidualVectorType&)>’ has a field ‘MaterialLib::Fracture::Coulomb::Coulomb<DisplacementDim>::computeConstitutiveRelation(double, const ParameterLib::SpatialPosition&, double, Eigen::Ref<const Eigen::Matrix<double, -1, 1> >, Eigen::Ref<const Eigen::Matrix<double, -1, 1> >, Eigen::Ref<const Eigen::Matrix<double, -1, 1> >, Eigen::Ref<const Eigen::Matrix<double, -1, 1> >, Eigen::Ref<Eigen::Matrix<double, -1, 1> >, Eigen::Ref<Eigen::Matrix<double, -1, -1> >, typename MaterialLib::Fracture::FractureModelBase<DisplacementDim>::MaterialStateVariables&) [with int DisplacementDim = 3; typename MaterialLib::Fracture::FractureModelBase<DisplacementDim>::MaterialStateVariables = MaterialLib::Fracture::FractureModelBase<3>::MaterialStateVariables]::<lambda(const ResidualVectorType&)>::<mat capture>’ whose type uses the anonymous namespace [-Wsubobject-linkage]
  182 |         auto const update_solution = [&](ResidualVectorType const& increment) {
---
 MaterialLib/FractureModels/Coulomb.cpp | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/MaterialLib/FractureModels/Coulomb.cpp b/MaterialLib/FractureModels/Coulomb.cpp
index 8b91ff246d5..7735de1d440 100644
--- a/MaterialLib/FractureModels/Coulomb.cpp
+++ b/MaterialLib/FractureModels/Coulomb.cpp
@@ -21,8 +21,6 @@ namespace Fracture
 {
 namespace Coulomb
 {
-namespace
-{
 
 struct MaterialPropertyValues
 {
@@ -47,8 +45,6 @@ struct MaterialPropertyValues
     }
 };
 
-}  // namespace
-
 template <int DisplacementDim>
 void Coulomb<DisplacementDim>::computeConstitutiveRelation(
     double const t,
-- 
GitLab