[Wien] fourier coefficients in lapw2

Laurence Marks laurence.marks at gmail.com
Wed Oct 30 14:25:44 CET 2019


That is not how Fortran works. a(1,je1) is not a single number when passed
in a subroutine, it is an address. Therefore A(2) in the subroutine is
a(2,je1) etc.

Probably worth looking at some programming introductions via a web search...

_____
Professor Laurence Marks
"Research is to see what everybody else has seen, and to think what nobody
else has thought", Albert Szent-Gyorgi
www.numis.northwestern.edu

On Wed, Oct 30, 2019, 08:15 Marcus Ekholm <marcus.ekholm at liu.se> wrote:

> Hi!
>
> I have a question on how lapw2 calculates the charge density in the
> interstitial region.
>
> Inside fourir.F (line 294 in version 19.1) we call setfft1 as:
>
> CALL setfft1(n,iff1,iff2,iff3,a(1,je1),fft,keigen)
>
> where a(1,je1) is a single number.
> But the subroutine setfft1 expects A to be an array of a different size:
>
> !_REAL      REAL*8           A(nmat)
> !_COMPLEX      COMPLEX*16           A(nmat)
>
> and inside setfft1 we then loop over (some of) the elements in A, from 1
> to n, to set the fft array.
>
> Where do the elements A(2:n) in settfft1 come from? And in fourir.F why is
> only a(1, ...) passed to setfft1, why not a(2,...), etc ?
>
>
> Best regards,
> Marcus
> _______________________________________________
> Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__zeus.theochem.tuwien.ac.at_mailman_listinfo_wien&d=DwICAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=RvEv0pNxbHKu7zwyByAE9W28AOQmCEWHmcEvIuF7Nhw&s=3tXV7A0CXdGIKJfn21KhN79FQW8t_FUVbV9lPtrOZus&e=
> SEARCH the MAILING-LIST at:
> https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mail-2Darchive.com_wien-40zeus.theochem.tuwien.ac.at_index.html&d=DwICAg&c=yHlS04HhBraes5BQ9ueu5zKhE7rtNXt_d012z2PA6ws&r=U_T4PL6jwANfAy4rnxTj8IUxm818jnvqKFdqWLwmqg0&m=RvEv0pNxbHKu7zwyByAE9W28AOQmCEWHmcEvIuF7Nhw&s=ByqKf0JdKUhAPEa6hC0rRrnxJV0tc-Jfu9jROMWZJyY&e=
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://zeus.theochem.tuwien.ac.at/pipermail/wien/attachments/20191030/8b76c85e/attachment.html>


More information about the Wien mailing list