[RegCNET] terrain.x
XUNQIANG BI
bixq at ictp.it
Thu May 24 16:49:18 CEST 2007
On Thu, 24 May 2007, Michael Notaro wrote:
> Thanks. So those errors relate to f90 vs f77?
Well, here f90 I mean FORTRAN 90 (or 95) compiler,
> I thought there might be a netcdf library problem.
Yes, on Linux the present RegCM3 version only supports Portland FORTRAN
compiler (pgf90) and Intel FORTRAN compiler (IFC) and we just provide
the corresponding netCDF libraries of them.
The version doesn't work with g77, even though you can add netCDF
library, but it is not enough, g77 cannot read big-endian binary
datasets (like SOILCAT.05, AEROSOL.dat, GISST_194712_200209, etc.),
And g77 might have problem for some sentences we used in codes.
By the way, it's the historical reason that most of Atmospheric
Models only support big-endian binary data (RegCM, MM5, and even
WRF). In future, it's possible to remove this dependence, if we
only are allowed to have netCDF files as input/output.
>
> Thanks, Mike
>
> On May 24, 2007, at 2:06 AM, XUNQIANG BI wrote:
>
>>
>> Hi, Michael:
>>
>> On Wed, 23 May 2007, Michael Notaro wrote:
>>
>> > Hello. I am running through the regcm3 tutorial now.
>> > I am at the step "Set up the Domain."
>> > I have been unable to run terrain.x, probably since my
>> > Makefile is wrong. I am running an a linux system.
>>
>> The present RegCM3 version requires at least f90 (or above),
>> and g77 (free GNU FORTRAN compiler) doesn't work with the
>> present version (because it doesn't work with big-endian binary data
>> and it's just FORTRAN 77 standard).
>>
>> We might consider to add to support g95 later and we plan to
>> work on this.
>>
>> At this moment, you'd better install the non-commercial version
>> of Intel FORTRAN compiler (IFC):
>> http://www.intel.com/software/products/compilers/flin/noncom.htm
>>
>> Regards,
>> Xunqiang Bi
>> > Any suggestions?
>> >
>> >
>> > This is the error:
>> > g77 -c -I/home/notaro/regcm3/Commons/env/include terrain.f
>> > terrain.f: In subroutine `rddatcdfi2':
>> > terrain.f: 4214: warning:
>> > CALL NCVGT(idcdf, invarid, istart, icount, igrid, iflag)
>> > 1
>> > terrain.f:4252: (continued):
>> > CALL NCVGT(idcdf, invarid, istart, icount, igrid, iflag)
>> > 2
>> > Argument #5 of `ncvgt' is one precision at (2) but is some other
>> > precision at (1) [info -f g77 M GLOBALS]
>> > g77 -o terrain terrain.o -I/home/notaro/regcm3/Commons/env/include
>> > terrain.o(.text+0x1899d): In function `rdldtr_':
>> > : undefined reference to `ncopn_'
>> > terrain.o(.text+0x18af4): In function `rdldtr_':
>> > : undefined reference to `ncopn_'
>> > etc.......
>> >
>> >
>> >
>> > Here's my makefile:
>> >
>> > # Makefile for RegCM@ run on PC_LINUX by using Portland Group
>> > FORTRAN compiler
>> > # version 3.2-4
>> >
>> > FC = g77 -L /home/notaro/regcm3/Commons/env/liblinux/libnetcdf.a
>> > FFLAGS = -I/home/notaro/regcm3/Commons/env/include
>> >
>> > LD = $(FC)
>> >
>> > SRC = terrain.f
>> >
>> > OBJ = terrain.o
>> >
>> > all: terrain
>> >
>> > .f.o:
>> > $(FC) -c $(FFLAGS) $*.f
>> >
>> > terrain: $(OBJ)
>> > $(LD) -o $@ $(OBJ) $(FFLAGS)
>> >
>> > clean:
>> > rm -f *.o terrain
>> > # --------------------------------------------------------------------
>> > # DO NOT DELETE THIS LINE -- make depend depends on it.
>> >
>> > terrain.o: domain.param terrain.f
>> >
>> > _______________________________________________
>> > RegCNET mailing list
>> > RegCNET at lists.ictp.it
>> > https://lists.ictp.it/mailman/listinfo/regcnet
>> >
>>
>> ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Dr. Xunqiang Bi email:bixq at ictp.it
>> Earth System Physics Group
>> The Abdus Salam ICTP
>> Strada Costiera, 11
>> P.O. BOX 586, 34100 Trieste, ITALY
>> Tel: +39-040-2240302 Fax: +39-040-2240449
>> ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dr. Xunqiang Bi email:bixq at ictp.it
Earth System Physics Group
The Abdus Salam ICTP
Strada Costiera, 11
P.O. BOX 586, 34100 Trieste, ITALY
Tel: +39-040-2240302 Fax: +39-040-2240449
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the RegCNET
mailing list