[MITgcm-support] Query ?
Ed Hill
ed at eh3.com
Thu Jun 3 09:33:15 EDT 2004
On Thu, 2004-06-03 at 07:50, Amitabh Mitra wrote:
>
>
> Dear Sir,
>
> I want to run the lab_sea experiment on Sgi Origin ( o.s irix 6.5)
>
> For this I am using the fortran 90 compiler .
>
> I have created the Makefile and the file dependencies
>
> in the 'build' directory using all the packages except
>
> thsice pkg and sbo pkg .
>
> But as I give the 'make' command the following error is displayed
>
> $ cd mit/MITgcm/verification/lab*
> $ ls
> CVS README build code input matlab results
> $ cd build
> $ make
> cat seaice_init.F | ../../../tools/set64bitConst.sh | /lib/cpp -P -DALLOW_USE_M
> PI -DALWAYS_USE_MPI -DTARGET_SGI -DWORDLENGTH=4 -DHAVE_SYSTEM -DHAVE_FDATE -I. >
> seaice_init.f
> f90 -n32 -extend_source -bytereclen -O3 -OPT:Olimit=0:roundoff=3:div_split=ON:al
> ias=typed -c seaice_init.f
>
> DO WHILE ( abs(rC(KGEO(I,J,bi,bj))) .LT. 50.0 .AND.
> ^
> f90-319 f90: ERROR SEAICE_INIT, File = seaice_init.f, Line = 3615, Column = 34
> A subscript must be a scalar integer expression.
>
> f90: MIPSpro Fortran 90 Version 7.3 (f52) Thu Jun 3, 2004 16:53:55
> f90: 3725 source lines
> f90: 1 Error(s), 0 Warning(s), 0 Other message(s), 0 ANSI(s)
> cf90: "explain cf90-message number" gives more information about each message
> make: *** [seaice_init.o] Error 2
> $
>
>
>
> Maybe something is wrong with the file seaice_init.f or this may be
>
> a compiler problem.
>
> What could be the error ?
Hi Amitabh,
I agree, it looks like a compiler problem. Specifically, it looks like
your MIPSPro compiler is trying to treat the code as Fortran-90 when the
MITgcm model follows the Fortran-77 standard.
Heres two things that you can do:
1) Try a different set of compiler options. For instance, does
your MIPSPro compiler have an option to specify that its
working with Fortran-77 source, not Fortran-90/95? Most modern
F90/95 compilers have such an option.
2) Get a different compiler. Theres at least one other compiler
(GNU g77) that will run on your SGI platform. Is it installed?
Good luck,
Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
emails: eh3 at mit.edu ed at eh3.com
URLs: http://web.mit.edu/eh3/ http://eh3.com/
phone: 617-253-0098
fax: 617-253-4464
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20040603/313e1c6c/attachment.sig>
More information about the MITgcm-support
mailing list