Skip to content

Commit df53433

Browse files
committed
Adding support for PnetCDF in HOMME on Anvil
Adding support for the PnetCDF library in HOMME on Anvil. This configuration files are used for standalone HOMME builds on Anvil
1 parent c411a79 commit df53433

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

components/homme/cmake/machineFiles/anvil.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ ENDIF()
2020
# Set kokkos arch, to get correct avx flags
2121
SET (Kokkos_ARCH_BDW ON CACHE BOOL "")
2222

23-
SET (WITH_PNETCDF FALSE CACHE FILEPATH "")
23+
EXECUTE_PROCESS(COMMAND pnetcdf-config --prefix
24+
RESULT_VARIABLE PNCCONFIG_RESULT
25+
OUTPUT_VARIABLE PNCCONFIG_OUTPUT
26+
ERROR_VARIABLE PNCCONFIG_ERROR
27+
OUTPUT_STRIP_TRAILING_WHITESPACE
28+
)
29+
SET (PnetCDF_PATH "${PNCCONFIG_OUTPUT}" CACHE STRING "")
30+
2431
#
2532
# anvil module system doesn't set environment variables, but will put
2633
# nc-config in our path. anvil seperates C and Fortran libraries,

0 commit comments

Comments
 (0)