diff --git a/src/NEST/stitch_nest.f90 b/src/NEST/stitch_nest.f90
index c4c0e863226965eabd6140313372b3b2aefccf18..16495a99cf798589c756cb30a46b0dae917737fd 100644
--- a/src/NEST/stitch_nest.f90
+++ b/src/NEST/stitch_nest.f90
@@ -19,7 +19,7 @@ character (len=4) :: cistep,cnnest
 
 double precision :: current_time,inc,step,total
 
-integer :: err,i,istep,material0,nnest
+integer :: err,i,ierr,iproc,istep,material0,nnest,nproc
 
 type (box),dimension(:),allocatable :: boxes
 type (cloud),dimension(:),allocatable :: ss_cl