Skip to content

Commit

Permalink
Fixes for ESMF with MPT (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathomp4 authored Jun 10, 2022
1 parent 80d53dc commit e9dfd0b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@
### Removed
### Added

## [7.3.0] - 2022-0609
## [7.3.1] - 2022-06-10

### Fixed

- Fixed issue with building ESMF with MPT

## [7.3.0] - 2022-06-09

### Updates

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.3.0
7.3.1
14 changes: 8 additions & 6 deletions esmf_rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,16 @@ endif
export ESMF_MPILAUNCHOPTIONS
endif
endif
endif
endif

# ESMF_COMM=mpt expects mpicxx to be icpc
# ---------------------------------------
# ESMF_COMM=mpt expects mpicxx to be icpc and mpicc to be icc
# -----------------------------------------------------------
ifeq ($(ESMF_COMPILER), intel)
ifeq ($(ESMF_COMM), mpt)
MPICXX_CXX=icpc
export MPICXX_CXX
MPICC_CC=icc
export MPICC_CC
endif
endif

Expand All @@ -74,7 +76,7 @@ endif
$(warning Using $(ESMF_F90COMPILEOPTS) as the ESMF F90COMPILEOPTS)
$(warning Using $(ESMF_ABI) as the ESMF ABI)

# ESMF_COMM
# ESMF_COMM
# ESMF_ABI
# ESMF_OS

Expand All @@ -100,7 +102,7 @@ endif

export ESMF_DIR ESMF_BOPT ESMF_COMPILER ESMF_INSTALL_PREFIX ESMF_OS ESMF_INSTALL_HEADERDIR ESMF_INSTALL_MODDIR ESMF_INSTALL_LIBDIR ESMF_INSTALL_BINDIR ESMF_F90COMPILEOPTS ESMF_ABI

esmf.config config:
esmf.config config:
@echo "Customized ESMF build step $@..."
@touch esmf.config

Expand Down Expand Up @@ -171,7 +173,7 @@ esmf.pythoncheck pythoncheck: esmf.install
@echo "Customized ESMF build step $@..."
@(cd $(ESMF_DIR)/src/addon/ESMPy; export PYTHONPATH=$(ESMF_INSTALL_LIBDIR)/python2.7/site-packages; $(ESMF_PYTHON) setup.py test)

%:
%:
@echo "Customized ESMF build step $@..."
@(cd $(ESMF_DIR); $(MAKE) -e $@)

0 comments on commit e9dfd0b

Please sign in to comment.