next up previous contents
Next: Nuc1()Nuc2() Up: Coulomb potential (-Z/r) Previous: Coulomb potential (-Z/r)

evalG()

void evalG(Complex (*func)(d3vec,double),double dparam)

Input:

Output:

To be able to compute J(rhonuc), add a function of the above prototype to your definition of the pvector class.

Hint: The general structure of this function is the same as the evalr() function which you wrote for HW#7, but, rather than passing real-space points

displaymath374

where tex2html_wrap_inline376 , to func, this routine passes G-vectors as defined in class with proper aliasing,

displaymath380

where tex2html_wrap_inline382 means take whichever value of x or y has the least absolute value, while maintaining the sign of the number. (I.e., tex2html_wrap_inline388 and tex2html_wrap_inline390 .) Note that these G-vectors use the same contruction as you followed in making the L() and Linv() operators.



Tomas Arias
Thu Apr 26 18:07:33 EDT 2001