[RegCNET] terrain.x

Michael Notaro mnotaro at wisc.edu
Thu May 24 00:16:54 CEST 2007


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



More information about the RegCNET mailing list