Hand-derived closed form for Test 1's target quantity (a specific product of VSH inner products), evaluated over a colatitude grid at for comparison against TEST1_VSH and TEST1_GW.
Returns: Complex array of size NTH, the analytic Test 1 values.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=i4), | intent(in) | :: | NTH |
Number of colatitude samples over . |
FUNCTION TEST1_ANALYTIC(NTH) IMPLICIT NONE INTEGER(KIND=i4), INTENT(IN) :: NTH INTEGER(KIND=i4) :: I REAL(KIND=dp) :: TH COMPLEX(KIND=dp), DIMENSION(NTH) :: TEST1_ANALYTIC DO I=1,NTH TH = (I-1)*pi/(NTH-1) TEST1_ANALYTIC(I)=3.d0*DSQRT(5.d0)/64.d0/pi**2* & (DSIN(TH)*DCOS(TH))**2 ENDDO RETURN END FUNCTION TEST1_ANALYTIC