diff --git a/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal2pfaboundpressure2p.hh b/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal2pfaboundpressure2p.hh
index 609d08268b32eb4c3ee57e0c94c43347658f2d90..23e9d2cefd03f39c03e5e6c00df6bb0810dbdb7a 100644
--- a/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal2pfaboundpressure2p.hh
+++ b/dumux/decoupled/2p/diffusion/fvmpfa/lmethod/fvmpfal2pfaboundpressure2p.hh
@@ -1010,7 +1010,6 @@ void FVMPFAL2PFABoundPressure2P<TypeTag>::storeInteractionVolumeInfo()
 
                     // cell 3
                     GlobalPosition globalPos3(0);
-                    int globalIdx3 = 0;
 
                     GlobalPosition globalPosFace23(0);
                     GlobalPosition globalPosFace34(0);
@@ -1045,9 +1044,6 @@ void FVMPFAL2PFABoundPressure2P<TypeTag>::storeInteractionVolumeInfo()
                                     interactionVolumes_[globalVertIdx1234].setIndexOnElement(isIt43->indexInOutside(), 2,
                                             0);
 
-                                    // access neighbor cell 4
-                                    globalIdx3 = problem_.variables().index(*elementPointer32);
-
                                     // get global coordinate of neighbor cell 4 center
                                     globalPos3 = elementPointer32->geometry().center();
 
diff --git a/dumux/decoupled/2p/diffusion/fvmpfa/omethod/fvmpfao2pfaboundpressure2p.hh b/dumux/decoupled/2p/diffusion/fvmpfa/omethod/fvmpfao2pfaboundpressure2p.hh
index 54294301dc779cc855624e35b1fda3cfc01e4ff8..3911834d6b6f42ccbb994c54e9d6774f94e8e844 100644
--- a/dumux/decoupled/2p/diffusion/fvmpfa/omethod/fvmpfao2pfaboundpressure2p.hh
+++ b/dumux/decoupled/2p/diffusion/fvmpfa/omethod/fvmpfao2pfaboundpressure2p.hh
@@ -1008,7 +1008,6 @@ void FVMPFAO2PFABoundPressure2P<TypeTag>::storeInteractionVolumeInfo()
 
                     // cell 3
                     GlobalPosition globalPos3(0);
-                    int globalIdx3 = 0;
 
                     GlobalPosition globalPosFace23(0);
                     GlobalPosition globalPosFace34(0);
@@ -1043,9 +1042,6 @@ void FVMPFAO2PFABoundPressure2P<TypeTag>::storeInteractionVolumeInfo()
                                     interactionVolumes_[globalVertIdx1234].setIndexOnElement(isIt4->indexInOutside(), 2,
                                             0);
 
-                                    // access neighbor cell 4
-                                    globalIdx3 = problem_.variables().index(*elementPointer32);
-
                                     // get global coordinate of neighbor cell 4 center
                                     globalPos3 = elementPointer32->geometry().center();