uf427 - interpolating a value of B¶
- subroutine uf427(fbm, bi, ai, ifail)¶
- Parameters:
fbm [real8,in] :: Magnetic field intensity value to be interpolated.
bi [real8,out] :: Magnetic field intensity at the interpolated location.
ai [real8,out] :: Altitude at the interpolated location.
ifail [integer4,out] :: error flag (see Diagnostics)
Description¶
The subroutine
uf427()
interpolates a magnetic field intensity (fbm
) along a field line. To be used, the common blockuc170
has to include at least two points and the last Runge-Kutta step had to overreach the magnetic intensityfbm
. The subroutineuf427()
combines linear interpolations and Runge-Kutta steps to determine the correct location of the magnetic intensityfbm
.When the subroutine succeeds, the arguments
bi
andai
are set to the magnetic field intensity and altitude at the interpolated location, respectively. The index of the common blockuc170
corresponding to the interpolated location is stored in the argumentifail
.
Note
The subroutine takes into account the step size limit stplst
defined in the common block uc190
.
History¶
From version 1.13 to version 2.00, the subroutine code has been correct for an error which caused an undue error with diagnostic -42701.
Diagnostics¶
-42701, magnetic field intensity is constant
-42702, too many iterations
-42703, -42704, problem with the Runge Kutta step
> 0, the index in
uc170
corresponding to the interpolated location
Common Blocks¶
Dependencies¶
Called by¶
Calls¶
See also¶
None
Reported Bugs¶
None
Examples¶
None
UNILIB/tags/v3.02