Subject: Re: How to modify Makefile?
From: Jim Rosinski (rosinski@cgd.ucar.edu)
Date: Fri Jul 30 1999 - 17:15:16 MDT
On Thu, 29 Jul 1999, Xuguang Wang wrote:
> I am trying to run ccm3 on linux PC. It seems all the Makefile I have
> now only support three architectures: CRAY, SGI, SUN. If you have the
> experience for ccm3 run on linux PC, would you please show me your script
> of Makefile about the flags and rules for linux PC? And I want to know
> more about Makefile.
Here are the changes I made to the Makefile to get the code to run under
linux using Portland Group's f90 compiler. The .c files also have to be
modified to have the right number of trailing underscores to be callable
from Fortran.
----------------------------------------------------------------------------
ifeq ($(UNAMES),Linux)
CFLAGS := $(cpp_path)
FC := pgf90
FFLAGS := $(cpp_path) -mp -r8 -i4 -Msecond_underscore -byteswapio -Mrecursive
LDFLAGS := -L$(LIB_NETCDF) -mp -lnetcdf
.SUFFIXES:
.SUFFIXES: .F .c .o
.F.o:
$(FC) -c $(FFLAGS) $<
.c.o:
cc -c $(CFLAGS) $<
endif
----------------------------------------------------------------------------
In addition, if you want to run T42 resolution, you'll have to enable a
larger stacksize limit at boot time. I added the following to
/etc/initscript to enable this:
ulimit -Hs unlimited
ulimit -Ss unlimited
eval exec "$4"
----------------------------------------------------------------------------
Hope this helps.
Jim Rosinski
This archive was generated by hypermail 2b27 : Thu Jun 01 2000 - 09:28:11 MDT