(git:3d5d2e5)
Loading...
Searching...
No Matches
upf_inverse_quadrature Module Reference

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.

Detailed Description

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.

Function/Subroutine Documentation

◆ upf_inverse_pair()

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.

Parameters
leftLocal point rows and selected left columns.
rightMatching local point rows and selected right columns.
weightsOriginal quadrature measure for the local points.
integralNew rectangular block, globally reduced if comm is supplied.
commOptional communicator partitioning point rows; empty ranks participate.

Definition at line 36 of file upf_inverse_quadrature.F.

Here is the caller graph for this function:

◆ upf_inverse_pair_response()

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.

Parameters
left...
right...
weights...
left_responseResponse of local left fields.
right_responseResponse of local right fields.
weights_responseResponse of the same local measure, including strain Jacobians.
responseNew rectangular response block.
comm...

Definition at line 59 of file upf_inverse_quadrature.F.

Here is the caller graph for this function:

◆ upf_inverse_semilocal_pair()

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.

Parameters
leftLocal original Gaussian or difference-wave values.
rightMatching right values.
left_gradientCartesian spatial derivatives, axis last.
right_gradient...
weightsOriginal local quadrature measure.
vdensityPotential conjugate to smooth density.
vgradientCartesian potential conjugate to its gradient, axis last.
vtauPotential conjugate to tau=sum(f*|grad psi|**2)/2.
integralNew rectangular operator block.
commOptional point-row communicator; reduction occurs once per block.

Definition at line 96 of file upf_inverse_quadrature.F.

Here is the caller graph for this function:

◆ upf_inverse_semilocal_response()

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.

Parameters
left...
right...
left_gradient...
right_gradient...
weights...
vdensity...
vgradient...
vtau...
left_response...
right_response...
left_gradient_response...
right_gradient_response...
weights_response...
vdensity_responseZero for a frozen conjugate potential.
vgradient_response...
vtau_response...
responseNew rectangular response block.
comm...

Definition at line 161 of file upf_inverse_quadrature.F.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ upf_inverse_smooth_density()

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.

Parameters
softLocal inverse basis values.
soft_gradientPhysical Cartesian Bloch gradients, axis last.
ao_densityHermitian density matrix in reconstructed Gaussian variables.
densitySmooth local point density.
gradientSmooth Cartesian density gradient, axis last.
tauSmooth kinetic-energy density, with factor one half.

Definition at line 216 of file upf_inverse_quadrature.F.

Here is the caller graph for this function: