Skip to content

Commit

Permalink
machines: conda_linux: fix NetCDF-enabled build
Browse files Browse the repository at this point in the history
The Makefile macro file for conda on Linux was not updated when
Icepack learned to do NetCDF output in e1f3574 (Netcdf History
Capability (#368), 2021-08-30), on the macOS one was updated.
Tweak the Linux build similarly.
  • Loading branch information
davidclemenssewall committed Jan 24, 2023
1 parent 3a4d02e commit 2b0af54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions configuration/scripts/machines/Macros.conda_linux
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ CC := $(SCC)
FC := $(SFC)
LD := $(FC)

# Location of the compiled Fortran modules (NetCDF)
MODDIR += -I$(CONDA_PREFIX)/include

# Libraries to be passed to the linker
SLIBS := -L$(CONDA_PREFIX)/lib -lnetcdf -lnetcdff

# Necessary flag to compile with OpenMP support
ifeq ($(ICE_THREADED), true)
LDFLAGS += -fopenmp
Expand Down

0 comments on commit 2b0af54

Please sign in to comment.