TGSIM Bug Fix for Source-Code Release 7.0 with LF95

The following fix is recommended for those

(i) working on a Windows PC,

(ii) using LF95 who have

(iii) any version of Release 7.0 of Source-Code GEMPACK. [That is, Release 7.0 (October 2000) or Release 7.0-002 (August 2001).]

This fix is not necessary if you are using LF90 or F77L3.

This fix is particularly recommended for those using user-specified accuracy (as described in section 7.4 of GPD-3).

The bug can cause TABLO-generated programs or GEMSIM to crash with the following error (as shown near the end of the LOG file):

   **STOP since error during read from unit number 19.
      (IOSTAT value is 111.)
   (ERROR RETURN FROM ROUTINE: POSFIL)
   (E--READ ERROR)
   (ERROR RETURN FROM ROUTINE: TGSIM )
   (ERROR RETURN FROM ROUTINE: SSEQB)
   (ERROR RETURN FROM ROUTINE: Main Program)

To install this fix, proceed as follows.

1. Download the file TGSIM.ZIP (35K) and put it into the SUBS subdirectory of the directory in which your GEMPACK is installed (usually, C:\GP\SUBS).

2. Go to a DOS box and change into this SUBS subdirectory.

3. Issue the following commands.

   unzip32 -o tgsim.zip
   zip tgc tgsim.for
   replib tgc

This will replace the existing TGSIM in your GEMPACK library with the bug fix.

The fix will only work on .EXE files you make after you install the fix. In particular, you may want to rerun LTG on TABLO-generated programs after you install this fix.