-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refactoring' into refactoring_sigma0
- Loading branch information
Showing
63 changed files
with
7,231 additions
and
645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# FindMULTIO.cmake | ||
|
||
include(FindPackageHandleStandardArgs) | ||
|
||
# Use the environment variable as a hint | ||
set(MULTIO_HINT_PATH $ENV{MULTIO_INSTALL_PATH}) | ||
|
||
# Try to find the library | ||
find_library(MULTIO_FAPI_LIBRARY | ||
NAMES multio-fapi # Adjust this if the library name is different | ||
HINTS ${MULTIO_HINT_PATH}/lib | ||
) | ||
|
||
# Try to find the dependency library | ||
find_library(MULTIO_API_LIBRARY | ||
NAMES multio-api | ||
HINTS ${MULTIO_HINT_PATH}/lib | ||
) | ||
|
||
# Try to find the dependency library | ||
find_library(MULTIO_LIBRARY | ||
NAMES multio | ||
HINTS ${MULTIO_HINT_PATH}/lib | ||
) | ||
|
||
# Try to find the Fortran module path | ||
find_path(MULTIO_MODULE_PATH | ||
NAMES multio_api.mod # Replace <module_name> with an actual module name you expect to find | ||
HINTS ${MULTIO_HINT_PATH}/module ${MULTIO_HINT_PATH}/multio/module | ||
) | ||
|
||
|
||
# Aggregate the libraries for easier linking | ||
set(MULTIO_LIBRARIES ${MULTIO_FAPI_LIBRARY} ${MULTIO_API_LIBRARY} ${MULTIO_LIBRARY}) | ||
|
||
|
||
# Handle the results | ||
find_package_handle_standard_args(MULTIO | ||
REQUIRED_VARS MULTIO_LIBRARIES MULTIO_MODULE_PATH | ||
FOUND_VAR MULTIO_FOUND | ||
) | ||
|
||
# If found, set the MULTIO_LIBRARIES and MULTIO_INCLUDE_DIRS variables for easy use | ||
if(MULTIO_FOUND) | ||
set(MULTIO_INCLUDE_DIRS ${MULTIO_MODULE_PATH}) | ||
endif() | ||
|
||
# Mark variables as advanced | ||
mark_as_advanced(MULTIO_LIBRARY MULTIO_MODULE_PATH) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
find_path(OASIS_Fortran_INCLUDE_DIRECTORIES mod_oasis.mod HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile) | ||
find_library(OASIS_Fortran_LIBRARIES psmile HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile) | ||
|
||
find_path(MCT_Fortran_INCLUDE_DIRECTORIES mct_mod.mod HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile/mct) | ||
find_library(MCT_Fortran_LIBRARIES mct HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile/mct) | ||
|
||
find_path(MPEU_Fortran_INCLUDE_DIRECTORIES m_mpout.mod HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile/mct) | ||
find_library(MPEU_Fortran_LIBRARIES mpeu HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile/mct) | ||
|
||
find_path(SCRIP_Fortran_INCLUDE_DIRECTORIES remap_bicubic_reduced.mod HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile/scrip) | ||
find_library(SCRIP_Fortran_LIBRARIES scrip HINTS ${TOPLEVEL_DIR}/../oasis/build/lib/psmile/scrip) | ||
|
||
find_path(YAC_Fortran_INCLUDE_DIRECTORIES mo_yac_utils.mod HINTS ${TOPLEVEL_DIR}/../oasis/lib/yac/include) | ||
find_library(YACUTILS_Fortran_LIBRARIES yac_utils HINTS ${TOPLEVEL_DIR}/../oasis/lib/yac/lib) | ||
find_library(YACCORE_Fortran_LIBRARIES yac_core HINTS ${TOPLEVEL_DIR}/../oasis/lib/yac/lib) | ||
|
||
find_path(YAXT_Fortran_INCLUDE_DIRECTORIES yaxt.mod HINTS ${TOPLEVEL_DIR}/../oasis/lib/yaxt/include) | ||
find_library(YAXT_Fortran_LIBRARIES yaxt HINTS ${TOPLEVEL_DIR}/../oasis/lib/yaxt/lib) | ||
find_library(YAXTC_Fortran_LIBRARIES yaxt_c HINTS ${TOPLEVEL_DIR}/../oasis/lib/yaxt/lib) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.