thank you Mr.gummibaer,
for the answer,i solve the problem.it was a simple formatting error!! but now i have a new problem..it is difficult for me explain this new..but i try..
i have compiled on a linux box,one code (very long more 65000 lines).this program is called CALMET.for the input it is necessary more file ..in particular one file called calmet.inp where the user write various information..ex the start and end date...etc.
the problem is the date.i shows the calmet.inp and after the code:
Starting date: Year (IBYR) -- No default ! IBYR= 1990 !
Month (IBMO) -- No default ! IBMO= 1 !
Day (IBDY) -- No default ! IBDY= 9 !
Starting time: Hour (IBHR) -- No default ! IBHR = 4 !
Second (IBSEC) -- No default !IBSEC = 0 !
Ending date: Year (IEYR) -- No default ! IEYR = 1990 !
Month (IEMO) -- No default ! IEMO = 1 !
Day (IEDY) -- No default ! IEDY = 9 !
Ending time: Hour (IEHR) -- No default ! IEHR = 8 !
Second (IESEC) -- No default ! IESEC = 0 !
UTC time zone (ABTZ) -- No default ! ABTZ= UTC-0500 !
!NSECDT =3600 !
this produce this error:
ERROR IN SUBR. READIN -- Error in input data Array bounds exceeded --
Variable: ABTZ Declared dimension 1<-----------------------------??????
Input attempted to element 8
Input line: UTC time zone (ABTZ) -- No default ! ABTZ= UTC-0500 !
the routine that read the calmet.inp is called readin ,and on the main code it is written inthis way:
callreadin(cvdic(1,1),ivleng(1,1),ivtype(1,1),io5,io6,lecho,
1IBYR,IBMO,IBDY,IBHR,IBSEC,IEYR,IEMO,IEDY,IEHR,IESEC,CTIME(1,1),
2IBTZ,IRLG,NSECDT,IRTYPE,LCALGRD,ITEST,idum,idum,idum,idum,idum,
3idum,idum,idum,idum,idum,idum,idum,idum,idum,idum,idum,idum,
4idum,idum,idum,idum,idum,idum,idum,idum,idum,idum,idum,idum,
5idum,idum,idum,idum,idum,idum,idum,idum,idum,idum,idum,idum,
6idum,idum)
where ctime
is declared how character*4 ctime(1,4)
the routine readin is :
subroutine readin(cvdic,ivleng,ivtype,ioin,ioout,lecho,
1i1,i2,i3,i4,i5,i6,i7,i8,i9,i10,i11,i12,i13,i14,i15,i16,i17,i18,
2i19,i20,i21,i22,i23,i24,i25,i26,i27,i28,i29,i30,i31,i32,i33,i34,
3i35,i36,i37,i38,i39,i40,i41,i42,i43,i44,i45,i46,i47,i48,i49,i50,
4i51,i52,i53,i54,i55,i56,i57,i58,i59,i60)
(PURPOSE: Read one input group of the free formatted control
c file -- allows comments within the input file --
c ignores all text except that within delimiters
c
c --- NOTE: All variables (real, integer, logical,
c or character) must be 4 bytes
c --- NOTE: Character*4 array uses only one character
c per word -- it must be dimensioned large
c enough to accommodate the number of characters
c in the variable field)
c --- INPUTS di readin:
c
c CVDIC(mxvar) - character*12 array - Variable dictionary
c containing up to "MXVAR"
c variable names
c IVLENG(mxvar) - integer array - Dimension of each variable
c (dim. of scalars = 1)
c IVTYPE(mxvar) - integer array - Type of each variable
c 1 = real,
c 2 = integer,
c 3 = logical,
c 4 = character*4
c IOIN - integer - Fortran unit of control file
c input
c IOOUT - integer - Fortran unit of list file
c output
c LECHO - logical - Control variable determining
c if input data are echoed to
c list file (IOOUT)
c Parameters: MXVAR, MXCOL
c
c --- OUTPUT:
c
c I1, I2, ... - integer arrays - Variables being read
c (integer array locally, but can be a real,
c integer, logical, or character*4 array in
c the calling routine)
c
c --- READIN called by: host subroutines
c --- READIN calls: DEBLNK, ALTONU, SETVAR, ALLCAP, DEPLUS,
c TRIGHT, TLEFT
integer*4i1(*),i2(*),i3(*),i4(*),i5(*),i6(*),i7(*),i8(*),i9(*),
1i10(*),i11(*),i12(*),i13(*),i14(*),i15(*),i16(*),i17(*),i18(*),
2i19(*),i20(*),i21(*),i22(*),i23(*),i24(*),i25(*),i26(*),i27(*),
3i28(*),i29(*),i30(*),i31(*),i32(*),i33(*),i34(*),i35(*),i36(*),
4i37(*),i38(*),i39(*),i40(*),i41(*),i42(*),i43(*),i44(*),i45(*),
5i46(*),i47(*),i48(*),i49(*),i50(*),i51(*),i52(*),i53(*),i54(*),
6 i55(*),i56(*),i57(*),i58(*),i59(*),i60(*)
i don't understand where is the error..
i use the PGI compliler..
thank you anyway