Skip to content

Commit

Permalink
ACCESS-OM build for libaccessom2. COSIMA/access-om2#88
Browse files Browse the repository at this point in the history
  • Loading branch information
Nic Hannah committed Apr 27, 2018
1 parent 44f7aa0 commit 71671b1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions bin/mkmf.template.nci
Expand Up @@ -25,6 +25,12 @@ MAKEFLAGS += --jobs=4

INCLUDE = -I$(NETCDF_ROOT)/include

ifneq ($(LIBACCESSOM2_ROOT),)
INCLUDE += -I$(LIBACCESSOM2_ROOT)/build/oasis3-mct-prefix/src/oasis3-mct/Linux/build/lib/psmile.MPI1 \
-I$(LIBACCESSOM2_ROOT)/build/oasis3-mct-prefix/src/oasis3-mct/Linux/build/lib/mct \
-I$(LIBACCESSOM2_ROOT)/build/include
endif

ifneq ($(OASIS_ROOT),)
INCLUDE += -I$(OASIS_ROOT)/Linux/build/lib/psmile.MPI1 \
-I$(OASIS_ROOT)/Linux/build/lib/pio \
Expand Down Expand Up @@ -70,6 +76,10 @@ ifneq ($(OASIS_ROOT),)
LIBS += -L$(OASIS_ROOT)/Linux/lib -lpsmile.MPI1 -lmct -lmpeu -lscrip
endif

ifneq ($(LIBACCESSOM2_ROOT),)
LIBS += -L$(LIBACCESSOM2_ROOT)/build/lib -laccessom2
endif

LDFLAGS += $(LIBS)

#---------------------------------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions exp/MOM_compile.csh
Expand Up @@ -167,14 +167,14 @@ if( $type == MOM_solo ) then
set libs = "$executable:h:h/lib_ocean/lib_ocean.a $executable:h:h/lib_FMS/lib_FMS.a"
else if( $type == ACCESS-CM ) then
set srcList = ( accesscm_coupler )
set includes = "-I$executable:h:h/lib_FMS -I$executable:h:h/$type/lib_ocean"
set includes = "-I$executable:h:h/lib_FMS -I$executable:h:h/$type/lib_ocean"
set libs = "$executable:h:h/$type/lib_ocean/lib_ocean.a $executable:h:h/lib_FMS/lib_FMS.a"
setenv OASIS true
else if( $type == ACCESS-OM ) then
set srcList = ( accessom_coupler )
set includes = "-I$executable:h:h/lib_FMS -I$executable:h:h/$type/lib_ocean"
set includes = "-I$executable:h:h/lib_FMS -I$executable:h:h/$type/lib_ocean"
set libs = "$executable:h:h/$type/lib_ocean/lib_ocean.a $executable:h:h/lib_FMS/lib_FMS.a"
setenv OASIS true
setenv LIBACCESSOM2_ROOT $ACCESS_OM_DIR/src/libaccessom2
else if( $type == MOM_SIS ) then
set srcList = ( coupler )
set includes = "$includes -I$executable:h:h/lib_ice -I$executable:h:h/lib_atmos_null -I$executable:h:h/lib_land_null"
Expand Down

0 comments on commit 71671b1

Please sign in to comment.