![]() |
(git:3d5d2e5)
|
Common point quadratures and semilocal adjoints for inverse UPF basis blocks. Point rows may be MPI-distributed; each supplied column block is replicated. Original projector augmentation remains a separate, explicitly supplied operator. More...
Functions/Subroutines | |
| subroutine, public | upf_inverse_pair (left, right, weights, integral, comm) |
| Integrate left^dagger * weights * right, without discarding intercenter terms. Use the same rule for beta/Delta, beta/Gaussian and all operator blocks. | |
| subroutine, public | upf_inverse_pair_response (left, right, weights, left_response, right_response, weights_response, response, comm) |
| Differentiate both field legs and the original quadrature measure. | |
| subroutine, public | upf_inverse_semilocal_pair (left, right, left_gradient, right_gradient, weights, vdensity, vgradient, vtau, integral, comm) |
| Semilocal rectangular block for density, Cartesian density gradient and tau potentials. Integral of vn L*R + vg.(grad(L*)R+L*grad(R)) + vt grad(L*).grad(R)/2. vgradient is dE/d(grad n), not dE/dsigma. Cartesian gradients are physical Bloch gradients; supplying gradients of periodic factors alone would omit k terms. Apply to GG/GD/DG/DD blocks and retain the original augmentation pullback separately. | |
| subroutine, public | upf_inverse_semilocal_response (left, right, left_gradient, right_gradient, weights, vdensity, vgradient, vtau, left_response, right_response, left_gradient_response, right_gradient_response, weights_response, vdensity_response, vgradient_response, vtau_response, response, comm) |
| Response of the same semilocal block, including moving gradients, potentials and measure. Geometry responses of spatial gradients must include the inverse and field Hessians. | |
| subroutine, public | upf_inverse_smooth_density (soft, soft_gradient, ao_density, density, gradient, tau) |
| Smooth density descriptors whose adjoint is the semilocal pair operator. Per-spin AO density includes occupations and k weights. Values/gradients are U*chi. Caller must add original charge, gradient and independent kinetic augmentation. A charge kernel does not determine a missing kinetic augmentation kernel. | |
Common point quadratures and semilocal adjoints for inverse UPF basis blocks. Point rows may be MPI-distributed; each supplied column block is replicated. Original projector augmentation remains a separate, explicitly supplied operator.
| subroutine, public upf_inverse_quadrature::upf_inverse_pair | ( | complex(dp), dimension(:, :), intent(in) | left, |
| complex(dp), dimension(:, :), intent(in) | right, | ||
| real(dp), dimension(:), intent(in) | weights, | ||
| complex(dp), dimension(:, :), intent(out) | integral, | ||
| type(mp_comm_type), intent(in), optional | comm ) |
Integrate left^dagger * weights * right, without discarding intercenter terms. Use the same rule for beta/Delta, beta/Gaussian and all operator blocks.
| left | Local point rows and selected left columns. |
| right | Matching local point rows and selected right columns. |
| weights | Original quadrature measure for the local points. |
| integral | New rectangular block, globally reduced if comm is supplied. |
| comm | Optional communicator partitioning point rows; empty ranks participate. |
Definition at line 36 of file upf_inverse_quadrature.F.
| subroutine, public upf_inverse_quadrature::upf_inverse_pair_response | ( | complex(dp), dimension(:, :), intent(in) | left, |
| complex(dp), dimension(:, :), intent(in) | right, | ||
| real(dp), dimension(:), intent(in) | weights, | ||
| complex(dp), dimension(:, :), intent(in) | left_response, | ||
| complex(dp), dimension(:, :), intent(in) | right_response, | ||
| real(dp), dimension(:), intent(in) | weights_response, | ||
| complex(dp), dimension(:, :), intent(out) | response, | ||
| type(mp_comm_type), intent(in), optional | comm ) |
Differentiate both field legs and the original quadrature measure.
| left | ... |
| right | ... |
| weights | ... |
| left_response | Response of local left fields. |
| right_response | Response of local right fields. |
| weights_response | Response of the same local measure, including strain Jacobians. |
| response | New rectangular response block. |
| comm | ... |
Definition at line 59 of file upf_inverse_quadrature.F.
| subroutine, public upf_inverse_quadrature::upf_inverse_semilocal_pair | ( | complex(dp), dimension(:, :), intent(in) | left, |
| complex(dp), dimension(:, :), intent(in) | right, | ||
| complex(dp), dimension(:, :, :), intent(in) | left_gradient, | ||
| complex(dp), dimension(:, :, :), intent(in) | right_gradient, | ||
| real(dp), dimension(:), intent(in) | weights, | ||
| real(dp), dimension(:), intent(in) | vdensity, | ||
| real(dp), dimension(:, :), intent(in) | vgradient, | ||
| real(dp), dimension(:), intent(in) | vtau, | ||
| complex(dp), dimension(:, :), intent(out) | integral, | ||
| type(mp_comm_type), intent(in), optional | comm ) |
Semilocal rectangular block for density, Cartesian density gradient and tau potentials. Integral of vn L*R + vg.(grad(L*)R+L*grad(R)) + vt grad(L*).grad(R)/2. vgradient is dE/d(grad n), not dE/dsigma. Cartesian gradients are physical Bloch gradients; supplying gradients of periodic factors alone would omit k terms. Apply to GG/GD/DG/DD blocks and retain the original augmentation pullback separately.
| left | Local original Gaussian or difference-wave values. |
| right | Matching right values. |
| left_gradient | Cartesian spatial derivatives, axis last. |
| right_gradient | ... |
| weights | Original local quadrature measure. |
| vdensity | Potential conjugate to smooth density. |
| vgradient | Cartesian potential conjugate to its gradient, axis last. |
| vtau | Potential conjugate to tau=sum(f*|grad psi|**2)/2. |
| integral | New rectangular operator block. |
| comm | Optional point-row communicator; reduction occurs once per block. |
Definition at line 96 of file upf_inverse_quadrature.F.
| subroutine, public upf_inverse_quadrature::upf_inverse_semilocal_response | ( | complex(dp), dimension(:, :), intent(in) | left, |
| complex(dp), dimension(:, :), intent(in) | right, | ||
| complex(dp), dimension(:, :, :), intent(in) | left_gradient, | ||
| complex(dp), dimension(:, :, :), intent(in) | right_gradient, | ||
| real(dp), dimension(:), intent(in) | weights, | ||
| real(dp), dimension(:), intent(in) | vdensity, | ||
| real(dp), dimension(:, :), intent(in) | vgradient, | ||
| real(dp), dimension(:), intent(in) | vtau, | ||
| complex(dp), dimension(:, :), intent(in) | left_response, | ||
| complex(dp), dimension(:, :), intent(in) | right_response, | ||
| complex(dp), dimension(:, :, :), intent(in) | left_gradient_response, | ||
| complex(dp), dimension(:, :, :), intent(in) | right_gradient_response, | ||
| real(dp), dimension(:), intent(in) | weights_response, | ||
| real(dp), dimension(:), intent(in) | vdensity_response, | ||
| real(dp), dimension(:, :), intent(in) | vgradient_response, | ||
| real(dp), dimension(:), intent(in) | vtau_response, | ||
| complex(dp), dimension(:, :), intent(out) | response, | ||
| type(mp_comm_type), intent(in), optional | comm ) |
Response of the same semilocal block, including moving gradients, potentials and measure. Geometry responses of spatial gradients must include the inverse and field Hessians.
| left | ... |
| right | ... |
| left_gradient | ... |
| right_gradient | ... |
| weights | ... |
| vdensity | ... |
| vgradient | ... |
| vtau | ... |
| left_response | ... |
| right_response | ... |
| left_gradient_response | ... |
| right_gradient_response | ... |
| weights_response | ... |
| vdensity_response | Zero for a frozen conjugate potential. |
| vgradient_response | ... |
| vtau_response | ... |
| response | New rectangular response block. |
| comm | ... |
Definition at line 161 of file upf_inverse_quadrature.F.
| subroutine, public upf_inverse_quadrature::upf_inverse_smooth_density | ( | complex(dp), dimension(:, :), intent(in) | soft, |
| complex(dp), dimension(:, :, :), intent(in) | soft_gradient, | ||
| complex(dp), dimension(:, :), intent(in) | ao_density, | ||
| real(dp), dimension(:), intent(out) | density, | ||
| real(dp), dimension(:, :), intent(out) | gradient, | ||
| real(dp), dimension(:), intent(out) | tau ) |
Smooth density descriptors whose adjoint is the semilocal pair operator. Per-spin AO density includes occupations and k weights. Values/gradients are U*chi. Caller must add original charge, gradient and independent kinetic augmentation. A charge kernel does not determine a missing kinetic augmentation kernel.
| soft | Local inverse basis values. |
| soft_gradient | Physical Cartesian Bloch gradients, axis last. |
| ao_density | Hermitian density matrix in reconstructed Gaussian variables. |
| density | Smooth local point density. |
| gradient | Smooth Cartesian density gradient, axis last. |
| tau | Smooth kinetic-energy density, with factor one half. |
Definition at line 216 of file upf_inverse_quadrature.F.