density Function

public function density(g, b, dmatrix) result(rho)

computes electronic density on the grid density: where is a basis function

Arguments

Type IntentOptional Attributes Name
type(grid3d), intent(in) :: g
type(basis), intent(in) :: b
real(kind=long) :: dmatrix(b%n_basis,b%n_basis)

Return Value real(kind=long), (g%n_grid)