Reads the full Madelung coefficients from an unformatted file, and then writes the necessary ones to a formatted file.
Type | Intent | Optional | 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 |