mgmol
mgmol copied to clipboard
Avoid replicated code in evaluation of potential on mesh
Right now, we use different loops to evaluate potential on mesh, whether it is to evaluate potential used in iterative solver, or in forces computation. This can lead to errors if only one of the two is modified.