! ! Copyright (C) 2001-2003 PWSCF group ! This file is distributed under the terms of the ! GNU General Public License. See the file `License' ! in the root directory of the present distribution, ! or http://www.gnu.org/copyleft/gpl.txt . ! #include "f_defs.h" ! !-------------------------------------------------------------------------- subroutine make_pointlists !-------------------------------------------------------------------------- ! ! This initialization is needed in order to integrate charge (or ! magnetic moment) in a sphere around the atomic positions. ! This can be used to simply monitor these quantities during the scf ! cycles or in order to calculate constrains on these quantities. ! ! In the input the integration radius r_m can be given, otherwise it is ! calculated here. The integration is a sum over all points in real ! space with the weight 1, if they are closer than r_m to an atom ! and 1 - (distance-r_m)/(0.2*r_m) if r_m