From cf9aeb0e1f77fce35b056375f372927cd921ad0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <gruenich@dune-project.org> Date: Tue, 7 Nov 2023 22:53:09 +0100 Subject: [PATCH] Calculate proper value for theVector inside for loop Missing variable found as a result of reduced variable scope --- dune/uggrid/parallel/dddif/priority.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/dune/uggrid/parallel/dddif/priority.cc b/dune/uggrid/parallel/dddif/priority.cc index ee3ea0a71..ba2d441a8 100644 --- a/dune/uggrid/parallel/dddif/priority.cc +++ b/dune/uggrid/parallel/dddif/priority.cc @@ -438,6 +438,7 @@ void NS_DIM_PREFIX SetGhostObjectPriorities (GRID *theGrid) if (VEC_DEF_IN_OBJ_OF_GRID(theGrid,SIDEVEC)) for (i=0; i<SIDES_OF_ELEM(theElement); i++) { + VECTOR *theVector = SVECTOR(theElement,i); if (USED(theVector) || THEFLAG(theVector)) SETPRIOX(context, theVector,PRIO_CALC(theVector)); } -- GitLab