The only changes made to the source code were to declare all arrays arguments of length 1 to be assumed size arrays. Similar changes were made to the driver program and all Hollerith strings in format statements were changed to quoted strings. The port library routine was used to set the default i/o channels
The results have been generated using the SUN f77 compiler v5.0 under Solaris 2.7.
With the Edinburgh Fortran 90 compiler the software will only execute if all array bound and unassigned variable checking is turned off. It then, on the data file provided, produces an error code 33 from GPSKCA.
If array bound checking is switched on the code fails in routine GPSKCF in the DO 400 loop. The assignment to LEND requires the use of LVLPTR(0), since when LEVEL=DEPTH, PLSTRT=1.
To modernize the code, Hollerith constants need to be replaced by characters in the driver program and constants used in assigning workspace need to be set in parameter statements. In the src file a number of unreferenced labels need to be removed
nag_pfort also flags the use of an integer array to define a format in rdivec which is obsolescent in Fortran 90.