ut985 - transfer a field line of the drift shell to IDL¶
- subroutine ut985(kindex, klength, mdata)¶
- Parameters:
kindex [integer4,in] :: Field line segment index.
klength [integer4,in/out] :: Number of elementary segments
mdata (*) [zseg,out] :: Field line segment description
Description¶
The subroutine
ut985()
provides a bridge to transfer magnetic field line segment from the UNILIB library to an IDL programme. The behaviour of the subroutine is function of the argumentkindex
.when
kindex=0
, the magnetic field line segment stored in the common blockuc170
is copied in argument mdata; otherwise, one of the magnetic field line segments stored in the common blocksuc110
,uc120
anduc130
is copied in argumentmdata
.To transfer a whole drift shell, the subroutine
ut985()
has to be called as many times as the number of magnetic field line segments included in the shell. Whenkindex=-1
, the first field line segment of the drift shell is transfered. As output, the argumentkindex
returns the index of the next field line segment in the drift shell.As input, the argument
klength
has to be set to the number of elements available in argumentmdata
. When the field line segment contains a number of elementary segments larger thanklength
, the argumentklength
is set to this minimum and no data is assigned to argumentmdata
. Otherwize the argumentklength
is returned with the exact number of elementary segments and the magnetic field line segments are copied into argumentmdata
.
References¶
History¶
Diagnostics¶
When an error occurs in subroutine
ut985()
, the value -999999999 is assigned to argumentklength
.
Common Blocks¶
Dependencies¶
Called by¶
None
Calls¶
None
See also¶
None
Reported Bugs¶
v1.05, Malfunction when field line extended to foot points; fixed in next versions
Examples¶
UNILIB/tags/v3.02