From 320fc8519701bc2839b202bfca8c42d64cbe9a18 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Thu, 28 Nov 2013 08:36:32 +0000
Subject: [PATCH] Part II of previous patch: deleted test needs to go into the
 dirichletValues method

[[Imported from SVN: r9547]]
---
 cosserat-continuum.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cosserat-continuum.cc b/cosserat-continuum.cc
index ad93f6f2..6c050198 100644
--- a/cosserat-continuum.cc
+++ b/cosserat-continuum.cc
@@ -61,6 +61,9 @@ void dirichletValues(const FieldVector<double,dim>& in, FieldVector<double,3>& o
                      double homotopy
 )
 {
+    if (not vIt->geometry().corner(0)[0] > upper[0]-1e-3)
+        return;
+
     double angle = 8*M_PI;
     angle *= homotopy;
 
-- 
GitLab