diff --git a/dirneucoupling.cc b/dirneucoupling.cc
index 9d1f309ba7aa6f838846497a22c09d069867e1e0..e4eb0ce21fe2f2ee78476be1b6c8f8ecb21d4796 100644
--- a/dirneucoupling.cc
+++ b/dirneucoupling.cc
@@ -147,6 +147,8 @@ int main (int argc, char *argv[]) try
 
     RodSolutionType rodX(complex.rodGrids_["rod"]->size(1));
 
+    int toplevel = complex.rodGrids_["rod"]->maxLevel();
+
     // //////////////////////////
     //   Initial solution
     // //////////////////////////
@@ -166,8 +168,6 @@ int main (int argc, char *argv[]) try
     // Backup initial rod iterate for later reference
     RodSolutionType initialIterateRod = rodX;
 
-    int toplevel = complex.rodGrids_["rod"]->maxLevel();
-
     // /////////////////////////////////////////////////////
     //   Determine the Dirichlet nodes
     // /////////////////////////////////////////////////////