From 3026601ffcb897e1b38d961cbbf955ee2b116e7b Mon Sep 17 00:00:00 2001
From: Katharina Heck <katharina.heck@iws.uni-stuttgart.de>
Date: Fri, 22 Sep 2017 17:36:12 +0200
Subject: [PATCH] cleanup exercise 1

---
 tutorial/ex1/README.md                   |  6 ++++++
 tutorial/ex1/injection2pspatialparams.hh | 20 --------------------
 2 files changed, 6 insertions(+), 20 deletions(-)

diff --git a/tutorial/ex1/README.md b/tutorial/ex1/README.md
index a5757ce683..2c18721a16 100644
--- a/tutorial/ex1/README.md
+++ b/tutorial/ex1/README.md
@@ -48,6 +48,12 @@ make exercise1_2p exercise1_2p2c
 ./exercise1_2p2c exercise1.input
 ```
 
+* you can look at the results with paraview
+
+```bash
+paraview injection-2p2c.pvd
+```
+
 <hr><br><br>
 ### Task 3: Changing input parameters
 <hr>
diff --git a/tutorial/ex1/injection2pspatialparams.hh b/tutorial/ex1/injection2pspatialparams.hh
index 95071e887b..f97ecab3f0 100644
--- a/tutorial/ex1/injection2pspatialparams.hh
+++ b/tutorial/ex1/injection2pspatialparams.hh
@@ -118,12 +118,6 @@ public:
         aquitardMaterialParams_.setLambda(2.0);
         aquiferMaterialParams_.setLambda(2.0);
 
-         // plot the material laws using gnuplot and exit
-        if (GET_RUNTIME_PARAM(TypeTag, bool, Problem.OnlyPlotMaterialLaws))
-        {
-            plotMaterialLaws();
-            exit(0);
-        }
     }
 
     /*!
@@ -231,20 +225,6 @@ public:
 //         return lambdaSolid_;
 //     }
 
-    /*!
-     * \brief Creates a gnuplot output of the pc-Sw curve
-     */
-    void plotMaterialLaws()
-    {
-        PlotMaterialLaw<TypeTag> plotMaterialLaw;
-        GnuplotInterface<Scalar> gnuplot;
-        plotMaterialLaw.addpcswcurve(gnuplot, aquitardMaterialParams_, 0.2, 1.0, "upper layer (fine, aquitard)", "w lp");
-        plotMaterialLaw.addpcswcurve(gnuplot, aquiferMaterialParams_, 0.2, 1.0, "lower layer (coarse, aquifer)", "w l");
-        gnuplot.setOption("set xrange [0:1]");
-        gnuplot.setOption("set label \"residual\\nsaturation\" at 0.1,100000 center");
-        gnuplot.plot("pc-Sw");
-    }
-
 private:
 
     static constexpr Scalar eps_ = 1e-6;
-- 
GitLab