From c87853f696e23480b596813f939cd6ccdaa07eb4 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Mon, 12 Mar 2012 22:59:20 +0100
Subject: [PATCH] Externalise MySolver properly

---
 src/Makefile.am        | 1 +
 src/mysolver.cc        | 2 +-
 src/one-body-sample.cc | 6 +++++-
 3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index d5647434..3b07f3e5 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -25,6 +25,7 @@ run-one-body-sample-gdb: one-body-sample
 one_body_sample_SOURCES = \
 	assemblers.cc \
 	compute_state.cc \
+	mysolver.cc \
 	one-body-sample.cc \
 	print.cc \
 	vtk.cc
diff --git a/src/mysolver.cc b/src/mysolver.cc
index 7606e56d..33c5fd20 100644
--- a/src/mysolver.cc
+++ b/src/mysolver.cc
@@ -62,4 +62,4 @@ MySolver<dim, VectorType, OperatorType, GridType,
   return multigridStep;
 }
 
-//#include "mysolver_tmpl.cc"
+#include "mysolver_tmpl.cc"
diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index 0ce37e04..621639a9 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -2,6 +2,10 @@
 #include "config.h"
 #endif
 
+#ifdef HAVE_IPOPT
+#undef HAVE_IPOPT
+#endif
+
 #ifndef srcdir
 #error srcdir unset
 #endif
@@ -51,7 +55,7 @@
 
 #include "assemblers.hh"
 #include "compute_state.hh"
-#include "mysolver.cc" // TODO
+#include "mysolver.hh"
 #include "print.hh"
 #include "vtk.hh"
 
-- 
GitLab