52dece68 adds a short single-layer script that, when run, produces NaNs in the potential. It shouldn't.
cc @mattwala