Subject: Dirty tricks for tools on DEC
From: Mahally Kudsy (m_kudsy@yahoo.com)
Date: Wed Apr 10 2002 - 20:06:23 MDT
Users,
Finally with a lot of headaches I managed to compile
tools for CCM3 on DEC Alpha OSF1 V4.0 878 with f90. I
named my configuration as Dirty Trick, since I used
the building directives for SUN.
First of all my machine does not understand .F90
extension however I tried, so I renamed all .F90 files
to .f90 using a simple script, and chaged all F90 to
f90 in the Makefile file.
And slightly modified Makefile.
Below is example for definesurf
I modified SUN parts in the Makefile so it looks like:
#-----------------------------------------------------------------------
# OSF1 derived from SUN
#-----------------------------------------------------------------------
ifeq ($(UNAMES),OSF1)
CPP := /usr/lib/cpp
CFLAGS := -DSUN $(cpp_path)
FFLAGS := -DSUN $(cpp_path) -c -cpp -r8 -i4 -O2
LDFLAGS := -L$(LIB_NETCDF) -lnetcdf -nofor_main
FC := f90
.F.o:
$(FC) $(FFLAGS) $<
endif
beware that I add an ld option -nofor_main, since the
codes are mixed of c and f90. And also I deleted a
space between -L$ and (LIB_NETCDF), since my ld does
not know it.
In gauaw.f90, I commented out options for CRAY, since
my f90 doest not understand (line 46, 48, 49, 51), and
similarly in wrap_nf.f90
Thats all, and then gmake run well
Cheers
Mahally Kudsy
Weather Modification Technical Unit
Agency for Assessment and Application of Technology
Jakarta Indonesia
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
This archive was generated by hypermail 2b27 : Wed Apr 10 2002 - 21:52:24 MDT