[RegCNET] terrain.x

XUNQIANG BI bixq at ictp.it
Thu May 24 09:06:42 CEST 2007


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 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



More information about the RegCNET mailing list