Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
Hi all, I have a potential field on a grid (it has periodic boundary conditions), and I want to calculate the acceleration (force field) of this, i.e., f=-grad(potential), I need the gradient of the potential . I wrote a procedure, but it has to many for loops in it. Does any body know a fast and smart way to do this? Thanks!! Andres