Minor fix for PBC
Description
Fix a bug for periodic boundary conditions when the size of the stencil is larger than the size of the inner grid itself.
Closes #785
News snippet
Minor fix for PBC
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.