Skip to content

Commit

Permalink
version of the driver used in GMD 2021 paper
Browse files Browse the repository at this point in the history
  • Loading branch information
uturuncoglu committed Dec 22, 2020
1 parent 7c2c794 commit e65425a
Show file tree
Hide file tree
Showing 6 changed files with 227 additions and 1,128 deletions.
9 changes: 8 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ CPPFLAGS += -I$(ATM_PREFIX)/Main -I$(ATM_PREFIX)/Main/mpplib \
libatm_a_LIBADD = $(wildcard $(ATM_PREFIX)/Main/*.o) \
$(wildcard $(ATM_PREFIX)/Main/*/*.o) \
$(wildcard $(ATM_PREFIX)/Main/*/*/*.o) \
$(wildcard $(ATM_PREFIX)/frame/*.o) \
$(wildcard $(ATM_PREFIX)/Share/*.o)
endif
if DO_COMPILE_WRF
Expand All @@ -53,6 +54,9 @@ CPPFLAGS += -I$(ATM_PREFIX)/Registry \
-I$(ATM_PREFIX)/external/esmf_time_f90 \
-I$(ATM_PREFIX)/main \
-I$(ATM_PREFIX)/share
if WRF_PNETCDF_SUPPORT
CPPFLAGS += -I$(ATM_PREFIX)/external/io_pnetcdf
endif
libatm_a_LIBADD = $(wildcard $(ATM_PREFIX)/external/RSL_LITE/*.o) \
$(wildcard $(ATM_PREFIX)/external/io_netcdf/*.o) \
$(wildcard $(ATM_PREFIX)/external/io_grib1/*.o) \
Expand All @@ -66,6 +70,9 @@ libatm_a_LIBADD = $(wildcard $(ATM_PREFIX)/external/RSL_LITE/*.o) \
$(wildcard $(ATM_PREFIX)/frame/*.o) \
$(wildcard $(ATM_PREFIX)/dyn_em/*.o) \
$(ATM_PREFIX)/main/module_wrf_top.o
if WRF_PNETCDF_SUPPORT
libatm_a_LIBADD += $(wildcard $(ATM_PREFIX)/external/io_pnetcdf/*.o)
endif
endif
endif

Expand Down Expand Up @@ -194,7 +201,7 @@ else
regesm_x_SOURCES += mod_esmf_cop_void.F90
endif

FCLD = $(MPIFC)
FCLD = $(MPIFC) -qopenmp

%.o: %.f90
$(FC) $(CPPFLAGS) $(FCFLAGS) -c $<
Expand Down
9 changes: 9 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,15 @@ fi
AM_CONDITIONAL(DO_COMPILE_RCM, [test x"$NO_RCM_SUPPORT" = x0])
AM_CONDITIONAL(DO_COMPILE_WRF, [test x"$NO_WRF_SUPPORT" = x0])

# check parallel I/O for WRF
if eval "test x$DO_COMPILE_WRF != x0"; then
WRF_PNETCDF_SUPPORT=0
AC_CHECK_FILE([$ATM_PREFIX/external/io_pnetcdf/wrf_io.o],
[WRF_PNETCDF_SUPPORT=1; AC_MSG_NOTICE([compiling WRF with pnetcdf support])])
fi

AM_CONDITIONAL(WRF_PNETCDF_SUPPORT, [test x"$WRF_PNETCDF_SUPPORT" = x1])

# check OCN
AC_ARG_WITH([ocn],
AC_HELP_STRING([--with-ocn],
Expand Down
Loading

0 comments on commit e65425a

Please sign in to comment.