The way gradient operation for the external potential is set up in the RPY flux will cause issues when implementing hard wall potential.