From 89d85d30efca5c14c064d3134d02e9e138b193e8 Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Fri, 14 Jan 2011 10:56:26 +0000 Subject: [PATCH] set variable 'toplevel' right after the grids have been refined [[Imported from SVN: r6747]] --- dirneucoupling.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dirneucoupling.cc b/dirneucoupling.cc index 9d1f309b..e4eb0ce2 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 // ///////////////////////////////////////////////////// -- GitLab