diff --git a/MagneticForces/InfiniteBox.geo b/MagneticForces/InfiniteBox.geo
index 821ab74e6658a51568233e737ae7dc4466cda322..b3a13268c555f672cd1f75467cda7d56d46f39da 100644
--- a/MagneticForces/InfiniteBox.geo
+++ b/MagneticForces/InfiniteBox.geo
@@ -117,7 +117,7 @@ p6 = newp; Point (p6) = {xCnt+xInt, yCnt-yInt, zCnt+zInt, lc1inf};
 p7 = newp; Point (p7) = {xCnt+xInt, yCnt+yInt, zCnt+zInt, lc1inf};
 p8 = newp; Point (p8) = {xCnt-xInt, yCnt+yInt, zCnt+zInt, lc1inf};
 
-
+VolInf[]={}; // Define empty array in case Flag_InfiniteBox is not active
 If(Flag_InfiniteBox)
   xExt = xInt * ratioInf;
   yExt = yInt * ratioInf;