Skip to content

Commit

Permalink
Merge branch 'mark-petersen/mpas/standalone-compile-fix' into next (PR
Browse files Browse the repository at this point in the history
…#6134)

Fix MPAS standalone compile issues

These two small changes allow MPAS components to compile in stand-alone
mode. It should not affect E3SM compile or simulations. The fixes are:
* A missing endif was added to the Makefile
* A redundant corelist declaration was removed from mpas.F because it
  was added to mpas_subdriver.F in PR Introduce MOAB coupler interfaces
  and update moab driver #5979, and the subdriver is used by mpas.F.
These fixes should work for ocean, sea ice, and MALI cores.

Fixes #6133
Fixes #6138

[BFB]
  • Loading branch information
jonbob committed Jan 9, 2024
2 parents dccaffe + 1496cab commit 5d25bf6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions components/mpas-framework/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,7 @@ endif

ifeq "$(USE_SHTNS)" "true"
override CPPFLAGS += -DUSE_SHTNS
endif

ifneq "$(MOAB_PATH)" ""
CPPINCLUDES += -DHAVE_MOAB -I$(MOAB_PATH)/include
Expand Down
1 change: 0 additions & 1 deletion components/mpas-framework/src/driver/mpas.F
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ program mpas

implicit none

type (core_type), pointer :: corelist => null()
type (domain_type), pointer :: domain => null()

call mpas_init(corelist, domain)
Expand Down

0 comments on commit 5d25bf6

Please sign in to comment.