grid_tools  1.13.0
pesg::get_meanq Interface Reference

Private Member Functions

subroutine get_meanqd (ngh, lam, xg, wg, ak, ma, q, qdak, qdma, ga, gadak, gadma, ff)
 For a parameter vector, ak and a map-space domain-parameter vector, ma, return the lambda-parameterized quality diagnostic, Q, and the geographic domain-parameter vector ga. More...
 
subroutine get_meanqs (n, ngh, lam, xg, wg, aks, mas, qs, ff)
 Like getmeanqd, except for n different values, aks, of ak and n different values, mas of ma, and without any of the derivatives. More...
 

Detailed Description

Definition at line 39 of file pesg.f90.

Member Function/Subroutine Documentation

◆ get_meanqd()

subroutine pesg::get_meanq::get_meanqd ( integer(spi), intent(in)  ngh,
real(dp), intent(in)  lam,
real(dp), dimension(ngh), intent(in)  xg,
real(dp), dimension(ngh), intent(in)  wg,
real(dp), dimension(2), intent(in)  ak,
real(dp), dimension(2), intent(in)  ma,
real(dp), intent(out)  q,
real(dp), dimension(2), intent(out)  qdak,
real(dp), dimension(2), intent(out)  qdma,
real(dp), dimension(2), intent(out)  ga,
real(dp), dimension(2,2), intent(out)  gadak,
real(dp), dimension(2,2), intent(out)  gadma,
logical, intent(out)  ff 
)
private

For a parameter vector, ak and a map-space domain-parameter vector, ma, return the lambda-parameterized quality diagnostic, Q, and the geographic domain-parameter vector ga.

Lambda is given by lam <1. Also, return the derivatives, qdak and qdma, of Q wrt ak and ma, and the derivatives gadak and gadma, of ga wrt ak and ma.

The domain averages of Q are accurately computed by bi-Gauss-Legendre quadrature over the positive quadrant of the domain (exploiting the symmetry) of the four constituent terms, v1, v2, v3, v4, from which the mean Q is computed using a quadratic formula of these constituents. The number of Gauss points in eaxh half-interval is ngh, and the nodes themselves are, in proportion to the half-interval, at xg. the normalized gauss weights are wg.

If a failure occurs, colmputations cease immediately and a failure flag, FF, is raised on return.

Parameters
[in]ngh
[in]lamLambda
[in]xg
[in]wg
[in]akparameter vector
[in]mamap-space domain-parameter vector
[out]qlambda-parameterized quality diagnostic
[out]qdakderivatives value
[out]qdmaderivatives value
[out]gageographic domain-parameter vector
[out]gadak
[out]gadma
[out]fferror flag
Author
R. J. Purser

Definition at line 604 of file pesg.f90.

◆ get_meanqs()

subroutine pesg::get_meanq::get_meanqs ( integer(spi), intent(in)  n,
integer(spi), intent(in)  ngh,
real(dp), intent(in)  lam,
real(dp), dimension(ngh), intent(in)  xg,
real(dp), dimension(ngh), intent(in)  wg,
real(dp), dimension(2,n), intent(in)  aks,
real(dp), dimension(2,n), intent(in)  mas,
real(dp), dimension(n), intent(out)  qs,
logical, intent(out)  ff 
)
private

Like getmeanqd, except for n different values, aks, of ak and n different values, mas of ma, and without any of the derivatives.

Parameters
[in]n
[in]ngh
[in]lam
[in]xg
[in]wg
[in]aks
[in]mas
[out]qs
[out]ff
Author
R. J. Purser

Definition at line 682 of file pesg.f90.


The documentation for this interface was generated from the following file: