From b26e66492fbbfd7bf584db17d7d59ed2c312607c Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 14 Feb 2017 15:24:13 +0100
Subject: [PATCH] Fixed compile error on OGS_USE_PETSC=ON as proposed by Tom.

---
 ProcessLib/UncoupledProcessesTimeLoop.cpp | 2 +-
 scripts/jenkins/gcc-dynamic.groovy        | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/ProcessLib/UncoupledProcessesTimeLoop.cpp b/ProcessLib/UncoupledProcessesTimeLoop.cpp
index d6b043a727f..c07fc0eedb9 100644
--- a/ProcessLib/UncoupledProcessesTimeLoop.cpp
+++ b/ProcessLib/UncoupledProcessesTimeLoop.cpp
@@ -527,7 +527,7 @@ bool UncoupledProcessesTimeLoop::setCoupledSolutions()
         }
         _solutions_of_coupled_processes.emplace_back(coupled_xs);
 
-        auto const x = *_process_solutions[pcs_idx];
+        auto const& x = *_process_solutions[pcs_idx];
 
         // Create a vector to store the solution of the last coupling iteration
         auto& x_coupling0 = NumLib::GlobalVectorProvider::provider.getVector(x);
diff --git a/scripts/jenkins/gcc-dynamic.groovy b/scripts/jenkins/gcc-dynamic.groovy
index a0ce9a4dd72..abb48384404 100644
--- a/scripts/jenkins/gcc-dynamic.groovy
+++ b/scripts/jenkins/gcc-dynamic.groovy
@@ -26,7 +26,6 @@ stage('CLI (envinf1)') {
     }, petsc: {
         build.linux(dir: 'build-petsc', env: 'envinf1/petsc.sh', script: this)
     }
-
 }
 
 stage('Test (envinf1)') {
-- 
GitLab