site map - email us - search  
 

General Questions

NCAR IBM Related Questions

Terrain

Regrid

Datagrid

Rawins

MM5

Graph

Conventions used in MM5

Trouble shooting and clues on various computers


 

MM5 version 3 Model on SUN

Compiling MM5 V3 on SUN

These flags where tested on a SunOS 5.8, Generic_108528-21 sun4u sparc SUNW, Sun-Fire, running Sun Workshop 6 update 1 FORTRAN 77 5.2

On this machine the combination of '-O2' optimization and the '-fast' compilation flag also evoked the '-depend' flag, which generated some loop unrolling and global optimizations which were incompatible with current MM5 version. Although the code complied, the model hanged up during run time.

This can be solved by adding the '-nodepend' flags (see flags below) to disable all dependence.

RUNTIME_SYSTEM = "SUN"
FC = f77
FCFLAGS = -fast -nodepend -O2 -I$(LIBINCLUDE)
CFLAGS =
LDOPTIONS = -fast -nodepend -O2
CPP = /usr/lib/cpp
CPPFLAGS = -I$(LIBINCLUDE) -C -P
LOCAL_LIBRARIES =
MAKE = make -i -r

Thanks to Cui Hong, from the Department of Civil and Structural Engineering, Hong Kong Polytechnic University, Hong Kong for this feedback.

 

UCAR Privacy Policy - Terms of Use - ©2003UCAR