Hello
I am having some problems getting this code which is available on the internet to compile properly as availably fom here:
During compilation it generates a number of warning messages and one fatal error that causes compilation to fail at the position indicated below where I have put 'compilation fails here' I have included a small section of the program code where the error is occurring--- the full code can be downloaded from the website link
c c----------------------------------------------------------------------- c parameter(iglob = 1-(int(((deast-dwest)/360.d0) + 1.d-5)), & ncols = nint((deast-dwest)/dlon) & +(1-icell)*(1-iflag)iglob, & nrows = nint((dnorth-dsouth)/dlat) & +(1-icell)(1-iflag), & mmax0 = max(lmax,kmax), & nmax0 = max(mmax0,jmax), & nmax01 = nmax0+1, & nmax02 = nmax0+2, & jcol = nint(360.d0/dlon), & jfft = max(jcol,nmax01)) -------- compilation fails here
c c-----------------------------------------------------------------------
error messages from compilation
Compiling file: harmonic_synth_v02.f D:\gmt\User\harmonic_synth_v02.F(136) : error 922 - INT with REAL(KIND=2) arguments is not permitted in an initialisation expression .... plus a lot of warning messgages
The program is stated as being written in Fortran 77, but I would not have thought that would be a big issue. I am just starting out on Fortran programming so need some advice as to what is causing the fatal error at compilation. I have contacted the program code distributors and was told that the reason the program fails to compile is because it may depend on the compiler used, which sounds odd if it is standard F77 code. Thanks
Lester
'Imagination is more important than knowledge' - Albert Einstein (1879 - 1955)