You are here

run-time error

Please help me, I keep getting errors when my preprocessor gets to the wsc.npt file: [ forrtl:severe(408):fort:(2):subscript#1 of the array DLX has value 53 which is greater than the upper bound of 52 ] and error is displayed in pre.err: Julian date 80.000: WSC AT SEG(I)= 52 <= 0.0 in wsc.npt Julian date 444.000: WSC AT SEG(I)= 52 <= 0.0 in wsc.npt I 've checked WSC and did not find the problem.
Forums: 

That error sounds more like it is a problem with your bathymetry file rather than the WSC.npt. The errors in WSC seem pretty standard. I don't know fortran, but it sort of sounds like there is an array size mismatch for the DLX card (which is in your bathymetry file). I would check to be sure the number of entries you have in the DLX card for each water-body matches the number of segments you have specified in the BRANCH G card in the w2_con.npt file. Remember that you should specify DLX distances even for inactive segments. I cannot replicate anything that results in the error you are getting however, but I would look around that bath file for some clues. The WSC errors you are getting in the pre.err are very common, and are just warning you that the sheltering coefficients are 0, which is typically a sign that they were accidentally entered as zero.