-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from Goddard-Fortran-Ecosystem/develop
Various cleanup and fixes.
- Loading branch information
Showing
26 changed files
with
242 additions
and
524 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
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 @@ | ||
# my_library-config-version.cmake - checks version: major must match, minor must be less than or equal | ||
|
||
set(PACKAGE_VERSION @PFLOGGER_VERSION@) | ||
|
||
if (PACKAGE_FIND_VERSION_MAJOR EQUAL 0) | ||
set(PACKAGE_VERSION_COMPATIBLE TRUE) | ||
else() | ||
if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "@PFLOGGER_VERSION_MAJOR@") | ||
if ("${PACKAGE_FIND_VERSION_MINOR}" EQUAL "@PFLOGGER_VERSION_MINOR@") | ||
set(PACKAGE_VERSION_EXACT TRUE) | ||
elseif("${PACKAGE_FIND_VERSION_MINOR}" LESS "@PFLOGGER_VERSION_MINOR@") | ||
set(PACKAGE_VERSION_COMPATIBLE TRUE) | ||
else() | ||
set(PACKAGE_VERSION_UNSUITABLE TRUE) | ||
endif() | ||
else() | ||
set(PACKAGE_VERSION_UNSUITABLE TRUE) | ||
endif() | ||
endif() |
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,7 @@ | ||
# Package configuration file | ||
|
||
get_filename_component (SELF_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) | ||
set (PREFIX ${SELF_DIR}/../..) | ||
set (PFLOGGER_TOP_DIR ${PREFIX}/PFLOGGER-@PFLOGGER_VERSION_MAJOR@.@PFLOGGER_VERSION_MINOR@ CACHE PATH "") | ||
include ("${PFLOGGER_TOP_DIR}/cmake/PFLOGGER.cmake") | ||
|
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
set (FPP_FLAG "-cpp") | ||
set (CMAKE_Fortran_FLAGS_RELEASE "${FPP_FLAG} -O3 -free -stand f08") | ||
set (SUPPRESS_LINE_LENGTH_WARNING "-diag-disable 5268") | ||
set (CMAKE_Fortran_FLAGS_RELEASE "${FPP_FLAG} -O3 -free -stand f08 ${SUPPRESS_LINE_LENGTH_WARNING}") | ||
set (CMAKE_Fortran_FLAGS_DEBUG "${FPP_FLAG} -O0 -g -traceback \ | ||
-check uninit -free -stand f08 -save-temps") | ||
-check uninit -free -stand f08 -save-temps ${SUPPRESS_LINE_LENGTH_WARNING}") | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
add_subdirectory(serial) | ||
if (MPI) | ||
if (MPI_FOUND) | ||
add_subdirectory(mpi) | ||
endif() |
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 |
---|---|---|
@@ -1,19 +1,14 @@ | ||
include_directories(${CMAKE_BINARY_DIR}/src) | ||
include_directories(${FTL}/mod) | ||
|
||
link_directories(${FTL}/lib) | ||
|
||
# Need to access cfg files when running examples. | ||
file (GLOB CONFIG_INPUTS "${CMAKE_CURRENT_SOURCE_DIR}/*.cfg") | ||
file (COPY ${CONFIG_INPUTS} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) | ||
|
||
if (MPI) | ||
if (MPI_FOUND) | ||
|
||
add_executable(sharedFileHandle.x sharedFileHandle.F90) | ||
target_link_libraries(sharedFileHandle.x logger ftl ${MPI_Fortran_LIBRARIES}) | ||
target_link_libraries(sharedFileHandle.x pflogger MPI::MPI_Fortran) | ||
|
||
add_executable(complexMpi.x complexMpi.F90) | ||
target_link_libraries(complexMpi.x logger ftl ${MPI_Fortran_LIBRARIES}) | ||
target_link_libraries(complexMpi.x pflogger MPI::MPI_Fortran) | ||
|
||
endif() | ||
|
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.