Appendix 4: Bug in gennet.for
The program in gennet.for
is not quite perfect. When it creates the readnet.for program it some times
places the wrong routine call in readnet.for. If you get a message like
>NCAGT: : Attempt to
convert between text & numbers
the following may fix the
problem. The line where readnet.for crashes is a call to NCAGT. At this point,
readnet.for tries to read a character variable atribute "long_name"
using a routine that is designed for numeric attributes (NCAGT). To make the
code work substitute a call to NCAGTC at this point in the code and also to
assign mtlen=50 (the character width dimension of "name"). With these
two changes the code runs like a charm.