| 1 |
cnh |
1.1 |
# $Id: comp_profile.blackforest_stdlib,v 1.1 2004/03/26 22:36:49 cnh Exp $ |
| 2 |
|
|
# $Name: $ |
| 3 |
|
|
# |
| 4 |
|
|
# Compiler and linker options for blackforest using ESMF standard |
| 5 |
|
|
# library build and options. |
| 6 |
|
|
# |
| 7 |
|
|
# ESMF settings to select version, compile mode etc... |
| 8 |
|
|
# |
| 9 |
|
|
set MYESMF_VER = "ESMF_1_0_4" |
| 10 |
|
|
set MYESMF_VER = "ESMF_1_0_5" |
| 11 |
|
|
set MYESMF_VER = "esmf" |
| 12 |
|
|
#set MYESMF_VER = "LAST_STABLE" |
| 13 |
|
|
set MYESMF_ROOT = "/fs/projects/css/nancy/basedir" |
| 14 |
|
|
set MYESMF_ROOT = "${BUILDROOT}/../../../../cammitrun/bld" |
| 15 |
|
|
set MYESMF_PLAT = "AIX.default.64.default" |
| 16 |
|
|
set MYESMF_OPT = "g" |
| 17 |
|
|
set MYESMF_FC = "mpxlf90_r" |
| 18 |
|
|
set MYESMF_CC = "mpcc_r" |
| 19 |
|
|
set MYESMF_FCFLAGS = "-q64" |
| 20 |
|
|
set MYESMF_CCFLAGS = "-q64" |
| 21 |
|
|
set MYESMF_LIB_DIR = ${MYESMF_ROOT}/${MYESMF_VER}/lib/lib${MYESMF_OPT}/${MYESMF_PLAT}/ |
| 22 |
|
|
set MYESMF_MOD_DIR = ${MYESMF_ROOT}/${MYESMF_VER}/mod/mod${MYESMF_OPT}/${MYESMF_PLAT}/ |
| 23 |
|
|
|
| 24 |
|
|
# MITgcm genmake2 settings |
| 25 |
|
|
set gm2optfile = "-optfile=${BUILDROOT}/../../tools/build_options/sp4" |
| 26 |
|
|
|
| 27 |
|
|
# ar command |
| 28 |
|
|
set arcommand = "ar" |
| 29 |
|
|
set aropts = "-X64 -s -rc" |
| 30 |
|
|
|
| 31 |
|
|
# C compiler |
| 32 |
|
|
set cccommand = "cc" |
| 33 |
|
|
set cccommand = "${MYESMF_CC}" |
| 34 |
|
|
set ccopts = "${MYESMF_CCFLAGS} -c" |
| 35 |
|
|
|
| 36 |
|
|
# Fortran compiler |
| 37 |
|
|
set comp = mpxlf90_r |
| 38 |
|
|
set comp = "${MYESMF_FC}" |
| 39 |
|
|
set comp_defs = "-WF,-DE_1_0_5,-DE_REGRID_IS_BROKEN" |
| 40 |
|
|
set comp_defs = "-WF,-DE_1_0_5" |
| 41 |
|
|
set compopts_def = ( ${comp_defs} \ |
| 42 |
|
|
-qfixed=132 -g \ |
| 43 |
|
|
-qmaxmem=-1 -bmaxdata:0x80000000 \ |
| 44 |
|
|
-brtl -lC -qautodbl ${MYESMF_FCFLAGS} ) |
| 45 |
|
|
set compopts_num = ( ${comp_defs} \ |
| 46 |
|
|
-qfixed=132 -O3 \ |
| 47 |
|
|
-qmaxmem=-1 -bmaxdata:0x80000000 \ |
| 48 |
|
|
-brtl -lC -qautodbl ${MYESMF_FCFLAGS} ) |
| 49 |
|
|
set compopts = ( ${compopts_def} ) |
| 50 |
|
|
|
| 51 |
|
|
# Link settings |
| 52 |
|
|
set linkcomm = ( ${MYESMF_FC} -g ) |
| 53 |
|
|
set complibs = ( -L${MYESMF_LIB_DIR} -lesmf ) |
| 54 |
|
|
set compinc = ( -I${MYESMF_MOD_DIR} ) |
| 55 |
|
|
set compinc = ( ${compinc} -I${BUILDROOT}/esmf_top ) |