[cam-users] (no subject)
eastwind2000
eastwind2000@sina.com
Tue, 30 Sep 2003 19:48:47 +0800
Dear ccm3.x users:
When I use CCM,I meet with sevral questions :
(1)I have set up ccm3.2 on my linux PC(Redhat 8.0+PGI Workstation), but I can not read the result of model, can any one give me suggestions to get the result of model? If the result is on the sigma levels, how can I change them to pressure cordinates?
(2)when I set up ccm3.6.6 on my linux PC, I have got the object files in the 'run' directory , but the information in compile_log tell me that when linking with netcdf ,it can not get the definitions of netcdf functions in model source files. I have download the netcdf tar package and set it up on my PC, and 'make test' successfully. I do guess it maybe because the compatible problems between PGI compiler and netcdf, but I do not know how to resolve it .
I list the main content of ccm3.6 Makefile here:
Makefile:
......
......
ifeq ($(LIB_NETCDF),$(null))
LIB_NETCDF :=/usr/local/lib
endif
ifeq ($(INC_NETCDF),$(null))
INC_NETCDF := /usr/local/include
endif
......
......
ifeq ($(UNAMES),Linux)
CFLAGS := $(cpp_path)
FC := pgf77
FFLAGS := $(cpp_path) -r8 -i4 -O2 -byteswapio -Mrecursive -Kieee -Mdalign -Mextend -Msecond_underscore
LDFLAGS := -L$(LIB_NETCDF) -lnetcdf
endif
----------------------------------------------------------------------------
The information in compile_log is:
......
pgf77 -o /root/ccm36/ccm/bld/../run/atm addfld.o ... zint.o zmid.o -L/usr/local/lib -lnetcdf
basinmat.o: In function `basinmat_':
basinmat.o(.text+0x577): undefined reference to `nf_open__'
basinmat.o(.text+0x5a4): undefined reference to `nf_inq_dimid__'
basinmat.o(.text+0x5f4): undefined reference to `nf_inq_dimid__'
basinmat.o(.text+0x64d): undefined reference to `nf_inq_dim__'
......
wrap_nf.o: In function `wrap_put_var8__':
wrap_nf.o(.text+0x32b): undefined reference to `nf_put_var_double__'
wrap_nf.o: In function `handle_error__':
wrap_nf.o(.text+0x3b5): undefined reference to `nf_strerror__'
gmake: *** [/root/ccm36/ccm/bld/../run/atm] Error 2
-----------------------------------------------------------------------------
Can anyone help me? Thanks.
My Email:eastwind2000@sina.com.cn
______________________________________
===================================================================
在今天享受明天,惠普招行推出贷款免息购PC (http://ad4.sina.com.cn/shc/zhuiyu_hprefresh.html)