UD332
Subroutine UD332  evaluate the magnetic flux through a spherical pie
REAL*8 colat,phi
RECORD/zgeo/ mpos1, mpos2
INTEGER*4 ifail
UD332 (colat, mpos1, mpos2, phi, ifail)

colat

Pole selection (first point) [in]

mpos1

Second point [in]

mpos2

Third point [in]

phi

Magnetic flux [out]

ifail

Error flag (see diagnostics) [out]
The subroutine UD332 evaluates the magnetic flux passing through a
spherical pie. This subroutine is called by subroutine
UD330 to evaluate the third invariant of a
magnetic drift shell. The spherical pie is determined by three
geographic locations at a fixed altitude. The first location corresponds
to one of the geographic poles and is selected by the argument
colat
. The second location is determined by the arguments
mpos1.elong
and mpos1.colat
. The third
location is determined by the arguments mpos2.elong
and
mpos2.colat
.
One should note that the altitude is fixed by mpos1.radius
and should be equal to mpos2.radius
.
33201, invalid value of colat
33202, not constant altitude
UC160,
general constants
UC190,
control parameters, set 1
UC192,
control parameters, set 2
Called by
UD331,
evaluate the magnetic flux through a spherical cap
Calls
UM530,
evaluate the magnetic field vector
UD330,
evaluate the third invariant