Next: Fixed Keywords
Up: General Hints
Previous: General Hints
Include files and the common block VMR
Your MIDAS application code will certainly contain some calls to MIDAS
interfaces to set up the MIDAS environment and possibly to get access
to MIDAS data structures. In order to use these interfaces (ST and TB
for FORTRAN; SC and TC for C) successfully, the program should contain
two include files which declare the system global variables and assign
values to these variables. The declaration and assignments for FORTRAN
programs
7.1are in the files:
MID_DISK:['MIDASHOME'.'MIDVERS'.INCL]ST_DEF.INC and
ST_DAT.INC (in VMS)
or
$MIDASHOME/$MIDVERS/incl/st_def.inc and st_dat.inc (in Unix)
In your FORTRAN application you always refer to these files in uppercase (even
in Unix). The ESO preprocessor will take care of that; see the
example code in Appendix .
Also, if you write your application code in
FORTRAN 77, you must include the very important common block VMR . This common block acts as an
emulation of the pointer mechanism, which is well known in C. Using
the array MADRID , the addresses of the input and
output data arrays are passed to subsequent routines. Refer to
Appendix to see what the code looks like.
For C programs you have to include the file
MID_DISK:['MIDASHOME'.'MIDVERS'.INCL]midas_def.h (in VMS)
or
$MIDASHOME/$MIDVERS/incl/midas_def.h (in Unix)
Next: Fixed Keywords
Up: General Hints
Previous: General Hints