forked from OpenFOAM/ThirdParty-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Will Bainbridge
committed
Jul 5, 2024
1 parent
feccdaa
commit 8b1a6e3
Showing
3,406 changed files
with
323,960 additions
and
1 deletion.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,133 @@ | ||
|
||
|
||
# | ||
# A) Define the package | ||
# | ||
|
||
TRIBITS_PACKAGE(Zoltan) | ||
|
||
# | ||
# B) Set up package-specific options | ||
# | ||
|
||
TRIBITS_ADD_OPTION_AND_DEFINE( ${PACKAGE_NAME}_ENABLE_UINT_IDS | ||
UNSIGNED_INT_GLOBAL_IDS | ||
"typedef unsigned int ZOLTAN_ID_TYPE" | ||
OFF ) | ||
|
||
TRIBITS_ADD_OPTION_AND_DEFINE( ${PACKAGE_NAME}_ENABLE_ULONG_IDS | ||
UNSIGNED_LONG_GLOBAL_IDS | ||
"typedef unsigned long ZOLTAN_ID_TYPE" | ||
OFF ) | ||
|
||
TRIBITS_ADD_OPTION_AND_DEFINE( ${PACKAGE_NAME}_ENABLE_ULLONG_IDS | ||
UNSIGNED_LONG_LONG_GLOBAL_IDS | ||
"typedef unsigned long long ZOLTAN_ID_TYPE" | ||
OFF ) | ||
|
||
TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_HUND | ||
HAVE_ZOLTAN_HUND | ||
"Enable support for HUND in ${PACKAGE_NAME}." | ||
OFF ) | ||
|
||
TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_KNUTH_HASH | ||
HAVE_ZOLTAN_KNUTH_HASH | ||
"Enable support for Knuth's hash function in ${PACKAGE_NAME}." | ||
OFF ) | ||
|
||
TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_F90INTERFACE | ||
BUILD_ZOLTAN_F90_INTERFACE | ||
"Enable build of F90 interface to ${PACKAGE_NAME}." | ||
OFF ) | ||
|
||
TRIBITS_ADD_OPTION_AND_DEFINE(${PACKAGE_NAME}_ENABLE_PURIFY | ||
HAVE_PURIFY | ||
"Enable work-arounds to purify bugs." | ||
OFF ) | ||
|
||
OPTION(${PACKAGE_NAME}_ENABLE_CPPDRIVER | ||
"Enable C++ driver for ${PACKAGE_NAME}." | ||
${${PROJECT_NAME}_ENABLE_CXX} ) | ||
|
||
IF (${PROJECT_NAME}_ENABLE_CXX) | ||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMPICH_IGNORE_CXX_SEEK") | ||
ENDIF() | ||
|
||
IF(${PROJECT_NAME}_ENABLE_Fortran AND BUILD_ZOLTAN_F90_INTERFACE) | ||
|
||
# Special Fortran compiler-specific flags | ||
IF (${CMAKE_Fortran_COMPILER_ID} MATCHES "PGI") | ||
SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -DPGI") | ||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPGI") | ||
ENDIF() | ||
|
||
IF (${CMAKE_Fortran_COMPILER_ID} MATCHES "LAHEY") | ||
SET(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -DFUJITSU") | ||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DFUJITSU") | ||
ENDIF() | ||
|
||
SET(ZOLTAN_BUILD_ZFDRIVE YES) | ||
ENDIF() | ||
|
||
# | ||
# C) Add the libraries, tests, and examples | ||
# | ||
|
||
IF (NOT TPL_ENABLE_MPI) | ||
ADD_SUBDIRECTORY(siMPI) | ||
SET(ZOLTAN_BUILD_ZFDRIVE NO) | ||
ENDIF() | ||
|
||
ADD_SUBDIRECTORY(src) | ||
|
||
TRIBITS_ADD_TEST_DIRECTORIES(src/driver) | ||
|
||
IF(ZOLTAN_BUILD_ZFDRIVE) | ||
# CMAKE version > 2.6.4 is needed; earlier versions use C++ compiler to link | ||
# fdriver, while fdriver needs F90. | ||
TRIBITS_ADD_TEST_DIRECTORIES(src/fdriver) | ||
ENDIF() | ||
|
||
TRIBITS_ADD_TEST_DIRECTORIES(test) | ||
|
||
TRIBITS_ADD_EXAMPLE_DIRECTORIES(example) | ||
|
||
TRIBITS_EXCLUDE_FILES( | ||
test/ch_brack2_3 | ||
test/ch_bug | ||
test/ch_degenerate | ||
test/ch_degenerateAA | ||
test/ch_drake | ||
test/ch_grid20x19 | ||
test/ch_hammond | ||
test/ch_hammond2 | ||
test/ch_hughes | ||
test/ch_nograph | ||
test/ch_onedbug | ||
test/ch_random | ||
test/ch_serial | ||
test/ch_slac | ||
test/hg_cage10 | ||
test/hg_diag500_4 | ||
test/hg_ewgt | ||
test/hg_felix | ||
test/hg_ibm03 | ||
test/hg_ml27 | ||
test/hg_nograph | ||
test/hg_vwgt | ||
test/nem_ti_20k | ||
test/nem_ti_4k | ||
test/misc_siefert | ||
test/th | ||
test/bin | ||
doc/Zoltan_html/tu_html | ||
src/ZoltanComponent | ||
src/driver_old | ||
src/fdriver_old | ||
) | ||
|
||
# | ||
# D) Do standard postprocessing | ||
# | ||
|
||
TRIBITS_PACKAGE_POSTPROCESS() |
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,45 @@ | ||
/* | ||
* @HEADER | ||
* | ||
* *********************************************************************** | ||
* | ||
* Zoltan Toolkit for Load-balancing, Partitioning, Ordering and Coloring | ||
* Copyright 2012 Sandia Corporation | ||
* | ||
* Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, | ||
* the U.S. Government retains certain rights in this software. | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are | ||
* met: | ||
* | ||
* 1. Redistributions of source code must retain the above copyright | ||
* notice, this list of conditions and the following disclaimer. | ||
* | ||
* 2. Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* 3. Neither the name of the Corporation nor the names of the | ||
* contributors may be used to endorse or promote products derived from | ||
* this software without specific prior written permission. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY | ||
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE | ||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
* | ||
* Questions? Contact Karen Devine [email protected] | ||
* Erik Boman [email protected] | ||
* | ||
* *********************************************************************** | ||
* | ||
* @HEADER | ||
*/ |
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,17 @@ | ||
|
||
Zoltan Library for Parallel Applications | ||
|
||
Neither Sandia, the government, the DOE, nor any of their employees, makes | ||
any warranty, express or implied, or assumes any legal liability or | ||
responsibility for the accuracy, completeness, or usefulness of any | ||
information, apparatus, product, or process disclosed, or represents that | ||
its use would not infringe privately owned rights. This information is made | ||
available on an "AS-IS" basis. | ||
ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
EXCLUDED HEREUNDER. | ||
Neither Sandia nor the Government, nor their agents, officers and employees | ||
shall be liable for any loss, damage (including, incidental, consequential | ||
and special), injury or other casualty of whatsoever kind, or by whomsoever | ||
caused, to the person or property of anyone arising out of or resulting from | ||
this information, or the accuracy and validity of this information. |
Oops, something went wrong.