diff --git a/src/mode_merge.f90 b/src/mode_merge.f90 index 8a812b1..1e8d291 100644 --- a/src/mode_merge.f90 +++ b/src/mode_merge.f90 @@ -188,7 +188,7 @@ module mode_merge end do !If we don't include the wrap command then we have to increase the size of the box - if(.not.(wrap_flag)) then + if(.not.(wrap_flag).and..not.(trim(adjustl(dim))=='none')) then do i = 1,3 if (alldims(i:i) /= trim(adjustl(dim))) then if (current_shift(i) < -lim_zero) then