I am reading a single files that contains two namelists, written as:
write(i_donor,donor_parms)
write(i_donor,envelope_parms)
On a subsequent execution of the program, I read that file with the same namelists, the first time works fine. If I then attempt to read it again, the first namelist of the pair fails with an error code of 204. If I read a different file (created the same way), it errs with a code=202. Go back to the original failing file, code=204.
I placed a REWIND between the two reads, and (ignoring the first error), can read the second namelist successfully.
I don't quite know what these error codes mean, nor why a second (or any subsequent) attempt to read causes a failure.