madel3out Subroutine

public subroutine madel3out(iprint, naez, lrecabmad, smat1, smat2, lmpotd)

Reads the full Madelung coefficients from an unformatted file, and then writes the necessary ones to a formatted file.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: iprint

Printing index controller

integer, intent(in) :: naez

Number of atoms in unit cell

integer, intent(in) :: lrecabmad

Record length for unformatted files

real(kind=dp), intent(in), dimension(6,6) :: smat1

Bulk Madelung coefficients

real(kind=dp), intent(in), dimension(6,6) :: smat2

Bulk Madelung coefficients

integer, intent(in) :: lmpotd

(lpot+1)**2