From 196288961abb93c1c087ac3ea4f7f5bed5c05ce9 Mon Sep 17 00:00:00 2001
From: Oliver Sander <oliver.sander@tu-dresden.de>
Date: Fri, 11 May 2018 11:35:02 +0200
Subject: [PATCH] Fix logic error in an assertion

The CI system found this for me, because it only goes wrong
when dune-foamgrid is not available.
---
 src/harmonicmaps.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/harmonicmaps.cc b/src/harmonicmaps.cc
index 02a99c36..d4e15113 100644
--- a/src/harmonicmaps.cc
+++ b/src/harmonicmaps.cc
@@ -133,7 +133,7 @@ int main (int argc, char *argv[])
 #if HAVE_DUNE_FOAMGRID
     typedef std::conditional<dim==1 or dim!=dimworld,FoamGrid<dim,dimworld>,UGGrid<dim> >::type GridType;
 #else
-    static_assert(dim!=dimworld, "You need to have dune-foamgrid installed for dim != dimworld!");
+    static_assert(dim==dimworld, "You need to have dune-foamgrid installed for dim != dimworld!");
     typedef std::conditional<dim==1,OneDGrid<dim>,UGGrid<dim> >::type GridType;
 #endif
 
-- 
GitLab