From 2574c43ce3b1b4c9d48ab3a4a4142bd22521211d Mon Sep 17 00:00:00 2001 From: Kilian Weishaupt <kilian.weishaupt@iws.uni-stuttgart.de> Date: Fri, 2 Oct 2020 11:33:15 +0200 Subject: [PATCH] [test][spline] Set gnuplot.setOpenPlotWindow(false) to avoid gnuplot timeout --- test/common/spline/test_cubicspline.cc | 1 + test/common/spline/test_monotonecubicspline.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/test/common/spline/test_cubicspline.cc b/test/common/spline/test_cubicspline.cc index a95ebb81cf..e6fdb1094d 100644 --- a/test/common/spline/test_cubicspline.cc +++ b/test/common/spline/test_cubicspline.cc @@ -85,6 +85,7 @@ int main(int argc, char** argv) const auto resultDerivPlot = eval([&](const double x) { return spline.evalDerivative(x); }, plotPoints); Dumux::GnuplotInterface<double> gnuplot(false); + gnuplot.setOpenPlotWindow(false); gnuplot.addDataSetToPlot(plotPoints, refPlot, "reference"); gnuplot.addDataSetToPlot(plotPoints, refDerivPlot, "reference_derivative"); gnuplot.addDataSetToPlot(plotPoints, resultPlot, "spline"); diff --git a/test/common/spline/test_monotonecubicspline.cc b/test/common/spline/test_monotonecubicspline.cc index 4ff3623881..dc59b47701 100644 --- a/test/common/spline/test_monotonecubicspline.cc +++ b/test/common/spline/test_monotonecubicspline.cc @@ -115,6 +115,7 @@ int main(int argc, char** argv) const auto resultDerivPlot = eval([&](const double x) { return spline.evalDerivative(x); }, plotPoints); Dumux::GnuplotInterface<double> gnuplot(/*persist=*/false); + gnuplot.setOpenPlotWindow(false); gnuplot.addDataSetToPlot(plotPoints, refPlot, "exp_reference"); gnuplot.addDataSetToPlot(plotPoints, refDerivPlot, "exp_reference_derivative"); gnuplot.addDataSetToPlot(plotPoints, resultPlot, "monotspline"); -- GitLab