Skip to content

Commit

Permalink
added the ParallelWorks platform into the system
Browse files Browse the repository at this point in the history
  • Loading branch information
pvelissariou1 committed Mar 31, 2023
1 parent 807183f commit c1f3870
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/Platforms/configure_gnu.hera.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
### DEFINITIONS FOR THE "hera" HPC ENVIRONMENT THAT USES THE GNU COMPILERS
###########################################################################

message(FATAL_ERROR "The GNU family of compilers are not supported on this platform.")
#message(FATAL_ERROR "The GNU family of compilers are not supported on this platform.")

###========================================
### Check the environment and set required variables
Expand Down
39 changes: 39 additions & 0 deletions cmake/Platforms/configure_gnu.pworks.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
###########################################################################
### CMake Build System for the Parametric Hurricane Model (PaHM)
###
### Author: Panagiotis Velissariou <[email protected]>
###
### DEFINITIONS FOR THE "hera" HPC ENVIRONMENT THAT USES THE GNU COMPILERS
###########################################################################

#message(FATAL_ERROR "The GNU family of compilers are not supported on this platform.")

###========================================
### Check the environment and set required variables
###========================================
include(PlatformFuncs)


########## BEG:: CHECK FOR HDF5 ##########
get_env_hdf5()

if(NOT _DEFINED_HDF5)
#Do nothing
endif()
########## END:: CHECK FOR HDF5 ##########


########## BEG:: CHECK FOR NETCDF ##########
get_env_netcdf()

if(NOT _DEFINED_NETCDF)
#message(FATAL_ERROR "Couldn't find any of the NETCDF* environment variables.\n"
# "Load the appropriate NetCDF environment module before running cmake.")
endif()
########## END:: CHECK FOR NETCDF ##########


########## BEG:: PLATFORM CUSTOMIZED SETTINGS ##########
#set(_DEFINED_HDF5 TRUE)
#set(_DEFINED_NETCDF TRUE)
########## END:: PLATFORM CUSTOMIZED SETTINGS ##########
45 changes: 45 additions & 0 deletions cmake/Platforms/configure_intel.pworks.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
###########################################################################
### CMake Build System for the Parametric Hurricane Model (PaHM)
###
### Author: Panagiotis Velissariou <[email protected]>
###
### DEFINITIONS FOR THE "hera" HPC ENVIRONMENT THAT USES THE INTEL COMPILERS
###########################################################################

# Check if the intel module is loaded so we have access to the Intel compilers.
#if("$ENV{INTEL_LICENSE_FILE}" STREQUAL "")
# message(FATAL_ERROR "The intel module is not loaded. Load the module before running this cmake")
#endif()
if("$ENV{INTEL_LICENSE_FILE}" STREQUAL "")
message(WARNING "The INTEL_LICENSE_FILE variable is not set. Is the intel module loaded? If not, load the module before running this cmake")
endif()

###========================================
### Check the environment and set required variables
###========================================
include(PlatformFuncs)


########## BEG:: CHECK FOR HDF5 ##########
get_env_hdf5()

if(NOT _DEFINED_HDF5)
#Do nothing
endif()
########## END:: CHECK FOR HDF5 ##########


########## BEG:: CHECK FOR NETCDF ##########
get_env_netcdf()

if(NOT _DEFINED_NETCDF)
#message(FATAL_ERROR "Couldn't find any of the NETCDF* environment variables.\n"
# "Load the appropriate NetCDF environment module before running cmake.")
endif()
########## END:: CHECK FOR NETCDF ##########


########## BEG:: PLATFORM CUSTOMIZED SETTINGS ##########
#set(_DEFINED_HDF5 TRUE)
#set(_DEFINED_NETCDF TRUE)
########## END:: PLATFORM CUSTOMIZED SETTINGS ##########

0 comments on commit c1f3870

Please sign in to comment.