Test 1's target quantity computed directly from DOT products of VSH_TOR/VSH_POL_DN/VSH_POL_UP values -- must agree with TEST1_ANALYTIC to machine precision.
Returns: Complex array of size NTH, matching TEST1_ANALYTIC's
grid.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=i4), | intent(in) | :: | NTH |
Number of colatitude samples over . |
FUNCTION TEST1_VSH(NTH) IMPLICIT NONE INTEGER(KIND=i4), INTENT(IN) :: NTH INTEGER(KIND=i4) :: I REAL(KIND=dp) :: TH,PH COMPLEX(KIND=dp), DIMENSION(NTH) :: TEST1_VSH PH = 0.123d0 !- arbitrary choice DO I=1,NTH TH = (I-1)*pi/(NTH-1) TEST1_VSH(I) = DOT(VSH_TOR(2,0,TH,PH),VSH_TOR(1,1,TH,PH))* & DOT(VSH_POL_DN(1,-1,TH,PH),CONJG(VSH_POL_UP(0,0,TH,PH))) ENDDO RETURN END FUNCTION TEST1_VSH