Target field for Part A: equal unit weight on all three basis families at each of the eight known modes; zero elsewhere. A genuine finite sum over eight independent modes, not a shortcut.
Returns: The target vector field , complex 3-vector.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=dp), | intent(in) | :: | THETA |
Colatitude in radians, . |
||
| real(kind=dp), | intent(in) | :: | PHI |
Longitude in radians, . |
FUNCTION FIELD_KNOWN(THETA, PHI) RESULT(F) IMPLICIT NONE REAL(KIND=dp), INTENT(IN) :: THETA REAL(KIND=dp), INTENT(IN) :: PHI COMPLEX(KIND=dp), DIMENSION(3) :: F INTEGER(KIND=i4) :: K F = DCMPLX(0.d0, 0.d0) DO K = 1, N_KNOWN F = F + PVSH_RAD(L_KNOWN(K), M_KNOWN(K), THETA, PHI) & + PVSH_POL(L_KNOWN(K), M_KNOWN(K), THETA, PHI) & + PVSH_TOR(L_KNOWN(K), M_KNOWN(K), THETA, PHI) ENDDO END FUNCTION FIELD_KNOWN