From 15a0bb97cc4411deb9cdff000ca450942cb52a95 Mon Sep 17 00:00:00 2001
From: podlesny <podlesny@zedat.fu-berlin.de>
Date: Sun, 28 Feb 2021 21:05:52 +0100
Subject: [PATCH] no friction setup for debugging

---
 src/foam/foam.cc | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/foam/foam.cc b/src/foam/foam.cc
index 9f359fa5..aad5457a 100644
--- a/src/foam/foam.cc
+++ b/src/foam/foam.cc
@@ -396,8 +396,8 @@ int main(int argc, char *argv[]) {
     // Set up TNNMG solver
     // -------------------
 
-    //using Functional = Functional<Matrix&, Vector&, ZeroNonlinearity&, Vector&, Vector&, field_type>;
-    using Functional = Functional<Matrix&, Vector&, GlobalFriction<Matrix, Vector>&, Vector&, Vector&, field_type>;
+    using Functional = Functional<Matrix&, Vector&, ZeroNonlinearity&, Vector&, Vector&, field_type>;
+    //using Functional = Functional<Matrix&, Vector&, GlobalFriction<Matrix, Vector>&, Vector&, Vector&, field_type>;
     using NonlinearFactory = SolverFactory<Functional, BitVector>;
 
     using BoundaryFunctions = typename ContactNetwork::BoundaryFunctions;
@@ -469,8 +469,10 @@ int main(int argc, char *argv[]) {
     typename ContactNetwork::ExternalForces externalForces;
     contactNetwork.externalForces(externalForces);
 
+    auto&& noFriction = ZeroNonlinearity();
+
     StepBase<NonlinearFactory, std::decay_t<decltype(contactNetwork)>, Updaters, std::decay_t<decltype(stateEnergyNorms)>>
-        stepBase(parset, contactNetwork, totalDirichletNodes, globalFriction, frictionNodes,
+        stepBase(parset, contactNetwork, totalDirichletNodes, noFriction, frictionNodes,
                  externalForces, stateEnergyNorms);
 
     UniformTimeStepper<NonlinearFactory, std::decay_t<decltype(contactNetwork)>, Updaters, std::decay_t<decltype(stateEnergyNorms)>>
-- 
GitLab