next up previous contents
Next: Help Files Up: Updating the ASTERIX Previous: NAG vs. PDA

Structure vs. COMMON blocks

The Starlink format for software code development does not include the use of structures. However, the ASTERIX code does make extensive use of them for fitting purposes. This causes problems for the Linux conversion as the Fortran compiler cannot cope with structure.

Thus sections of the ASTERIX code have been modifed to replace structures with COMMON blocks. These routines live in the rosat (ROSAT processing), spec (spectral fitting), and src (source searching) packages. The ROSAT package has been fully converted, but the others are still in a state of flux - mostly due to the OBELIX cluster fitting software which relies upon various fitting routines and make extensive use of structures.

For these packages the extra directories src2 and spec2 have been created below /star/asterix/src to contain the COMMON block code. Before compiling these libraries the appropriate script to_struc or to_comm must be run in /star/asterix/src/inc to ensure the correct INCLUDE files are used.



Asterix
Tue Jun 23 11:52:19 BST 1998