Skip to content

Commit

Permalink
Adding support for PnetCDF in HOMME on Anvil
Browse files Browse the repository at this point in the history
Adding support for the PnetCDF library in HOMME on Anvil. This
configuration files are used for standalone HOMME builds on
Anvil
  • Loading branch information
jayeshkrishna committed Aug 16, 2024
1 parent c411a79 commit df53433
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/homme/cmake/machineFiles/anvil.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,14 @@ ENDIF()
# Set kokkos arch, to get correct avx flags
SET (Kokkos_ARCH_BDW ON CACHE BOOL "")

SET (WITH_PNETCDF FALSE CACHE FILEPATH "")
EXECUTE_PROCESS(COMMAND pnetcdf-config --prefix
RESULT_VARIABLE PNCCONFIG_RESULT
OUTPUT_VARIABLE PNCCONFIG_OUTPUT
ERROR_VARIABLE PNCCONFIG_ERROR
OUTPUT_STRIP_TRAILING_WHITESPACE
)
SET (PnetCDF_PATH "${PNCCONFIG_OUTPUT}" CACHE STRING "")

#
# anvil module system doesn't set environment variables, but will put
# nc-config in our path. anvil seperates C and Fortran libraries,
Expand Down

0 comments on commit df53433

Please sign in to comment.