diff --git a/.github/workflows/AT2.yml b/.github/workflows/AT2.yml index 99c5dc2654fc..01937667d612 100644 --- a/.github/workflows/AT2.yml +++ b/.github/workflows/AT2.yml @@ -5,20 +5,23 @@ on: types: - opened - synchronize - pull_request_review: - types: - - submitted branches: - master - develop workflow_dispatch: +# Cancels any in progress 'workflows' associated with this PR +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + # actions: write needed by skip-duplicate-actions (handled below as per OpenSSF scorecard) permissions: contents: read jobs: - # Jobs depend on the output of pre-checks to run + # Jobs depend on the output of pre-checks to run. + # Cancels new workflows if prior runs were successful (same tree hash) pre-checks: runs-on: ubuntu-latest # actions: write needed by skip-duplicate-actions diff --git a/.github/workflows/clang_format.yml b/.github/workflows/clang_format.yml index 40a9afa382e2..a3fd0968ad75 100644 --- a/.github/workflows/clang_format.yml +++ b/.github/workflows/clang_format.yml @@ -22,7 +22,7 @@ jobs: - run: git diff HEAD > format_patch.txt - run: if [ "$(cat format_patch.txt)" == "" ] ; then rm format_patch.txt ; else cat format_patch.txt; fi - - uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1 + - uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 id: upload-artf if: ${{ hashFiles('format_patch.txt') != '' }} with: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 215f16ed21cc..56bbf091adaf 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -62,7 +62,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12 + uses: github/codeql-action/init@f779452ac5af1c261dce0346a8f964149f49322b # v3.26.13 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build-mode }} @@ -85,6 +85,6 @@ jobs: make -j 2 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12 + uses: github/codeql-action/analyze@f779452ac5af1c261dce0346a8f964149f49322b # v3.26.13 with: category: "/language:${{matrix.language}}" diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index 88bcf5ffc858..c648a7e9b626 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -58,7 +58,7 @@ jobs: # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF # format to the repository Actions tab. - name: "Upload artifact" - uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1 + uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 with: name: SARIF file path: results.sarif @@ -66,6 +66,6 @@ jobs: # Upload the results to GitHub's code scanning dashboard. - name: "Upload to code-scanning" - uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12 + uses: github/codeql-action/upload-sarif@f779452ac5af1c261dce0346a8f964149f49322b # v3.26.13 with: sarif_file: results.sarif diff --git a/.github/workflows/spack.yml b/.github/workflows/spack.yml index 27f318dbf321..c722c1287ed1 100644 --- a/.github/workflows/spack.yml +++ b/.github/workflows/spack.yml @@ -4,25 +4,25 @@ on: types: - opened - synchronize - pull_request_review: - types: - - submitted + branches: + - master + - develop workflow_dispatch: +# Cancels any in progress 'workflow' associated with this PR +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: contents: read jobs: gcc10-openmpi416: permissions: - actions: write # for styfle/cancel-workflow-action to cancel/stop running workflows contents: read # for actions/checkout to fetch code runs-on: [self-hosted, gcc-10.3.0_openmpi-4.1.6] steps: - - name: Cancel Previous Runs - uses: styfle/cancel-workflow-action@b173b6ec0100793626c2d9e6b90435061f4fc3e5 # 0.11.0 - with: - access_token: ${{ github.token }} - name: Clone Trilinos uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 with: diff --git a/cmake/tribits/CHANGELOG.md b/cmake/tribits/CHANGELOG.md index b3f1edd1ef0d..d824c7810d16 100644 --- a/cmake/tribits/CHANGELOG.md +++ b/cmake/tribits/CHANGELOG.md @@ -2,6 +2,46 @@ ChangeLog for TriBITS ---------------------------------------- +## 2024-10-08: + +* **Changed:** The TriBITS framework find operation for + Python[†](#tribits_python_support) has been changed from + calling `find_package(PythonInterp)` (which uses the deprecated + `FindPythonInterp.cmake` module) to calling `find_package(Python3)` (which + uses [FindPython3.cmake]). In the process, the internal CMake cache + variable set by this operation was changed from `PYTHON_EXECUTABLE` to + `Python3_EXECUTABLE`, and TriBITS projects need make that change as well + when upgrading TriBITS. (This change can be made automatically in all of + the project's CMake files by running the script + `tribits/refactoring/to-python3.sh `.) However, backward compatibility + is provided for users confiugring TriBITS CMake projects which set `-D + PYTHON_EXECUTABLE=`. In this case, if user sets `-D + PYTHON_EXECUTABLE=` in the cache, TriBITS will set that value `` + to the variable `Python3_EXECUTABLE` and avoid the call to + `find_package(Python3)` (however, a deprecation warning we be issued by + default, see [tribits_deprecated()] and [adjusting CMake DEPRECATION + warnings]). TriBITS project users should change to use `-D + Python3_EXECUTABLE=` instead, or just remove setting + `PYTHON_EXECUTABLE` or `Python3_EXECUTABLE` altogether and just make sure + that the desired `python3` executable is in the path. See issue + [TriBITSPub/TriBITS#610] for more details. + +† **TriBITS Python Support**: See "Find Python" at [Full Processing of TriBITS Project Files], [Python Support] and [Setting or disabling Python] + +[FindPython3.cmake]: https://cmake.org/cmake/help/latest/module/FindPython3.html + +[Full Processing of TriBITS Project Files]: https://tribitspub.github.io/TriBITS/users_guide/index.html#full-tribits-project-configuration + +[Python Support]: https://tribitspub.github.io/TriBITS/users_guide/index.html#python-support + +[Setting or disabling Python]: https://tribitspub.github.io/TriBITS/build_ref/index.html#setting-or-disabling-python + +[tribits_deprecated()]: https://tribitspub.github.io/TriBITS/users_guide/index.html#tribits-deprecated + +[Adjusting CMake DEPRECATION warnings]: https://tribitspub.github.io/TriBITS/build_ref/index.html#adjusting-cmake-deprecation-warnings + +[TriBITSPub/TriBITS#610]: https://github.com/TriBITSPub/TriBITS/issues/610 + ## 2023-06-22: * **Added:** Packages are now determined to be missing if their dependencies diff --git a/cmake/tribits/LICENSE b/cmake/tribits/LICENSE index 107d3f0d3c7e..266ee2add564 100644 --- a/cmake/tribits/LICENSE +++ b/cmake/tribits/LICENSE @@ -1,3 +1,5 @@ +SPDX-License-Identifier: BSD-3-Clause + Copyright (c) 2013 NTESS and the TriBITS contributors. Redistribution and use in source and binary forms, with or without diff --git a/cmake/tribits/ci_support/TribitsDependencies.py b/cmake/tribits/ci_support/TribitsDependencies.py index fae95321a442..2ba8d611ec6f 100644 --- a/cmake/tribits/ci_support/TribitsDependencies.py +++ b/cmake/tribits/ci_support/TribitsDependencies.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/ci_support/TribitsWriteXmlDependenciesFiles.cmake b/cmake/tribits/ci_support/TribitsWriteXmlDependenciesFiles.cmake index 75b0a02763a4..021a235e45a3 100644 --- a/cmake/tribits/ci_support/TribitsWriteXmlDependenciesFiles.cmake +++ b/cmake/tribits/ci_support/TribitsWriteXmlDependenciesFiles.cmake @@ -52,7 +52,7 @@ macro(tribits_write_xml_dependency_files) " ${${PROJECT_NAME}_DEPS_HTML_OUTPUT_FILE} ..." ) set(tribitsCiSupportDir "${${PROJECT_NAME}_TRIBITS_DIR}/${TRIBITS_CI_SUPPORT_DIR}") execute_process( - COMMAND ${PYTHON_EXECUTABLE} + COMMAND ${Python3_EXECUTABLE} ${tribitsCiSupportDir}/dump-package-dep-table.py --input-xml-deps-file=${${PROJECT_NAME}_DEPS_XML_OUTPUT_FILE} --output-html-deps-file=${${PROJECT_NAME}_DEPS_HTML_OUTPUT_FILE} ) @@ -70,7 +70,7 @@ macro(tribits_write_xml_dependency_files) "${${PROJECT_NAME}_TRIBITS_DIR}/${TRIBITS_CTEST_DRIVER_DIR}") if (EXISTS "${tribitsCtestDriverDir}") execute_process( - COMMAND ${PYTHON_EXECUTABLE} + COMMAND ${Python3_EXECUTABLE} ${tribitsCtestDriverDir}/dump-cdash-deps-xml-file.py --input-xml-deps-file=${${PROJECT_NAME}_DEPS_XML_OUTPUT_FILE} --output-cdash-deps-xml-file=${${PROJECT_NAME}_CDASH_DEPS_XML_OUTPUT_FILE}) diff --git a/cmake/tribits/ci_support/cdash_analyze_and_report.py b/cmake/tribits/ci_support/cdash_analyze_and_report.py index 6062f4526eff..9f64282df9d2 100755 --- a/cmake/tribits/ci_support/cdash_analyze_and_report.py +++ b/cmake/tribits/ci_support/cdash_analyze_and_report.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/ci_support/cdash_build_testing_date.py b/cmake/tribits/ci_support/cdash_build_testing_date.py index 1791e68da2cc..fb2fb04ee568 100755 --- a/cmake/tribits/ci_support/cdash_build_testing_date.py +++ b/cmake/tribits/ci_support/cdash_build_testing_date.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/ci_support/checkin-test.py b/cmake/tribits/ci_support/checkin-test.py index b7132ea32335..23d95e307570 100755 --- a/cmake/tribits/ci_support/checkin-test.py +++ b/cmake/tribits/ci_support/checkin-test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/ci_support/clone_extra_repos.py b/cmake/tribits/ci_support/clone_extra_repos.py index 0b7d457c6b1a..cc2d6f5cfa7f 100755 --- a/cmake/tribits/ci_support/clone_extra_repos.py +++ b/cmake/tribits/ci_support/clone_extra_repos.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/ci_support/dump-package-dep-table.py b/cmake/tribits/ci_support/dump-package-dep-table.py index 7bfe11fe303b..216a7c2f7f5f 100755 --- a/cmake/tribits/ci_support/dump-package-dep-table.py +++ b/cmake/tribits/ci_support/dump-package-dep-table.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/ci_support/filter-packages-list.py b/cmake/tribits/ci_support/filter-packages-list.py index 6bb1f7fea5fd..8a70816c4df5 100755 --- a/cmake/tribits/ci_support/filter-packages-list.py +++ b/cmake/tribits/ci_support/filter-packages-list.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/ci_support/get-tribits-packages-from-last-tests-failed.py b/cmake/tribits/ci_support/get-tribits-packages-from-last-tests-failed.py index 3f322e1c5330..8e9d6d0e2a48 100755 --- a/cmake/tribits/ci_support/get-tribits-packages-from-last-tests-failed.py +++ b/cmake/tribits/ci_support/get-tribits-packages-from-last-tests-failed.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/ci_support/get-tribits-packages.py b/cmake/tribits/ci_support/get-tribits-packages.py index 1f5c0e8b7598..6454ad55d632 100755 --- a/cmake/tribits/ci_support/get-tribits-packages.py +++ b/cmake/tribits/ci_support/get-tribits-packages.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/ci_support/is_checkin_tested_commit.py b/cmake/tribits/ci_support/is_checkin_tested_commit.py index 19a68702ead8..e09ced5be1b6 100755 --- a/cmake/tribits/ci_support/is_checkin_tested_commit.py +++ b/cmake/tribits/ci_support/is_checkin_tested_commit.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/core/common/TribitsConstants.cmake b/cmake/tribits/core/common/TribitsConstants.cmake index 8c5906c78efd..26af761c39ed 100644 --- a/cmake/tribits/core/common/TribitsConstants.cmake +++ b/cmake/tribits/core/common/TribitsConstants.cmake @@ -14,8 +14,9 @@ set(TRIBITS_CMAKE_MINIMUM_REQUIRED 3.23.0) macro(tribits_asesrt_minimum_cmake_version) if (CMAKE_VERSION VERSION_LESS ${TRIBITS_CMAKE_MINIMUM_REQUIRED}) - message(FATAL_ERROR "Error, TriBiTS must have version" - " ${TRIBITS_CMAKE_MINIMUM_REQUIRED} or higher!") + message(FATAL_ERROR "Error, this TriBITS project ${PROJECT_NAME} must have a" + " version of CMake ${TRIBITS_CMAKE_MINIMUM_REQUIRED} or higher but was" + " only provided CMake version ${CMAKE_VERSION}!" ) endif() endmacro() diff --git a/cmake/tribits/core/package_arch/TribitsAdjustPackageEnables.cmake b/cmake/tribits/core/package_arch/TribitsAdjustPackageEnables.cmake index 120f2f65d776..d62d67fbb396 100644 --- a/cmake/tribits/core/package_arch/TribitsAdjustPackageEnables.cmake +++ b/cmake/tribits/core/package_arch/TribitsAdjustPackageEnables.cmake @@ -418,20 +418,23 @@ endmacro() # macro(tribits_disable_parents_subpackages parentPackageName) - if(NOT ${PROJECT_NAME}_ENABLE_${parentPackageName} - AND (NOT ${PROJECT_NAME}_ENABLE_${parentPackageName} STREQUAL "") - ) + tribits_package_is_explicitly_disabled(${PROJECT_NAME}_ENABLE_${parentPackageName} + parentPackageIsExplicityDisabled) + + if(parentPackageIsExplicityDisabled) foreach(tap2_subPkgName IN LISTS ${parentPackageName}_SUBPACKAGES) set(subpkgFullName ${parentPackageName}${tap2_subPkgName}) - if (NOT ${PROJECT_NAME}_ENABLE_${subpkgFullName} STREQUAL "OFF") - set(packageBeingDisabledVarName ${PROJECT_NAME}_ENABLE_${subpkgFullName}) + set(subpkgBeingDisabledVarName ${PROJECT_NAME}_ENABLE_${subpkgFullName}) + tribits_package_is_explicitly_disabled(${subpkgBeingDisabledVarName} + subpkgIExplicitlyDisabled) + if (NOT subpkgIsExplicitlyDisabled) message("-- " - "Setting subpackage enable ${packageBeingDisabledVarName}=OFF" + "Setting subpackage enable ${subpkgBeingDisabledVarName}=OFF" " because parent package ${PROJECT_NAME}_ENABLE_${parentPackageName}=OFF") - set(${packageBeingDisabledVarName} OFF) + set(${subpkgBeingDisabledVarName} OFF) endif() endforeach() @@ -439,13 +442,20 @@ macro(tribits_disable_parents_subpackages parentPackageName) endif() endmacro() +# +# NOTE: Above, we don't need to use the function +# tribits_get_package_enable_status() because a subpackage in this context +# will never be an external package and therefore the enable var name will +# always be ${PROJECT_NAME}_ENABLE_${subpkgFullName}. (At least I can't think +# of a use case where that would occur.) # Macro that disables forward package that depends on the passed-in package # macro(tribits_disable_forward_required_dep_packages packageName) tribits_get_package_enable_status(${packageName} packageEnable "") - if ((NOT packageEnable) AND (NOT "${packageEnable}" STREQUAL "")) + tribits_package_is_explicitly_disabled(packageEnable packageIsExplicitlyDisabled) + if (packageIsExplicitlyDisabled) foreach(fwdDepPkg IN LISTS ${packageName}_FORWARD_LIB_DEFINED_DEPENDENCIES) if (${fwdDepPkg}_LIB_DEP_REQUIRED_${packageName}) tribits_private_disable_required_package_enables(${fwdDepPkg} @@ -475,13 +485,13 @@ macro(tribits_enable_parents_subpackages parentPackageName) foreach(tap2_subPkgName IN LISTS ${parentPackageName}_SUBPACKAGES) set(subpkgFullName ${parentPackageName}${tap2_subPkgName}) + tribits_package_is_explicitly_disabled(${PROJECT_NAME}_ENABLE_${subpkgFullName} + subpkgIsExplicitlyDisabled) - if (NOT ${PROJECT_NAME}_ENABLE_${subpkgFullName} AND - NOT "${${PROJECT_NAME}_ENABLE_${subpkgFullName}}" STREQUAL "" - ) - # The subpackage is already disabled and is not just empty! + if (subpkgIsExplicitlyDisabled) + # The subpackage is already explicitly disabled elseif (${PROJECT_NAME}_ENABLE_${subpkgFullName}) - # The subpackage is already enabled so there is no reason to enable it! + # The subpackage is already enabled so there is no reason to enable it else() # The subpackage is not hard off or on so turn it on by default tribits_implicit_package_enable_is_allowed( "" ${subpkgFullName} @@ -513,7 +523,7 @@ macro(tribits_apply_all_package_enables packageName) tribits_implicit_package_enable_is_allowed( "" ${packageName} processThisPackageEnable ) if (packageIsPmpp AND processThisPackageEnable) - tribits_set_package_enable_based_on_project_enable( + tribits_enable_package_based_on_project_enable_on( ${PROJECT_NAME}_ENABLE_ALL_PACKAGES ${PROJECT_NAME}_ENABLE_${packageName} ) endif() endmacro() @@ -548,8 +558,9 @@ endmacro() # ${parentPackageName)_ENABLE_TESTS is explicitly disabled. # macro(tribits_apply_package_examples_disable parentPackageName) - if ( (NOT ${parentPackageName}_ENABLE_TESTS) - AND (NOT "${${parentPackageName}_ENABLE_TESTS}" STREQUAL "") + tribits_package_is_explicitly_disabled(${parentPackageName}_ENABLE_TESTS + parentPackageTestsIsExplicitlyDisabled) + if (parentPackageTestsIsExplicitlyDisabled AND ("${${parentPackageName}_ENABLE_EXAMPLES}" STREQUAL "") ) message("-- " "Setting" @@ -574,7 +585,9 @@ macro(tribits_apply_subpackage_tests_or_examples_disables parentPackageName testsOrExamples ) set(parentPkgEnableVar ${parentPackageName}_ENABLE_${testsOrExamples}) - if ((NOT ${parentPkgEnableVar}) AND (NOT "${${parentPkgEnableVar}}" STREQUAL "")) + tribits_package_is_explicitly_disabled(${parentPkgEnableVar} + parentPkgIsExplicitlyDisabled) + if (parentPkgIsExplicitlyDisabled) foreach(subpkgName IN LISTS ${parentPackageName}_SUBPACKAGES) set(fullSpkgName ${parentPackageName}${subpkgName}) if (${PROJECT_NAME}_ENABLE_${fullSpkgName}) @@ -599,9 +612,9 @@ macro(tribits_apply_test_example_enables packageName) if (${PROJECT_NAME}_ENABLE_${packageName}) tribits_is_primary_meta_project_package(${packageName} packageIsPmmp) if (packageIsPmmp) - tribits_set_package_enable_based_on_project_enable_on( + tribits_enable_package_based_on_project_enable_on( ${PROJECT_NAME}_ENABLE_TESTS ${packageName}_ENABLE_TESTS ) - tribits_set_package_enable_based_on_project_enable_on( + tribits_enable_package_based_on_project_enable_on( ${PROJECT_NAME}_ENABLE_EXAMPLES ${packageName}_ENABLE_EXAMPLES ) endif() endif() @@ -936,7 +949,9 @@ macro(tribits_private_disable_required_package_enables fwdDepPkgName packageName libraryDep ) tribits_get_package_enable_status(${fwdDepPkgName} "" fwdDepPkgEnableVarName) - if (${fwdDepPkgEnableVarName} OR "${${fwdDepPkgEnableVarName}}" STREQUAL "") + tribits_package_is_enabled_or_unset(${fwdDepPkgEnableVarName} + fwdDepPkgIsEnabledOrUnset) + if (fwdDepPkgIsEnabledOrUnset) if ("${libraryDep}" STREQUAL "TRUE") tribits_private_print_disable_required_package_enable( ${packageName} ${fwdDepPkgEnableVarName} @@ -944,18 +959,18 @@ macro(tribits_private_disable_required_package_enables set(${fwdDepPkgEnableVarName} OFF) else() set(depTypeStr "test/example") - if (${fwdDepPkgName}_ENABLE_TESTS - OR "${${fwdDepPkgName}_ENABLE_TESTS}" STREQUAL "" - ) + tribits_package_is_enabled_or_unset(${fwdDepPkgName}_ENABLE_TESTS + fwdDepPkgEnableTestsIsEnabledOrUnset) + if (fwdDepPkgEnableTestsIsEnabledOrUnset) tribits_private_print_disable_required_package_enable( ${packageName} ${fwdDepPkgName}_ENABLE_TESTS ${fwdDepPkgName} "${depTypeStr}" ) set(${fwdDepPkgName}_ENABLE_TESTS OFF) endif() - if (${fwdDepPkgName}_ENABLE_EXAMPLES - OR "${${fwdDepPkgName}_ENABLE_EXAMPLES}" STREQUAL "" - ) + tribits_package_is_enabled_or_unset(${fwdDepPkgName}_ENABLE_EXAMPLES + fwdDepPkgEnableExamplesIsEnabledOrUnset) + if (fwdDepPkgEnableExamplesIsEnabledOrUnset) tribits_private_print_disable_required_package_enable( ${packageName} ${fwdDepPkgName}_ENABLE_EXAMPLES ${fwdDepPkgName} "${depTypeStr}" ) @@ -1013,9 +1028,9 @@ endfunction() macro(tribits_private_disable_optional_package_enables fwdDepPkgName packageName) - if (${fwdDepPkgName}_ENABLE_${packageName} - OR "${${fwdDepPkgName}_ENABLE_${packageName}}" STREQUAL "" - ) + tribits_package_is_enabled_or_unset(${fwdDepPkgName}_ENABLE_${packageName} + fwdDepPkgEnablePackageIsEnabledOrUnset) + if (fwdDepPkgEnablePackageIsEnabledOrUnset) # Always disable the conditional enable but only print the message if the # package is enabled or if a disable overrides an enable if (${PROJECT_NAME}_ENABLE_${fwdDepPkgName}) @@ -1032,10 +1047,9 @@ macro(tribits_private_disable_optional_package_enables fwdDepPkgName packageNa " on disabled package ${packageName}") endif() endif() - if (${fwdDepPkgName}_ENABLE_${packageName} - AND (NOT ${PROJECT_NAME}_ENABLE_${packageName}) - AND (NOT "${${PROJECT_NAME}_ENABLE_${packageName}}" STREQUAL "") - ) + tribits_package_is_explicitly_disabled(${PROJECT_NAME}_ENABLE_${packageName} + packageIsExplicitlyDisabled) + if (${fwdDepPkgName}_ENABLE_${packageName} AND packageIsExplicitlyDisabled) message("-- " "NOTE: ${fwdDepPkgName}_ENABLE_${packageName}=" "${${fwdDepPkgName}_ENABLE_${packageName}} but" " ${PROJECT_NAME}_ENABLE_${packageName}=" @@ -1048,37 +1062,10 @@ macro(tribits_private_disable_optional_package_enables fwdDepPkgName packageNa endmacro() -# Set an individual package variable enable variable (to ON or OFF) based on a -# global enable value -# -macro(tribits_set_package_enable_based_on_project_enable projectEnableVar - packageEnableVar - ) - - if ("${${packageEnableVar}}" STREQUAL "") - if (${projectEnableVar}) - message("-- " "Setting ${packageEnableVar}=ON") - set(${packageEnableVar} ON) - elseif ( (NOT ${projectEnableVar}) - AND (NOT "${projectEnableVar}" STREQUAL "") - ) - message("-- " "Setting ${packageEnableVar}=OFF") - set(${packageEnableVar} OFF) - else() - # Otherwise, we will leave it up the the individual package - # to decide? - endif() - else() - # "${packageEnableVar} not at the default empty '' - endif() - -endmacro() - - # Set an individual package test or examples enable to on only if global # enable var is on # -macro(tribits_set_package_enable_based_on_project_enable_on projectEnableVar +macro(tribits_enable_package_based_on_project_enable_on projectEnableVar packageEnableVar ) if (("${${packageEnableVar}}" STREQUAL "") AND ${projectEnableVar}) @@ -1133,7 +1120,9 @@ endmacro() macro(tribits_private_postprocess_optional_package_enable packageName optDepPkg) tribits_get_package_enable_status(${optDepPkg} optDepPkgEnable optDepPkgEnableVar) - tribits_get_package_enable_status(${packageName} packageEnable packageEnableVar) + tribits_get_package_enable_status(${packageName} packageEnable packageEnableVar) + tribits_package_is_explicitly_disabled(${packageName}_ENABLE_${optDepPkg} + package_Enable_OptDeptPkg_IsExplicitlyDisabled) if (${packageName}_ENABLE_${optDepPkg} AND optDepPkgEnable) message("-- " "NOTE:" @@ -1149,10 +1138,7 @@ macro(tribits_private_postprocess_optional_package_enable packageName optDepPk message("-- " "NOT setting ${packageName}_ENABLE_${optDepPkg}=ON" " since ${optDepPkg} is NOT enabled at this point!") endif() - elseif ((NOT "${${packageName}_ENABLE_${optDepPkg}}" STREQUAL "") - AND (NOT ${packageName}_ENABLE_${optDepPkg}) - AND optDepPkgEnable - ) + elseif (package_Enable_OptDeptPkg_IsExplicitlyDisabled AND optDepPkgEnable) message("-- " "NOTE: ${packageName}_ENABLE_${optDepPkg}=" "${${packageName}_ENABLE_${optDepPkg}} is already set so not enabling even" " though ${optDepPkgEnableVar}=" diff --git a/cmake/tribits/core/package_arch/TribitsFindPythonInterp.cmake b/cmake/tribits/core/package_arch/TribitsFindPythonInterp.cmake index 3e57bbbe0cc3..209fbd47e004 100644 --- a/cmake/tribits/core/package_arch/TribitsFindPythonInterp.cmake +++ b/cmake/tribits/core/package_arch/TribitsFindPythonInterp.cmake @@ -7,34 +7,6 @@ # ***************************************************************************** # @HEADER -# Find Python executable which is needed for dependency file building -macro(tribits_find_python) - set(PythonInterp_FIND_VERSION_MIN "2.6") - if ("${PythonInterp_FIND_VERSION_DEFAULT}" STREQUAL "") - set(PythonInterp_FIND_VERSION_DEFAULT "${PythonInterp_FIND_VERSION_MIN}") - endif() - advanced_set(PythonInterp_FIND_VERSION ${PythonInterp_FIND_VERSION_DEFAULT} - CACHE STRING - "Default version of Python to find (must be ${PythonInterp_FIND_VERSION_DEFAULT} or greater") - if (PythonInterp_FIND_VERSION VERSION_LESS "${PythonInterp_FIND_VERSION_MIN}") - message_wrapper(FATAL_ERROR "Error," - " PythonInterp_FIND_VERSION=${PythonInterp_FIND_VERSION} < ${PythonInterp_FIND_VERSION_MIN}" - " is not allowed!" ) - endif() - advanced_set(PythonInterp_MUST_BE_FOUND FALSE CACHE BOOL "Require Python to be found or not.") - if (${PROJECT_NAME}_REQUIRES_PYTHON) - set(PythonInterp_REQUIRED_ARG "REQUIRED") - else() - set(PythonInterp_REQUIRED_ARG "") - endif() - set(FIND_PythonInterp_ARGS PythonInterp ${PythonInterp_REQUIRED_ARG}) - if (TRIBITS_FIND_PYTHON_UNITTEST) - set(PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE_UNITTEST_VAL}) - else() - find_package(${FIND_PythonInterp_ARGS}) - endif() -endmacro() - # TriBITS Wrapper for finding Python (or not) for a TriBITS project. macro(tribits_find_python_interp) @@ -48,9 +20,9 @@ macro(tribits_find_python_interp) endif() if (${PROJECT_NAME}_USES_PYTHON) tribits_find_python() - print_var(PYTHON_EXECUTABLE) - if (${PROJECT_NAME}_REQUIRES_PYTHON AND PYTHON_EXECUTABLE STREQUAL "") - message_wrapper(FATAL_ERROR "Error, PYTHON_EXECUTABLE='' but" + print_var(Python3_EXECUTABLE) + if (${PROJECT_NAME}_REQUIRES_PYTHON AND Python3_EXECUTABLE STREQUAL "") + message_wrapper(FATAL_ERROR "Error, Python3_EXECUTABLE='' but" " ${PROJECT_NAME}_REQUIRES_PYTHON=${${PROJECT_NAME}_REQUIRES_PYTHON}!" ) endif() else() @@ -58,3 +30,64 @@ macro(tribits_find_python_interp) " ${PROJECT_NAME}_USES_PYTHON='${${PROJECT_NAME}_USES_PYTHON}'") endif() endmacro() + + +# Find Python executable which is needed for dependency file building +macro(tribits_find_python) + tribits_find_python_set_python3_find_version() + tribits_find_python_backward_compatible_python_executable() + tribits_find_python_find_python3() +endmacro() + + +macro(tribits_find_python_set_python3_find_version) + # Get minimum version of Python to find + set(${PROJECT_NAME}_Python3_FIND_VERSION_MIN "3.6") + if ("${${PROJECT_NAME}_Python3_FIND_VERSION_DEFAULT}" STREQUAL "") + set(${PROJECT_NAME}_Python3_FIND_VERSION_DEFAULT + "${${PROJECT_NAME}_Python3_FIND_VERSION_MIN}") + endif() + advanced_set(${PROJECT_NAME}_Python3_FIND_VERSION + ${${PROJECT_NAME}_Python3_FIND_VERSION_DEFAULT} + CACHE STRING + "Default version of Python to find (must be ${${PROJECT_NAME}_Python3_FIND_VERSION_DEFAULT} or greater") + if (${PROJECT_NAME}_Python3_FIND_VERSION VERSION_LESS + "${${PROJECT_NAME}_Python3_FIND_VERSION_MIN}" + ) + message_wrapper(FATAL_ERROR "Error," + " ${PROJECT_NAME}_Python3_FIND_VERSION=${${PROJECT_NAME}_Python3_FIND_VERSION} < ${${PROJECT_NAME}_Python3_FIND_VERSION_MIN}" + " is not allowed!" ) + endif() +endmacro() + + +macro(tribits_find_python_backward_compatible_python_executable) + # Provide backward compatibility for user setting PYTHON_EXECUTABLE + if ((NOT "${PYTHON_EXECUTABLE}" STREQUAL "") AND ("${Python3_EXECUTABLE}" STREQUAL "")) + tribits_deprecated("Python3_EXECUTABLE being set by default to PYTHON_EXECUTABLE = '${PYTHON_EXECUTABLE}' is deprecated!") + set(Python3_EXECUTABLE "${PYTHON_EXECUTABLE}" CACHE FILEPATH + "Set by default to PYTHON_EXECUTABLE!") + endif() +endmacro() + + +macro(tribits_find_python_find_python3) + # Find Python3 + if (${PROJECT_NAME}_REQUIRES_PYTHON) + set(Python3_REQUIRED_ARG "REQUIRED") + else() + set(Python3_REQUIRED_ARG "") + endif() + set(FIND_Python3_ARGS + Python3 ${${PROJECT_NAME}_Python3_FIND_VERSION} ${Python3_REQUIRED_ARG}) + if(DEFINED Python3_EXECUTABLE) + # Already defined (even if it is set to empty), so no need to call anything! + elseif (TRIBITS_FIND_PYTHON_UNITTEST) + set(Python3_EXECUTABLE ${Python3_EXECUTABLE_UNITTEST_VAL}) + else() + find_package(${FIND_Python3_ARGS}) + endif() +endmacro() + + + diff --git a/cmake/tribits/core/package_arch/TribitsGetPackageEnableStatus.cmake b/cmake/tribits/core/package_arch/TribitsGetPackageEnableStatus.cmake index 2cfeb4946667..062c44c35655 100644 --- a/cmake/tribits/core/package_arch/TribitsGetPackageEnableStatus.cmake +++ b/cmake/tribits/core/package_arch/TribitsGetPackageEnableStatus.cmake @@ -10,8 +10,8 @@ # @FUNCTION: tribits_get_package_enable_status() # -# Function that determines if a given external or internal package's enable -# status (e.g. 'ON' or 'OFF') +# Function that determines a given external or internal package's enable +# status (e.g. 'ON' or 'OFF' or any valid CMake bool) # # Usage:: # @@ -21,8 +21,8 @@ # On return, if non-empty, the variable ```` will contain # the actual value of ``${${PROJECT_NAME}_ENABLE_}`` or # ``${TPL_ENABLE_}`` or will return empty "". If -# ``${packageName}_PACKAGE_BUILD_STATUS == "INTERNAL", then only the value of -# ``${PROJECT_NAME}_ENABLE_`` will be considered. +# ``${packageName}_PACKAGE_BUILD_STATUS == "INTERNAL"``, then only the value +# of ``${PROJECT_NAME}_ENABLE_`` will be considered. # # On return, if non-empty, the variable ```` will be # either ``${${PROJECT_NAME}_ENABLE_}`` or @@ -61,6 +61,62 @@ function(tribits_get_package_enable_status packageName packageEnableOut endfunction() +# @FUNCTION: tribits_package_is_enabled_or_unset() +# +# Function that determines if a package's enable variable evaluates to true or +# is unset. +# +# Usage:: +# +# tribits_package_is_enabled_or_unset(( +# ) +# +# On return, the value of ```` will set to +# ``TRUE`` if the variable ```` evaluates to true and +# or is empty "". Otherwise, ```` will set +# to ``FALSE`` on return. +# +function(tribits_package_is_enabled_or_unset packageEnableVarName + packageIsEnabledOrUnsetOut + ) + if (${packageEnableVarName} OR ("${${packageEnableVarName}}" STREQUAL "")) + set(packageIsEnabledOrUnset TRUE) + else() + set(packageIsEnabledOrUnset FALSE) + endif() + set(${packageIsEnabledOrUnsetOut} ${packageIsEnabledOrUnset} + PARENT_SCOPE) +endfunction() + + +# @FUNCTION: tribits_package_is_explicitly_disabled() +# +# Function that determines if a package's enable variable is +# explicitly disabled (i.e. evaluates to false but is not emapty). +# +# Usage:: +# +# tribits_package_is_explicitly_disabled(( +# ) +# +# On return, the value of ```` will set to +# ``TRUE`` if the variable ```` evaluates to false and +# is not empty "". Otherwise, ```` will set +# to ``FALSE`` on return. +# +function(tribits_package_is_explicitly_disabled packageEnableVarName + packageIsExplicitlyDisabledOut + ) + if ((NOT ${packageEnableVarName}) AND (NOT "${${packageEnableVarName}}" STREQUAL "")) + set(packageIsExplicitlyDisabled TRUE) + else() + set(packageIsExplicitlyDisabled FALSE) + endif() + set(${packageIsExplicitlyDisabledOut} ${packageIsExplicitlyDisabled} + PARENT_SCOPE) +endfunction() + + # @FUNCTION: tribits_assert_package_enable_status() # # Function that asserts that if both ``${PROJECT_NAME}_ENABLE_${packageName}`` diff --git a/cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake b/cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake index 5ca67ede6e5f..d060ebd69a65 100644 --- a/cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake +++ b/cmake/tribits/core/package_arch/TribitsGlobalMacros.cmake @@ -806,7 +806,7 @@ macro(tribits_define_global_options_and_define_extra_repos) "Output XML file containing ${PROJECT_NAME} dependenices used by tools (if not empty)." ) if(${PROJECT_NAME}_DEPS_DEFAULT_OUTPUT_DIR AND - ${PROJECT_NAME}_DEPS_XML_OUTPUT_FILE AND PYTHON_EXECUTABLE + ${PROJECT_NAME}_DEPS_XML_OUTPUT_FILE AND Python3_EXECUTABLE ) set(${PROJECT_NAME}_CDASH_DEPS_XML_OUTPUT_FILE_DEFAULT "${${PROJECT_NAME}_DEPS_DEFAULT_OUTPUT_DIR}/${${PROJECT_NAME}_CDASH_SUBPROJECT_DEPS_XML_FILE_NAME}" ) @@ -819,7 +819,7 @@ macro(tribits_define_global_options_and_define_extra_repos) "Output XML file used by CDash in ${PROJECT_NAME}-independent format (if not empty)." ) if(${PROJECT_NAME}_DEPS_DEFAULT_OUTPUT_DIR AND - ${PROJECT_NAME}_DEPS_XML_OUTPUT_FILE AND PYTHON_EXECUTABLE + ${PROJECT_NAME}_DEPS_XML_OUTPUT_FILE AND Python3_EXECUTABLE ) set(${PROJECT_NAME}_DEPS_HTML_OUTPUT_FILE_DEFAULT "${${PROJECT_NAME}_DEPS_DEFAULT_OUTPUT_DIR}/${${PROJECT_NAME}_PACKAGE_DEPS_TABLE_HTML_FILE_NAME}" ) diff --git a/cmake/tribits/core/test_support/TribitsAddAdvancedTest.cmake b/cmake/tribits/core/test_support/TribitsAddAdvancedTest.cmake index 3a6aa01dc29a..704a0d11e4b4 100644 --- a/cmake/tribits/core/test_support/TribitsAddAdvancedTest.cmake +++ b/cmake/tribits/core/test_support/TribitsAddAdvancedTest.cmake @@ -345,7 +345,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/../utils/PrintVar.cmake") # instead. **WARNING:** If you want to run such tests using valgrind, you # have to use the raw executable as the ```` argument and *not* # the script. For example, if you have a python script -# ``my_python_test.py`` with ``/usr/bin/env python`` at the top, you can't +# ``my_python_test.py`` with ``/usr/bin/env python3`` at the top, you can't # just use:: # # CMND /my_python_test.py ARGS "" "" ... @@ -354,7 +354,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/../utils/PrintVar.cmake") # # Instead, you have to use:: # -# CMND ${PYTHON_EXECUTABLE} ARGS /my_python_test.py ... +# CMND ${Python3_EXECUTABLE} ARGS /my_python_test.py ... # # ``ARGS "" "" ... ""`` # diff --git a/cmake/tribits/ctest_driver/TribitsCTestDriverCore.cmake b/cmake/tribits/ctest_driver/TribitsCTestDriverCore.cmake index ccd1a2b8c5ec..d33c29fbfc42 100644 --- a/cmake/tribits/ctest_driver/TribitsCTestDriverCore.cmake +++ b/cmake/tribits/ctest_driver/TribitsCTestDriverCore.cmake @@ -141,7 +141,7 @@ tribits_project_read_version_file(${TRIBITS_PROJECT_ROOT}) include(TribitsFindPythonInterp) tribits_find_python() -message("PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}") +message("Python3_EXECUTABLE = ${Python3_EXECUTABLE}") ############################# ### Do some initial setup ### diff --git a/cmake/tribits/ctest_driver/TribitsCTestDriverCoreHelpers.cmake b/cmake/tribits/ctest_driver/TribitsCTestDriverCoreHelpers.cmake index 76cfa19c6222..e0b7116cc492 100644 --- a/cmake/tribits/ctest_driver/TribitsCTestDriverCoreHelpers.cmake +++ b/cmake/tribits/ctest_driver/TribitsCTestDriverCoreHelpers.cmake @@ -175,7 +175,7 @@ endfunction() # function(tribits_create_repo_updates_file) extrarepo_execute_process_wrapper( - COMMAND ${PYTHON_EXECUTABLE} + COMMAND ${Python3_EXECUTABLE} ${GITDIST_EXE} --dist-no-color log "--pretty=format:%h: %s%nAuthor: %an <%ae>%nDate: %ad%n" --name-status -C ORIG_HEAD..HEAD @@ -376,14 +376,14 @@ macro(enable_only_modified_packages) # A.3) Get the names of the modified packages - if (NOT PYTHON_EXECUTABLE) + if (NOT Python3_EXECUTABLE) message(FATAL_ERROR "Error, Python must be enabled to map from modified" " files to packages!") endif() if (EXISTS "${MODIFIED_FILES_FILE_NAME}") execute_process( - COMMAND ${PYTHON_EXECUTABLE} + COMMAND ${Python3_EXECUTABLE} ${${PROJECT_NAME}_TRIBITS_DIR}/ci_support/get-tribits-packages-from-files-list.py --files-list-file=${MODIFIED_FILES_FILE_NAME} --project-dir=${TRIBITS_PROJECT_ROOT} @@ -847,7 +847,7 @@ function(tribits_get_failed_packages_from_failed_tests LAST_TESTS_FAILED_FILE FAILED_PACKAGES_OUT ) execute_process( - COMMAND ${PYTHON_EXECUTABLE} + COMMAND ${Python3_EXECUTABLE} "${${PROJECT_NAME}_TRIBITS_DIR}/ci_support/get-tribits-packages-from-last-tests-failed.py" "--deps-xml-file=${CTEST_BINARY_DIRECTORY}/${${PROJECT_NAME}_PACKAGE_DEPS_XML_FILE_NAME}" "--last-tests-failed-file=${LAST_TESTS_FAILED_FILE}" diff --git a/cmake/tribits/ctest_driver/dump-cdash-deps-xml-file.py b/cmake/tribits/ctest_driver/dump-cdash-deps-xml-file.py index 3ebc60cd45a0..ceeebe807148 100755 --- a/cmake/tribits/ctest_driver/dump-cdash-deps-xml-file.py +++ b/cmake/tribits/ctest_driver/dump-cdash-deps-xml-file.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/dashboard_driver/tdd_driver.py b/cmake/tribits/dashboard_driver/tdd_driver.py index 099c6b2a9f19..3d68026f46bf 100755 --- a/cmake/tribits/dashboard_driver/tdd_driver.py +++ b/cmake/tribits/dashboard_driver/tdd_driver.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/devtools_install/install-autoconf.py b/cmake/tribits/devtools_install/install-autoconf.py index 700a2a787d40..88b9974acf9f 100755 --- a/cmake/tribits/devtools_install/install-autoconf.py +++ b/cmake/tribits/devtools_install/install-autoconf.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/devtools_install/install-cmake.py b/cmake/tribits/devtools_install/install-cmake.py index fbf07832ad23..2c69291d1392 100755 --- a/cmake/tribits/devtools_install/install-cmake.py +++ b/cmake/tribits/devtools_install/install-cmake.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/devtools_install/install-gcc.py b/cmake/tribits/devtools_install/install-gcc.py index d2cd4fbd1f0e..e2ab794da22b 100755 --- a/cmake/tribits/devtools_install/install-gcc.py +++ b/cmake/tribits/devtools_install/install-gcc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/devtools_install/install-git.py b/cmake/tribits/devtools_install/install-git.py index 4a52a2d3d102..3a9ee1ba4d66 100755 --- a/cmake/tribits/devtools_install/install-git.py +++ b/cmake/tribits/devtools_install/install-git.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/devtools_install/install-mpich.py b/cmake/tribits/devtools_install/install-mpich.py index 529570f32c76..172f2383ff42 100755 --- a/cmake/tribits/devtools_install/install-mpich.py +++ b/cmake/tribits/devtools_install/install-mpich.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/devtools_install/install-openmpi.py b/cmake/tribits/devtools_install/install-openmpi.py index cac874f663dd..0d975be7fe76 100755 --- a/cmake/tribits/devtools_install/install-openmpi.py +++ b/cmake/tribits/devtools_install/install-openmpi.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/devtools_install/install_devtools.py b/cmake/tribits/devtools_install/install_devtools.py index a84e4f0aa862..0f308469b31f 100755 --- a/cmake/tribits/devtools_install/install_devtools.py +++ b/cmake/tribits/devtools_install/install_devtools.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/doc/build_ref/TribitsBuildReferenceBody.rst b/cmake/tribits/doc/build_ref/TribitsBuildReferenceBody.rst index 3ab4ce13f1b9..b8601d6e81ad 100644 --- a/cmake/tribits/doc/build_ref/TribitsBuildReferenceBody.rst +++ b/cmake/tribits/doc/build_ref/TribitsBuildReferenceBody.rst @@ -2230,6 +2230,21 @@ This will override the global behavior set by ````. +Setting or disabling Python +---------------------------- + +To set which Python interpreter is used, configure with:: + + -D Python3_EXECUTABLE= + +Otherwise, Python will be found automatically by default using +``find_python(Python3)`` internally (see `FindPython3.cmake`_). + +To disable the finding and usage of Python, configure with (empty):: + + -D Python3_EXECUTABLE= + + Outputting package dependency information ----------------------------------------- @@ -2952,7 +2967,7 @@ printed to cmake STDOUT. Show parent(s) commit info in the repo version output ----------------------------------------------------- +----------------------------------------------------- .. __SHOW_GIT_COMMIT_PARENTS: @@ -4490,4 +4505,7 @@ dashboard``. .. _xSDK Community Package Policies: https://doi.org/10.6084/m9.figshare.4495136 +.. _FindPython3.cmake: https://cmake.org/cmake/help/latest/module/FindPython3.html + + .. LocalWords: templated instantiation Makefiles CMake diff --git a/cmake/tribits/doc/build_ref/create-project-build-ref.py b/cmake/tribits/doc/build_ref/create-project-build-ref.py index ce0ee6a92800..acd76c59a9a1 100755 --- a/cmake/tribits/doc/build_ref/create-project-build-ref.py +++ b/cmake/tribits/doc/build_ref/create-project-build-ref.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 usageHelp = r"""create-project-build-ref.py [options] diff --git a/cmake/tribits/doc/guides/TribitsGuidesBody.rst b/cmake/tribits/doc/guides/TribitsGuidesBody.rst index c978a2d103ce..29a319fc664c 100644 --- a/cmake/tribits/doc/guides/TribitsGuidesBody.rst +++ b/cmake/tribits/doc/guides/TribitsGuidesBody.rst @@ -1107,7 +1107,7 @@ can be used in the logic in these files. Some of the variables that should already be defined (in addition to all of the basic user TriBITS cache variables set in ``tribits_define_global_options_and_define_extra_repos()``) include ``CMAKE_HOST_SYSTEM_NAME``, ``${PROJECT_NAME}_HOSTNAME``, and -``PYTHON_EXECUTABLE`` (see `Python Support`_). The types of commands and +``Python3_EXECUTABLE`` (see `Python Support`_). The types of commands and logic to put in this file include: * Setting additional user cache variable options that are used by multiple @@ -2228,7 +2228,7 @@ proceeds through the call to `tribits_project()`_. | 3) Set variables ``CMAKE_HOST_SYSTEM_NAME`` and ``${PROJECT_NAME}_HOSTNAME`` | (both of these can be overridden in the cache by the user) | 4) Find some optional command-line tools: -| a) Find Python (sets ``PYTHON_EXECUTABLE``, see `Python Support`_) +| a) Find Python (sets ``Python3_EXECUTABLE``, see `Python Support`_) | b) Find Git (sets ``GIT_EXECUTABLE`` and ``GIT_VERSION_STRING``) | 5) ``include(`` `/Version.cmake`_ ``)`` | 6) Define primary TriBITS options and read in the list of extra repositories @@ -2667,6 +2667,9 @@ satisfy the following requirements: * Test names must be prefixed with the package name ``_``. +* The package name ```` must be appended to the ``LABELS`` test + property list. + * Tests should only be added if the variable ``_ENABLE_TESTS`` is true. @@ -4230,7 +4233,8 @@ repositories if specified). There are several python tools under ``tribits/ci_support/`` that read in this file and use the created data-structure for various tasks. This file and these tools are used by `checkin-test.py`_ and `tribits_ctest_driver()`_. But these tools can also be -used to construct other workflows and tools. +used to construct other workflows and tools. These tools require a Python3 +installation and for the `python3` executable to be installed. .. _TribitsDumpDepsXmlScript.cmake: @@ -7000,17 +7004,16 @@ Python Support TriBITS Core does not require anything other than raw CMake. However, Python Utils, TriBITS CI Support, and other extended TriBITS components require -Python. These extra TriBITS tools only require Python 2.7+ (and 3.x). By -default, when a TriBITS project starts to configure using CMake, it will try -to find Python 2.7+ on the system (see `Full Processing of TriBITS Project -Files`_). If Python is found, it will set the global cache variable -``PYTHON_EXECUTABLE``. If it is not found, then it will print a warning and -``PYTHON_EXECUTABLE`` will be empty. With this default behavior, if Python is -found, then the TriBITS project can use it. Otherwise, it can do without it. +Python. These extra TriBITS tools only require Python 3.6+. By default, when +a TriBITS project starts to configure using CMake, it will try to find Python +3.6+ on the system (see `Full Processing of TriBITS Project Files`_). If +Python is found, it will set the global cache variable ``Python3_EXECUTABLE``. +If it is not found, then it will print a warning and ``Python3_EXECUTABLE`` +will be empty. With this default behavior, if Python is found, then the +TriBITS project can use it. Otherwise, it can do without it. While the default behavior for finding Python described above is useful for -many TriBITS project (such as Trilinos), some TriBITS projects need different -behavior such as: +many TriBITS projects, some TriBITS projects need different behavior such as: 1. The TriBITS project may not ever use Python so there is no need to look for it at all. In this case, the TriBITS project would set @@ -7020,11 +7023,12 @@ behavior such as: can't be found. In this case, the TriBITS project would set `${PROJECT_NAME}_REQUIRES_PYTHON`_ to ``TRUE``. -3. Some TriBITS projects may require a version of Python more recent than 2.7. - In this case, the TriBITS project would set `PythonInterp_FIND_VERSION`_ to - some value higher than ``2.7``. For example, may newer systems have only - Python 3.5.2 or higher versions installed by default and projects developed - on such a system typically requires this version or higher. +3. Some TriBITS projects may require a version of Python more recent than 3.6. + In this case, the TriBITS project would set + `${PROJECT_NAME}_Python3_FIND_VERSION`_ to some value higher than ``3.6``. + For example, may newer systems have higher versions of Python installed by + default, and projects developed on such a system typically require this + version or higher. Project-Specific Build Reference diff --git a/cmake/tribits/doc/guides/TribitsMacroFunctionDocTemplate.rst b/cmake/tribits/doc/guides/TribitsMacroFunctionDocTemplate.rst index 15e079ea7067..1546777bf499 100644 --- a/cmake/tribits/doc/guides/TribitsMacroFunctionDocTemplate.rst +++ b/cmake/tribits/doc/guides/TribitsMacroFunctionDocTemplate.rst @@ -31,6 +31,7 @@ @FUNCTION: tribits_find_most_recent_binary_file_timestamp() + @FUNCTION: tribits_find_most_recent_file_timestamp() + @FUNCTION: tribits_find_most_recent_source_file_timestamp() + +@FUNCTION: tribits_get_package_enable_status() + @FUNCTION: tribits_install_headers() + @MACRO: tribits_include_directories() + @MACRO: tribits_pkg_export_cache_var() + @@ -38,9 +39,11 @@ @MACRO: tribits_package_decl() + @MACRO: tribits_package_def() + @MACRO: tribits_package_define_dependencies() + +@MACRO: tribits_process_enabled_standard_tpl() + +@FUNCTION: tribits_package_is_enabled_or_unset() + +@FUNCTION: tribits_package_is_explicitly_disabled() + @MACRO: tribits_package_postprocess() + @MACRO: tribits_process_subpackages() + -@MACRO: tribits_process_enabled_standard_tpl() + @MACRO: tribits_project() + @MACRO: tribits_project_define_extra_repositories() + @MACRO: tribits_project_enable_all() + diff --git a/cmake/tribits/examples/MockTrilinos/Copyright.txt b/cmake/tribits/examples/MockTrilinos/Copyright.txt deleted file mode 100644 index 70962ece0e27..000000000000 --- a/cmake/tribits/examples/MockTrilinos/Copyright.txt +++ /dev/null @@ -1,38 +0,0 @@ -# @HEADER -# ************************************************************************ -# -# TriBITS: Tribal Build, Integrate, and Test System -# Copyright 2013 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. -# -# ************************************************************************ -# @HEADER diff --git a/cmake/tribits/examples/TribitsExampleProject/Copyright.txt b/cmake/tribits/examples/TribitsExampleProject/Copyright.txt index 70962ece0e27..0113c98fa77b 100644 --- a/cmake/tribits/examples/TribitsExampleProject/Copyright.txt +++ b/cmake/tribits/examples/TribitsExampleProject/Copyright.txt @@ -1,38 +1,8 @@ -# @HEADER -# ************************************************************************ -# -# TriBITS: Tribal Build, Integrate, and Test System -# Copyright 2013 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. -# -# ************************************************************************ -# @HEADER + TriBITS: Tribal Build, Integrate, and Test System + Copyright (c) 2013 NTESS + +Copyright 2013 National Technology & Engineering Solutions of Sandia, +LLC (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the +U.S. Government retains certain rights in this software. + +Copyright the TriBITS contributors. diff --git a/cmake/tribits/examples/TribitsExampleProject/LICENSE b/cmake/tribits/examples/TribitsExampleProject/LICENSE index 8574da5f5a8d..266ee2add564 100644 --- a/cmake/tribits/examples/TribitsExampleProject/LICENSE +++ b/cmake/tribits/examples/TribitsExampleProject/LICENSE @@ -1,6 +1,31 @@ -TribitsExampleProject is part of the TriBITS system and is provided under a -very liberal 3-clause BSD-like license that is described in the file -~/Copyright.txt. All of the software under this directory is subject to the -conditions of this license by default unless otherwise noted in the individual -files or directories. In particular, there are no files that violate GPL or -any other licnese agreements that would limit distribution. +SPDX-License-Identifier: BSD-3-Clause + +Copyright (c) 2013 NTESS and the TriBITS contributors. + +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 copyright holder nor the names of + its contributors may be used to endorse or promote products + derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"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 THE +COPYRIGHT HOLDER OR 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. diff --git a/cmake/tribits/examples/TribitsExampleProject/cmake/CallbackSetupExtraOptions.cmake b/cmake/tribits/examples/TribitsExampleProject/cmake/CallbackSetupExtraOptions.cmake index 7a66eb1f9969..fd9d8f539c6f 100644 --- a/cmake/tribits/examples/TribitsExampleProject/cmake/CallbackSetupExtraOptions.cmake +++ b/cmake/tribits/examples/TribitsExampleProject/cmake/CallbackSetupExtraOptions.cmake @@ -12,11 +12,11 @@ macro(TRIBITS_REPOSITORY_SETUP_EXTRA_OPTIONS) set(${PROJECT_NAME}_ENABLE_WrapExternal OFF) endif() - if ("${PYTHON_EXECUTABLE}" STREQUAL "") + if ("${Python3_EXECUTABLE}" STREQUAL "") message( "\n***" "\n*** NOTE: Setting ${PROJECT_NAME}_ENABLE_WrapExternal=OFF" - " because PYTHON_EXECUTABLE=''!" + " because Python3_EXECUTABLE=''!" "\n***\n" ) set(${PROJECT_NAME}_ENABLE_WrapExternal OFF) diff --git a/cmake/tribits/examples/TribitsExampleProject/packages/wrap_external/CMakeLists.txt b/cmake/tribits/examples/TribitsExampleProject/packages/wrap_external/CMakeLists.txt index a9f8b0a37331..bd0f4ef752ee 100644 --- a/cmake/tribits/examples/TribitsExampleProject/packages/wrap_external/CMakeLists.txt +++ b/cmake/tribits/examples/TribitsExampleProject/packages/wrap_external/CMakeLists.txt @@ -82,7 +82,7 @@ add_custom_command( OUTPUT ${EXTERNAL_FUNC_MAKEFILE} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt ${EXTERNAL_FUNC_SOURCE_DIR}/configure.py - COMMAND ${PYTHON_EXECUTABLE} ${EXTERNAL_FUNC_SOURCE_DIR}/configure.py + COMMAND ${Python3_EXECUTABLE} ${EXTERNAL_FUNC_SOURCE_DIR}/configure.py "--cxx=${CMAKE_CXX_COMPILER}" "--cxx-flags=${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_${upperBuildType}}" "--ar=${CMAKE_AR}" diff --git a/cmake/tribits/examples/TribitsExampleProject/packages/wrap_external/external_func/configure.py b/cmake/tribits/examples/TribitsExampleProject/packages/wrap_external/external_func/configure.py index 9da2e1347217..bdbba413ee82 100755 --- a/cmake/tribits/examples/TribitsExampleProject/packages/wrap_external/external_func/configure.py +++ b/cmake/tribits/examples/TribitsExampleProject/packages/wrap_external/external_func/configure.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys import os diff --git a/cmake/tribits/python_utils/download-cmake.py b/cmake/tribits/python_utils/download-cmake.py index 97fa24d152d7..e2a2f045011f 100755 --- a/cmake/tribits/python_utils/download-cmake.py +++ b/cmake/tribits/python_utils/download-cmake.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/python_utils/extract_rst_cmake_doc.py b/cmake/tribits/python_utils/extract_rst_cmake_doc.py index 703896ce0f38..016757aae1c7 100755 --- a/cmake/tribits/python_utils/extract_rst_cmake_doc.py +++ b/cmake/tribits/python_utils/extract_rst_cmake_doc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/python_utils/generate-docutils-output.py b/cmake/tribits/python_utils/generate-docutils-output.py index 27fc8aa77c9c..bb70709d7a62 100755 --- a/cmake/tribits/python_utils/generate-docutils-output.py +++ b/cmake/tribits/python_utils/generate-docutils-output.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 usageHelp = r"""generate-docutils-output.py --file-base= [options] diff --git a/cmake/tribits/python_utils/generic-looping-demon.py b/cmake/tribits/python_utils/generic-looping-demon.py index ab6cc52d4cd0..5494278e382f 100755 --- a/cmake/tribits/python_utils/generic-looping-demon.py +++ b/cmake/tribits/python_utils/generic-looping-demon.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/python_utils/gitdist.py b/cmake/tribits/python_utils/gitdist.py index 6800e2e20ca7..e10b6716fe28 100755 --- a/cmake/tribits/python_utils/gitdist.py +++ b/cmake/tribits/python_utils/gitdist.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # diff --git a/cmake/tribits/python_utils/lower_case_cmake.py b/cmake/tribits/python_utils/lower_case_cmake.py index ea769dbdb877..454cabdd83ad 100755 --- a/cmake/tribits/python_utils/lower_case_cmake.py +++ b/cmake/tribits/python_utils/lower_case_cmake.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys diff --git a/cmake/tribits/python_utils/mailmsg.py b/cmake/tribits/python_utils/mailmsg.py index 4c7017d698d6..220c39b4dd39 100755 --- a/cmake/tribits/python_utils/mailmsg.py +++ b/cmake/tribits/python_utils/mailmsg.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/python_utils/mockprogram.py b/cmake/tribits/python_utils/mockprogram.py index 7813c23a9223..05b898b226f5 100755 --- a/cmake/tribits/python_utils/mockprogram.py +++ b/cmake/tribits/python_utils/mockprogram.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** diff --git a/cmake/tribits/python_utils/snapshot-dir.py b/cmake/tribits/python_utils/snapshot-dir.py index 76436dca4753..e2cf687eaaac 100755 --- a/cmake/tribits/python_utils/snapshot-dir.py +++ b/cmake/tribits/python_utils/snapshot-dir.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ***************************************************************************** # TriBITS: Tribal Build, Integrate, and Test System diff --git a/cmake/tribits/python_utils/tree.py b/cmake/tribits/python_utils/tree.py index 15047bf6f7a2..720ece0437b3 100755 --- a/cmake/tribits/python_utils/tree.py +++ b/cmake/tribits/python_utils/tree.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # tree.py # diff --git a/cmake/tribits/refactoring/string-replace.py b/cmake/tribits/refactoring/string-replace.py new file mode 100755 index 000000000000..bb6b33a34640 --- /dev/null +++ b/cmake/tribits/refactoring/string-replace.py @@ -0,0 +1,64 @@ +#!/bin/env python3 + +usageHelp = r""" + +Replace a given string with another string in a file (but only touch the file +if there were changes). + +""" + + +def getCmndLineOptions(): + from argparse import ArgumentParser, RawDescriptionHelpFormatter + + clp = ArgumentParser(description=usageHelp, + formatter_class=RawDescriptionHelpFormatter) + + clp.add_argument( + "-s", dest="stringToReplace", required=True, + help="String to repalce" ) + + clp.add_argument( + "-r", dest="replacementString", required=True, + help="Replacement string" ) + + clp.add_argument( + "-f", dest="inputFile", required=True, + help="Input file (and also output if -o not specified)" ) + + clp.add_argument( + "-o", dest="outputFile", default="", + help="Output file (optional)" ) + + options = clp.parse_args(sys.argv[1:]) + + if options.outputFile == "": + options.outputFile = options.inputFile + + return options + + +# +# Main() +# + +if __name__ == '__main__': + + import sys + + inOptions = getCmndLineOptions() + + with open(inOptions.inputFile, 'r') as file: + lines = file.readlines() + + fileWasChanged = False + newLines = [] + for line in lines: + newLine = line.replace(inOptions.stringToReplace, inOptions.replacementString) + if newLine != line: + fileWasChanged = True + newLines.append(newLine) + + if (fileWasChanged or inOptions.outputFile != inOptions.inputFile): + with open(inOptions.outputFile, 'w') as file: + file.writelines(newLines) diff --git a/cmake/tribits/refactoring/to-python3.sh b/cmake/tribits/refactoring/to-python3.sh new file mode 100755 index 000000000000..4c40c0d67643 --- /dev/null +++ b/cmake/tribits/refactoring/to-python3.sh @@ -0,0 +1,23 @@ +#!/bin/sh +# +# Refactor a TriBITS project's CMake files for the change from +# find_package(PythonInterp) to find_package(Python3) (see CHANGELOG.md entry +# for 2024-10-08). +# +# Usage: +# +# to-python3.sh +# +# NOTES: +# * This is safe to run multiple times on the same set of files. +# * This is safe to run from the base project source tree. +# * This will exclude any files under '.git/' +# * This will exclude any files under 'tribits/' directories (so it will not mess up TriBITS) +# + +_SCRIPT_DIR=`echo $0 | sed "s/\(.*\)\/to-python3[.]sh/\1/g"` +baseDir=$1 +find ${baseDir} -type f \ + \( -name CMakeLists.txt -or -name "*.cmake" -or -name "*.cmake.in" -or -name "*.rst" \) \ + ! -wholename "*/.git/*" ! -wholename "*/tribits/*" \ + -exec $_SCRIPT_DIR/token-replace.py -t PYTHON_EXECUTABLE -r Python3_EXECUTABLE -f {} ';' diff --git a/cmake/tribits/refactoring/token-replace.py b/cmake/tribits/refactoring/token-replace.py new file mode 100755 index 000000000000..9c425a65ab52 --- /dev/null +++ b/cmake/tribits/refactoring/token-replace.py @@ -0,0 +1,77 @@ +#!/bin/env python3 + +usageHelp = r""" + +Replace a given token string with another string in a file (but only touch the +file if there were changes). + +This will only match complete tokens that match the regex: + + ([^A-Za-z0-9_])|^)Build System during the copy procedure. For example, the first line of each test script source file is now:

-#! ${PYTHON_EXECUTABLE}
+#! ${Python3_EXECUTABLE}
 

which means that the python executable that is recognized (and compiled against) by the CMake build system will also be the python diff --git a/packages/PyTrilinos/doc/DevelopersGuide/Testing.txt b/packages/PyTrilinos/doc/DevelopersGuide/Testing.txt index 089946e00b03..c98a32442662 100644 --- a/packages/PyTrilinos/doc/DevelopersGuide/Testing.txt +++ b/packages/PyTrilinos/doc/DevelopersGuide/Testing.txt @@ -44,7 +44,7 @@ reason for this is that CMake variable values can be substituted during the copy procedure. For example, the first line of each test script source file is now:: - #! ${PYTHON_EXECUTABLE} + #! ${Python3_EXECUTABLE} which means that the python executable that is recognized (and compiled against) by the CMake build system will also be the python diff --git a/packages/PyTrilinos/doc/Doxygen/CMakeLists.txt b/packages/PyTrilinos/doc/Doxygen/CMakeLists.txt index 37dc7c7e38e7..d46df421389d 100644 --- a/packages/PyTrilinos/doc/Doxygen/CMakeLists.txt +++ b/packages/PyTrilinos/doc/Doxygen/CMakeLists.txt @@ -63,7 +63,7 @@ FOREACH(Package ${PyTrilinos_PACKAGES}) ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile_${Package} @ONLY ) - EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/docstrings.py + EXECUTE_PROCESS(COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/docstrings.py --doxygen=${DOXYGEN_EXECUTABLE} ${Package} WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ERROR_VARIABLE Doxy_CONVERT_ERROR) diff --git a/packages/PyTrilinos/doc/Doxygen/docstrings.py.in b/packages/PyTrilinos/doc/Doxygen/docstrings.py.in index c0a537af9b29..ac59b6b38cd6 100755 --- a/packages/PyTrilinos/doc/Doxygen/docstrings.py.in +++ b/packages/PyTrilinos/doc/Doxygen/docstrings.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # System includes from __future__ import print_function diff --git a/packages/PyTrilinos/doc/Doxygen/doxy2swig.py.in b/packages/PyTrilinos/doc/Doxygen/doxy2swig.py.in index ba7088ecc27e..878bd9721ffc 100755 --- a/packages/PyTrilinos/doc/Doxygen/doxy2swig.py.in +++ b/packages/PyTrilinos/doc/Doxygen/doxy2swig.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} """ Doxygen XML to SWIG docstring converter. diff --git a/packages/PyTrilinos/doc/Doxygen/makedeps.py.in b/packages/PyTrilinos/doc/Doxygen/makedeps.py.in index e7c18c441311..3a94a5590bfc 100755 --- a/packages/PyTrilinos/doc/Doxygen/makedeps.py.in +++ b/packages/PyTrilinos/doc/Doxygen/makedeps.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} """ Create a Makefile dependency file that includes all of the names of the source diff --git a/packages/PyTrilinos/doc/UsersGuide/BuildingAndInstalling.txt b/packages/PyTrilinos/doc/UsersGuide/BuildingAndInstalling.txt index 99b5ec781a64..0392cd4df3b2 100644 --- a/packages/PyTrilinos/doc/UsersGuide/BuildingAndInstalling.txt +++ b/packages/PyTrilinos/doc/UsersGuide/BuildingAndInstalling.txt @@ -62,7 +62,7 @@ Python and SWIG You may specify the python interpreter (and thus the version of the Python/C API) with the ``cmake`` option:: - -D PYTHON_EXECUTABLE:FILEPATH=... + -D Python3_EXECUTABLE:FILEPATH=... If you do not specify this option, ``cmake`` actually looks for an executable named ``python2.7`` (and then ``python2.6``, etc., down to diff --git a/packages/PyTrilinos/doc/UsersGuide/UsersGuide.html b/packages/PyTrilinos/doc/UsersGuide/UsersGuide.html index 6a2425e34a7d..377b14dd0b58 100644 --- a/packages/PyTrilinos/doc/UsersGuide/UsersGuide.html +++ b/packages/PyTrilinos/doc/UsersGuide/UsersGuide.html @@ -427,7 +427,7 @@

Python and SWIG

You may specify the python interpreter (and thus the version of the Python/C API) with the cmake option:

--D PYTHON_EXECUTABLE:FILEPATH=...
+-D Python3_EXECUTABLE:FILEPATH=...
 

If you do not specify this option, cmake actually looks for an executable named python2.7 (and then python2.6, etc., down to diff --git a/packages/PyTrilinos/example/CMakeLists.txt b/packages/PyTrilinos/example/CMakeLists.txt index e0b9d4f89ed2..725334ed2869 100644 --- a/packages/PyTrilinos/example/CMakeLists.txt +++ b/packages/PyTrilinos/example/CMakeLists.txt @@ -47,7 +47,7 @@ ENABLE_TESTING() INCLUDE(PyTrilinosMakeTest) ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/testutil.py - COMMAND ${PYTHON_EXECUTABLE} + COMMAND ${Python3_EXECUTABLE} ${PyTrilinos_BINARY_DIR}/util/copyWithCMakeSubstitutions.py ${CMAKE_CURRENT_SOURCE_DIR}/testutil.py.in ${CMAKE_CURRENT_BINARY_DIR}/testutil.py @@ -57,7 +57,7 @@ ADD_CUSTOM_TARGET(PyTrilinos_Example_testutil ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/testutil.py) ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/gre__115.rua - COMMAND ${PYTHON_EXECUTABLE} + COMMAND ${Python3_EXECUTABLE} ${PyTrilinos_BINARY_DIR}/util/copyWithCMakeSubstitutions.py ${CMAKE_CURRENT_SOURCE_DIR}/gre__115.mx ${CMAKE_CURRENT_BINARY_DIR}/gre__115.rua diff --git a/packages/PyTrilinos/example/exAmesos_Factory.py.in b/packages/PyTrilinos/example/exAmesos_Factory.py.in index 0e3d3481ea00..8b2279f78c26 100755 --- a/packages/PyTrilinos/example/exAmesos_Factory.py.in +++ b/packages/PyTrilinos/example/exAmesos_Factory.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exAmesos_Solvers.py.in b/packages/PyTrilinos/example/exAmesos_Solvers.py.in index c056d4341ebf..273200a054ff 100755 --- a/packages/PyTrilinos/example/exAmesos_Solvers.py.in +++ b/packages/PyTrilinos/example/exAmesos_Solvers.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exAnasazi_BlockDavidson.py.in b/packages/PyTrilinos/example/exAnasazi_BlockDavidson.py.in index 2de10323d03f..69a94881498f 100755 --- a/packages/PyTrilinos/example/exAnasazi_BlockDavidson.py.in +++ b/packages/PyTrilinos/example/exAnasazi_BlockDavidson.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exAztecOO.py.in b/packages/PyTrilinos/example/exAztecOO.py.in index 0c3f04afacc9..23d357963874 100755 --- a/packages/PyTrilinos/example/exAztecOO.py.in +++ b/packages/PyTrilinos/example/exAztecOO.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exAztecOO_BasicRowMatrix.py.in b/packages/PyTrilinos/example/exAztecOO_BasicRowMatrix.py.in index e52348c1a679..83a21b88c21d 100755 --- a/packages/PyTrilinos/example/exAztecOO_BasicRowMatrix.py.in +++ b/packages/PyTrilinos/example/exAztecOO_BasicRowMatrix.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exAztecOO_Operator.py.in b/packages/PyTrilinos/example/exAztecOO_Operator.py.in index 9ad6a7d25254..d1690befac1c 100755 --- a/packages/PyTrilinos/example/exAztecOO_Operator.py.in +++ b/packages/PyTrilinos/example/exAztecOO_Operator.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exAztecOO_RowMatrix.py.in b/packages/PyTrilinos/example/exAztecOO_RowMatrix.py.in index dcc4f8e83e39..f9a2e09b7f1e 100755 --- a/packages/PyTrilinos/example/exAztecOO_RowMatrix.py.in +++ b/packages/PyTrilinos/example/exAztecOO_RowMatrix.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exDomi_Simple.py.in b/packages/PyTrilinos/example/exDomi_Simple.py.in index 89b739d115a7..1bb1b0f340f2 100755 --- a/packages/PyTrilinos/example/exDomi_Simple.py.in +++ b/packages/PyTrilinos/example/exDomi_Simple.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exEpetra.py.in b/packages/PyTrilinos/example/exEpetra.py.in index f27b511520bb..49fcb6c0bee7 100755 --- a/packages/PyTrilinos/example/exEpetra.py.in +++ b/packages/PyTrilinos/example/exEpetra.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exEpetraExt_IO_HDF5.py.in b/packages/PyTrilinos/example/exEpetraExt_IO_HDF5.py.in index 3d90da47e640..d35f64db9cd6 100755 --- a/packages/PyTrilinos/example/exEpetraExt_IO_HDF5.py.in +++ b/packages/PyTrilinos/example/exEpetraExt_IO_HDF5.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exEpetraExt_IO_MatrixMarket.py.in b/packages/PyTrilinos/example/exEpetraExt_IO_MatrixMarket.py.in index 83e1df3fc8b3..fecc442d3b97 100755 --- a/packages/PyTrilinos/example/exEpetraExt_IO_MatrixMarket.py.in +++ b/packages/PyTrilinos/example/exEpetraExt_IO_MatrixMarket.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exEpetraExt_IO_XML.py.in b/packages/PyTrilinos/example/exEpetraExt_IO_XML.py.in index 4c338604eb51..b56c447cd88e 100755 --- a/packages/PyTrilinos/example/exEpetraExt_IO_XML.py.in +++ b/packages/PyTrilinos/example/exEpetraExt_IO_XML.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exEpetraExt_MatrixMatrix.py.in b/packages/PyTrilinos/example/exEpetraExt_MatrixMatrix.py.in index 4205551be1e0..d4fd5be9a91f 100755 --- a/packages/PyTrilinos/example/exEpetraExt_MatrixMatrix.py.in +++ b/packages/PyTrilinos/example/exEpetraExt_MatrixMatrix.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exEpetra_Comm.py.in b/packages/PyTrilinos/example/exEpetra_Comm.py.in index ec499a8c3522..4286f676cd99 100755 --- a/packages/PyTrilinos/example/exEpetra_Comm.py.in +++ b/packages/PyTrilinos/example/exEpetra_Comm.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exEpetra_CrsMatrix_Easy.py.in b/packages/PyTrilinos/example/exEpetra_CrsMatrix_Easy.py.in index 6abadf1e4338..ec6d02a78e13 100755 --- a/packages/PyTrilinos/example/exEpetra_CrsMatrix_Easy.py.in +++ b/packages/PyTrilinos/example/exEpetra_CrsMatrix_Easy.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exEpetra_CrsMatrix_Efficient.py.in b/packages/PyTrilinos/example/exEpetra_CrsMatrix_Efficient.py.in index bedee3eb2148..59feca1aab25 100755 --- a/packages/PyTrilinos/example/exEpetra_CrsMatrix_Efficient.py.in +++ b/packages/PyTrilinos/example/exEpetra_CrsMatrix_Efficient.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exEpetra_DAP.py.in b/packages/PyTrilinos/example/exEpetra_DAP.py.in index d112a8f45a05..a3a3fd165c43 100755 --- a/packages/PyTrilinos/example/exEpetra_DAP.py.in +++ b/packages/PyTrilinos/example/exEpetra_DAP.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exEpetra_FECrsMatrix_Easy.py.in b/packages/PyTrilinos/example/exEpetra_FECrsMatrix_Easy.py.in index 72b75666e425..9e0d4f064d35 100755 --- a/packages/PyTrilinos/example/exEpetra_FECrsMatrix_Easy.py.in +++ b/packages/PyTrilinos/example/exEpetra_FECrsMatrix_Easy.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exEpetra_ImportExport.py.in b/packages/PyTrilinos/example/exEpetra_ImportExport.py.in index 37b690100d76..3880f9377ccf 100755 --- a/packages/PyTrilinos/example/exEpetra_ImportExport.py.in +++ b/packages/PyTrilinos/example/exEpetra_ImportExport.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exGaleri.py.in b/packages/PyTrilinos/example/exGaleri.py.in index 4625ae8061eb..172437b804f9 100755 --- a/packages/PyTrilinos/example/exGaleri.py.in +++ b/packages/PyTrilinos/example/exGaleri.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exGaleri_ReadHB.py.in b/packages/PyTrilinos/example/exGaleri_ReadHB.py.in index d4d291c2a5db..ef3028537641 100755 --- a/packages/PyTrilinos/example/exGaleri_ReadHB.py.in +++ b/packages/PyTrilinos/example/exGaleri_ReadHB.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exIFPACK.py.in b/packages/PyTrilinos/example/exIFPACK.py.in index 85da04dfe92a..b8848fd4ca40 100755 --- a/packages/PyTrilinos/example/exIFPACK.py.in +++ b/packages/PyTrilinos/example/exIFPACK.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exIsorropia.py.in b/packages/PyTrilinos/example/exIsorropia.py.in index 846367e6b23f..911ef3c3b8b4 100755 --- a/packages/PyTrilinos/example/exIsorropia.py.in +++ b/packages/PyTrilinos/example/exIsorropia.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exKomplex_Simple.py.in b/packages/PyTrilinos/example/exKomplex_Simple.py.in index e3f4e98b36c0..1fc22a553020 100755 --- a/packages/PyTrilinos/example/exKomplex_Simple.py.in +++ b/packages/PyTrilinos/example/exKomplex_Simple.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exLOCA_Chan.py.in b/packages/PyTrilinos/example/exLOCA_Chan.py.in index 95a3efc5d4b3..a7e713957dd2 100755 --- a/packages/PyTrilinos/example/exLOCA_Chan.py.in +++ b/packages/PyTrilinos/example/exLOCA_Chan.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # ************************************************************************ diff --git a/packages/PyTrilinos/example/exLOCA_Chan_Jac.py.in b/packages/PyTrilinos/example/exLOCA_Chan_Jac.py.in index 874930734eb3..ac2b993e8044 100755 --- a/packages/PyTrilinos/example/exLOCA_Chan_Jac.py.in +++ b/packages/PyTrilinos/example/exLOCA_Chan_Jac.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # ************************************************************************ diff --git a/packages/PyTrilinos/example/exMLAPI.py.in b/packages/PyTrilinos/example/exMLAPI.py.in index 80710cee17f6..2143e440ac8b 100755 --- a/packages/PyTrilinos/example/exMLAPI.py.in +++ b/packages/PyTrilinos/example/exMLAPI.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exMLAPI_AztecOO.py.in b/packages/PyTrilinos/example/exMLAPI_AztecOO.py.in index ecee9419a9e9..a54438b4211a 100755 --- a/packages/PyTrilinos/example/exMLAPI_AztecOO.py.in +++ b/packages/PyTrilinos/example/exMLAPI_AztecOO.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exMLAPI_Iterate.py.in b/packages/PyTrilinos/example/exMLAPI_Iterate.py.in index 146efc841ba2..a2dd0c6d8658 100755 --- a/packages/PyTrilinos/example/exMLAPI_Iterate.py.in +++ b/packages/PyTrilinos/example/exMLAPI_Iterate.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exMLAPI_PyMatrix.py.in b/packages/PyTrilinos/example/exMLAPI_PyMatrix.py.in index 840f36179e63..c7762fe76f36 100755 --- a/packages/PyTrilinos/example/exMLAPI_PyMatrix.py.in +++ b/packages/PyTrilinos/example/exMLAPI_PyMatrix.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exMLAPI_Simple.py.in b/packages/PyTrilinos/example/exMLAPI_Simple.py.in index aaef201b7f27..004b6d09f62a 100755 --- a/packages/PyTrilinos/example/exMLAPI_Simple.py.in +++ b/packages/PyTrilinos/example/exMLAPI_Simple.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exMLAPI_Smoother.py.in b/packages/PyTrilinos/example/exMLAPI_Smoother.py.in index ef3c891d3bcc..49e96dbeeec4 100755 --- a/packages/PyTrilinos/example/exMLAPI_Smoother.py.in +++ b/packages/PyTrilinos/example/exMLAPI_Smoother.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exMPI_Init.py.in b/packages/PyTrilinos/example/exMPI_Init.py.in index 50734b6d7764..2de079f7340f 100755 --- a/packages/PyTrilinos/example/exMPI_Init.py.in +++ b/packages/PyTrilinos/example/exMPI_Init.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exNOXEpetraExt_2DSim.py.in b/packages/PyTrilinos/example/exNOXEpetraExt_2DSim.py.in index b138a090d67d..e4d7e73ea745 100755 --- a/packages/PyTrilinos/example/exNOXEpetraExt_2DSim.py.in +++ b/packages/PyTrilinos/example/exNOXEpetraExt_2DSim.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exNOX_1Dfdm.py.in b/packages/PyTrilinos/example/exNOX_1Dfdm.py.in index 44a3ff9563d1..aecd4893dff2 100755 --- a/packages/PyTrilinos/example/exNOX_1Dfdm.py.in +++ b/packages/PyTrilinos/example/exNOX_1Dfdm.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exNOX_2DSim.py.in b/packages/PyTrilinos/example/exNOX_2DSim.py.in index 4b79e9a051ba..c388b9e01dd3 100755 --- a/packages/PyTrilinos/example/exNOX_2DSim.py.in +++ b/packages/PyTrilinos/example/exNOX_2DSim.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exTeuchos.py.in b/packages/PyTrilinos/example/exTeuchos.py.in index 7a0075568952..2418b35dfc37 100755 --- a/packages/PyTrilinos/example/exTeuchos.py.in +++ b/packages/PyTrilinos/example/exTeuchos.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/exThyra.py.in b/packages/PyTrilinos/example/exThyra.py.in index 18614d00d130..f94e6bfaa203 100755 --- a/packages/PyTrilinos/example/exThyra.py.in +++ b/packages/PyTrilinos/example/exThyra.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/example/testutil.py.in b/packages/PyTrilinos/example/testutil.py.in index 57f7562811bb..0f115f102758 100644 --- a/packages/PyTrilinos/example/testutil.py.in +++ b/packages/PyTrilinos/example/testutil.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/src/CMakeLists.txt b/packages/PyTrilinos/src/CMakeLists.txt index 5e071091841f..5cdc5a45f6bd 100644 --- a/packages/PyTrilinos/src/CMakeLists.txt +++ b/packages/PyTrilinos/src/CMakeLists.txt @@ -262,7 +262,7 @@ SET_TARGET_PROPERTIES(pytrilinos # # Get the python version -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c +EXECUTE_PROCESS(COMMAND ${Python3_EXECUTABLE} -c "import sys; print(sys.version[:3])" OUTPUT_VARIABLE PYTHON_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE @@ -323,7 +323,7 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${TEUCHOS_RCP_SCRIPT}.in ${CMAKE_CURRENT_BINARY_DIR}/${TEUCHOS_RCP_SCRIPT}) ADD_CUSTOM_COMMAND( OUTPUT "${TEUCHOS_RCP}" - COMMAND "${PYTHON_EXECUTABLE}" + COMMAND "${Python3_EXECUTABLE}" ARGS ${CMAKE_CURRENT_BINARY_DIR}/${TEUCHOS_RCP_SCRIPT} > ${CMAKE_CURRENT_BINARY_DIR}/${TEUCHOS_RCP} ) @@ -343,7 +343,7 @@ SET_TARGET_PROPERTIES(${TEUCHOS_RCP_TARGET} PROPERTIES LINK_FLAGS "${EXTRA_LINK_ARGS}" ) ADD_CUSTOM_COMMAND(TARGET ${TEUCHOS_RCP_TARGET} POST_BUILD - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/Teuchos/RCP.py', 'PyTrilinos/Teuchos/RCP.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/Teuchos/RCP.py', 'PyTrilinos/Teuchos/RCP.pyc')" COMMENT "Byte compiling Teuchos/RCP.py" VERBATIM) LIST(APPEND ADDITIONAL_CLEAN_FILES ${CMAKE_CURRENT_BINARY_DIR}/${TEUCHOS_RCP}) @@ -399,7 +399,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES}) # causes other packages to "import Teuchos" properly. IF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/Teuchos") ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/Teuchos/${MODULE_NAME}.py', 'PyTrilinos/Teuchos/${MODULE_NAME}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/Teuchos/${MODULE_NAME}.py', 'PyTrilinos/Teuchos/${MODULE_NAME}.pyc')" COMMENT "Byte compiling Teuchos/${MODULE_NAME}.py" VERBATIM) INSTALL(FILES @@ -414,7 +414,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES}) ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/NOX/Epetra") SET(TRILINOS_LIBS ${NOXEPETRA_LIBRARIES}) ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/NOX/Epetra/${MODULE_NAME}.py', 'PyTrilinos/NOX/Epetra/${MODULE_NAME}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/NOX/Epetra/${MODULE_NAME}.py', 'PyTrilinos/NOX/Epetra/${MODULE_NAME}.pyc')" COMMENT "Byte compiling NOX/Epetra/${MODULE_NAME}.py" VERBATIM) INSTALL(FILES @@ -430,7 +430,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES}) ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/NOX/PETSc") SET(TRILINOS_LIBS ${NOXPETSC_LIBRARIES}) ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/NOX/PETSc/${MODULE_NAME}.py', 'PyTrilinos/NOX/PETSc/${MODULE_NAME}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/NOX/PETSc/${MODULE_NAME}.py', 'PyTrilinos/NOX/PETSc/${MODULE_NAME}.pyc')" COMMENT "Byte compiling NOX/PETSc/${MODULE_NAME}.py" VERBATIM) INSTALL(FILES @@ -446,7 +446,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES}) ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/NOX") SET(TRILINOS_LIBS ${NOX_LIBRARIES}) ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/NOX/${MODULE_NAME}.py', 'PyTrilinos/NOX/${MODULE_NAME}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/NOX/${MODULE_NAME}.py', 'PyTrilinos/NOX/${MODULE_NAME}.pyc')" COMMENT "Byte compiling NOX/${MODULE_NAME}.py" VERBATIM) INSTALL(FILES @@ -462,7 +462,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES}) ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/LOCA/Hopf") SET(TRILINOS_LIBS ${LOCAEPETRA_LIBRARIES}) ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/Hopf/${MODULE_NAME}.py', 'PyTrilinos/LOCA/Hopf/${MODULE_NAME}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/Hopf/${MODULE_NAME}.py', 'PyTrilinos/LOCA/Hopf/${MODULE_NAME}.pyc')" COMMENT "Byte compiling LOCA/Hopf/${MODULE_NAME}.py" VERBATIM) INSTALL(FILES @@ -478,7 +478,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES}) ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/LOCA/Pitchfork") SET(TRILINOS_LIBS ${LOCAEPETRA_LIBRARIES}) ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/Pitchfork/${MODULE_NAME}.py', 'PyTrilinos/LOCA/Pitchfork/${MODULE_NAME}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/Pitchfork/${MODULE_NAME}.py', 'PyTrilinos/LOCA/Pitchfork/${MODULE_NAME}.pyc')" COMMENT "Byte compiling LOCA/Pitchfork/${MODULE_NAME}.py" VERBATIM) INSTALL(FILES @@ -494,7 +494,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES}) ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/LOCA/TurningPoint") SET(TRILINOS_LIBS ${LOCAEPETRA_LIBRARIES}) ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/TurningPoint/${MODULE_NAME}.py', 'PyTrilinos/LOCA/TurningPoint/${MODULE_NAME}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/TurningPoint/${MODULE_NAME}.py', 'PyTrilinos/LOCA/TurningPoint/${MODULE_NAME}.pyc')" COMMENT "Byte compiling LOCA/TurningPoint/${MODULE_NAME}.py" VERBATIM) INSTALL(FILES @@ -510,7 +510,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES}) ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/LOCA/Epetra") SET(TRILINOS_LIBS ${LOCAEPETRA_LIBRARIES}) ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/Epetra/${MODULE_NAME}.py', 'PyTrilinos/LOCA/Epetra/${MODULE_NAME}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/Epetra/${MODULE_NAME}.py', 'PyTrilinos/LOCA/Epetra/${MODULE_NAME}.pyc')" COMMENT "Byte compiling LOCA/Epetra/${MODULE_NAME}.py" VERBATIM) INSTALL(FILES @@ -526,7 +526,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES}) ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/LOCA") SET(TRILINOS_LIBS ${LOCA_LIBRARIES}) ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/${MODULE_NAME}.py', 'PyTrilinos/LOCA/${MODULE_NAME}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/LOCA/${MODULE_NAME}.py', 'PyTrilinos/LOCA/${MODULE_NAME}.pyc')" COMMENT "Byte compiling LOCA/${MODULE_NAME}.py" VERBATIM) INSTALL(FILES @@ -542,7 +542,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES}) ELSEIF("${MODULE_OUTDIR}" MATCHES "PyTrilinos/Isorropia") SET(TRILINOS_LIBS ${ISORROPIA_LIBRARIES}) ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/Isorropia/${MODULE_NAME}.py', 'PyTrilinos/Isorropia/${MODULE_NAME}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/Isorropia/${MODULE_NAME}.py', 'PyTrilinos/Isorropia/${MODULE_NAME}.pyc')" COMMENT "Byte compiling Isorropia/${MODULE_NAME}.py" VERBATIM) INSTALL(FILES @@ -558,7 +558,7 @@ FOREACH(MODULE ${PyTrilinos_MODULES}) ELSE() SET(TRILINOS_LIBS ${${MODULE_UPPER}_LIBRARIES}) ADD_CUSTOM_COMMAND(TARGET ${PyTrilinos_TARGET_NAME} POST_BUILD - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/${MODULE}.py', 'PyTrilinos/${MODULE}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('PyTrilinos/${MODULE}.py', 'PyTrilinos/${MODULE}.pyc')" COMMENT "Byte compiling ${MODULE}.py" VERBATIM) INSTALL(FILES diff --git a/packages/PyTrilinos/src/PyTrilinos/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/CMakeLists.txt index 3ca687f781f8..97fe157c0729 100644 --- a/packages/PyTrilinos/src/PyTrilinos/CMakeLists.txt +++ b/packages/PyTrilinos/src/PyTrilinos/CMakeLists.txt @@ -71,7 +71,7 @@ FOREACH(MODULE ${LOCAL_MODULES}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in ${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py) ADD_CUSTOM_COMMAND(TARGET PyTrilinos_Pure_Python_Modules - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" COMMENT "Byte compiling ${MODULE}.py" BYPRODUCTS ${MODULE}.pyc VERBATIM) diff --git a/packages/PyTrilinos/src/PyTrilinos/Isorropia/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/Isorropia/CMakeLists.txt index a06fb4c0b452..fcc954bb5e4a 100644 --- a/packages/PyTrilinos/src/PyTrilinos/Isorropia/CMakeLists.txt +++ b/packages/PyTrilinos/src/PyTrilinos/Isorropia/CMakeLists.txt @@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in ${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py) ADD_CUSTOM_COMMAND(TARGET PyTrilinos_Isorropia_Pure_Python_Modules - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" COMMENT "Byte compiling Isorropia/${MODULE}.py" BYPRODUCTS ${MODULE}.pyc VERBATIM) diff --git a/packages/PyTrilinos/src/PyTrilinos/Isorropia/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/Isorropia/__init__.py.in index 56d8856619a2..45bec4cbc46f 100644 --- a/packages/PyTrilinos/src/PyTrilinos/Isorropia/__init__.py.in +++ b/packages/PyTrilinos/src/PyTrilinos/Isorropia/__init__.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/LOCA/CMakeLists.txt index 5d119713bb5a..f9d30e0bb252 100644 --- a/packages/PyTrilinos/src/PyTrilinos/LOCA/CMakeLists.txt +++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/CMakeLists.txt @@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in ${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py) ADD_CUSTOM_COMMAND(TARGET PyTrilinos_LOCA_Pure_Python_Modules - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" COMMENT "Byte compiling LOCA/${MODULE}.py" BYPRODUCTS ${MODULE}.pyc VERBATIM) diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/CMakeLists.txt index 221043450b01..c61356409bf4 100644 --- a/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/CMakeLists.txt +++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/CMakeLists.txt @@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in ${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py) ADD_CUSTOM_COMMAND(TARGET PyTrilinos_LOCA_Epetra_Pure_Python_Modules - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" COMMENT "Byte compiling LOCA/Epetra/${MODULE}.py" BYPRODUCTS ${MODULE}.pyc VERBATIM) diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/__init__.py.in index c87f4ec4e00b..23947fcef50b 100644 --- a/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/__init__.py.in +++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/Epetra/__init__.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/CMakeLists.txt index 13d2e61841cc..ae379cf0475d 100644 --- a/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/CMakeLists.txt +++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/CMakeLists.txt @@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in ${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py) ADD_CUSTOM_COMMAND(TARGET PyTrilinos_LOCA_Hopf_Pure_Python_Modules - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" COMMENT "Byte compiling LOCA/Hopf/${MODULE}.py" BYPRODUCTS ${MODULE}.pyc VERBATIM) diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/__init__.py.in index c157a7d0476b..feebe7fa029b 100644 --- a/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/__init__.py.in +++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/Hopf/__init__.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/CMakeLists.txt index ae010fc45c65..885deb0d8ffd 100644 --- a/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/CMakeLists.txt +++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/CMakeLists.txt @@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in ${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py) ADD_CUSTOM_COMMAND(TARGET PyTrilinos_LOCA_Pitchfork_Pure_Python_Modules - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" COMMENT "Byte compiling LOCA/Pitchfork/${MODULE}.py" BYPRODUCTS ${MODULE}.pyc VERBATIM) diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/__init__.py.in index fa29127825d3..1b274442514d 100644 --- a/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/__init__.py.in +++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/Pitchfork/__init__.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/CMakeLists.txt index e2021357070e..324db7f7e37a 100644 --- a/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/CMakeLists.txt +++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/CMakeLists.txt @@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in ${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py) ADD_CUSTOM_COMMAND(TARGET PyTrilinos_LOCA_TurningPoint_Pure_Python_Modules - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" COMMENT "Byte compiling LOCA/TurningPoint/${MODULE}.py" BYPRODUCTS ${MODULE}.pyc VERBATIM) diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/__init__.py.in index 2e07b1b2c617..80dd1dbe1325 100644 --- a/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/__init__.py.in +++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/TurningPoint/__init__.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/src/PyTrilinos/LOCA/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/LOCA/__init__.py.in index a1dd9d41fe66..1089800b759b 100644 --- a/packages/PyTrilinos/src/PyTrilinos/LOCA/__init__.py.in +++ b/packages/PyTrilinos/src/PyTrilinos/LOCA/__init__.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/src/PyTrilinos/NOX/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/NOX/CMakeLists.txt index d7004ed6aea5..561235b3f775 100644 --- a/packages/PyTrilinos/src/PyTrilinos/NOX/CMakeLists.txt +++ b/packages/PyTrilinos/src/PyTrilinos/NOX/CMakeLists.txt @@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in ${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py) ADD_CUSTOM_COMMAND(TARGET PyTrilinos_NOX_Pure_Python_Modules - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" COMMENT "Byte compiling NOX/${MODULE}.py" BYPRODUCTS ${MODULE}.pyc VERBATIM) diff --git a/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/CMakeLists.txt index 93c5211c9178..78a05883d212 100644 --- a/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/CMakeLists.txt +++ b/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/CMakeLists.txt @@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in ${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py) ADD_CUSTOM_COMMAND(TARGET PyTrilinos_NOX_Epetra_Pure_Python_Modules - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" COMMENT "Byte compiling NOX/Epetra/${MODULE}.py" BYPRODUCTS ${MODULE}.pyc VERBATIM) diff --git a/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/__init__.py.in index 62fb83082991..c912295c13a0 100644 --- a/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/__init__.py.in +++ b/packages/PyTrilinos/src/PyTrilinos/NOX/Epetra/__init__.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/CMakeLists.txt index f9632d20df48..1d33fd3cce93 100644 --- a/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/CMakeLists.txt +++ b/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/CMakeLists.txt @@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in ${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py) ADD_CUSTOM_COMMAND(TARGET PyTrilinos_NOX_PETSc_Pure_Python_Modules - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" COMMENT "Byte compiling NOX/PETSc/${MODULE}.py" BYPRODUCTS ${MODULE}.pyc VERBATIM) diff --git a/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/__init__.py.in index f254110ebea3..ff799ed50ab3 100644 --- a/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/__init__.py.in +++ b/packages/PyTrilinos/src/PyTrilinos/NOX/PETSc/__init__.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/src/PyTrilinos/NOX/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/NOX/__init__.py.in index 0d477f1a5d20..c0fc512511d7 100644 --- a/packages/PyTrilinos/src/PyTrilinos/NOX/__init__.py.in +++ b/packages/PyTrilinos/src/PyTrilinos/NOX/__init__.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/src/PyTrilinos/Teuchos/CMakeLists.txt b/packages/PyTrilinos/src/PyTrilinos/Teuchos/CMakeLists.txt index 05a0308af428..15e2a717d576 100644 --- a/packages/PyTrilinos/src/PyTrilinos/Teuchos/CMakeLists.txt +++ b/packages/PyTrilinos/src/PyTrilinos/Teuchos/CMakeLists.txt @@ -58,7 +58,7 @@ FOREACH(MODULE ${LOCAL_MODULES}) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}.py.in ${CMAKE_CURRENT_BINARY_DIR}/${MODULE}.py) ADD_CUSTOM_COMMAND(TARGET PyTrilinos_Teuchos_Pure_Python_Modules - COMMAND ${PYTHON_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" + COMMAND ${Python3_EXECUTABLE} -c "import py_compile; py_compile.compile('${MODULE}.py', '${MODULE}.pyc')" COMMENT "Byte compiling Teuchos/${MODULE}.py" BYPRODUCTS ${MODULE}.pyc VERBATIM) diff --git a/packages/PyTrilinos/src/PyTrilinos/Teuchos/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/Teuchos/__init__.py.in index 3cf921c10867..28c81e2b7712 100644 --- a/packages/PyTrilinos/src/PyTrilinos/Teuchos/__init__.py.in +++ b/packages/PyTrilinos/src/PyTrilinos/Teuchos/__init__.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/src/PyTrilinos/__init__.py.in b/packages/PyTrilinos/src/PyTrilinos/__init__.py.in index 6c53789fd2c3..df2e9a056a91 100644 --- a/packages/PyTrilinos/src/PyTrilinos/__init__.py.in +++ b/packages/PyTrilinos/src/PyTrilinos/__init__.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/src/gen_teuchos_rcp.py.in b/packages/PyTrilinos/src/gen_teuchos_rcp.py.in index ac4ac19bc823..f56c3b12dfc3 100755 --- a/packages/PyTrilinos/src/gen_teuchos_rcp.py.in +++ b/packages/PyTrilinos/src/gen_teuchos_rcp.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- import glob diff --git a/packages/PyTrilinos/src/scripts/CMakeLists.txt b/packages/PyTrilinos/src/scripts/CMakeLists.txt index a30e4ff1a47b..4cbacec449a6 100644 --- a/packages/PyTrilinos/src/scripts/CMakeLists.txt +++ b/packages/PyTrilinos/src/scripts/CMakeLists.txt @@ -43,7 +43,7 @@ # @HEADER ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/testutil.py - COMMAND ${PYTHON_EXECUTABLE} + COMMAND ${Python3_EXECUTABLE} ${PyTrilinos_BINARY_DIR}/util/copyWithCMakeSubstitutions.py ${CMAKE_CURRENT_SOURCE_DIR}/testutil.py.in ${CMAKE_CURRENT_BINARY_DIR}/testutil.py @@ -55,7 +55,7 @@ ADD_CUSTOM_TARGET(PyTrilinos_Scripts_testutil ALL MACRO(PyTrilinos_MAKE_SCRIPT SCRIPT_NAME) ADD_CUSTOM_COMMAND(OUTPUT ${SCRIPT_NAME}.py - COMMAND ${PYTHON_EXECUTABLE} + COMMAND ${Python3_EXECUTABLE} ${PyTrilinos_BINARY_DIR}/util/copyWithCMakeSubstitutions.py ${CMAKE_CURRENT_SOURCE_DIR}/${SCRIPT_NAME}.py.in ${CMAKE_CURRENT_BINARY_DIR}/${SCRIPT_NAME}.py diff --git a/packages/PyTrilinos/src/scripts/IsorropiaVisualizer.py.in b/packages/PyTrilinos/src/scripts/IsorropiaVisualizer.py.in index 1a319fe5c2d3..0c0d613bd5be 100755 --- a/packages/PyTrilinos/src/scripts/IsorropiaVisualizer.py.in +++ b/packages/PyTrilinos/src/scripts/IsorropiaVisualizer.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # TODO: diff --git a/packages/PyTrilinos/src/scripts/testutil.py.in b/packages/PyTrilinos/src/scripts/testutil.py.in index 846ba26319c6..ee32ee8257e4 100644 --- a/packages/PyTrilinos/src/scripts/testutil.py.in +++ b/packages/PyTrilinos/src/scripts/testutil.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testAmesos.py.in b/packages/PyTrilinos/test/testAmesos.py.in index 53837470a9b1..1378054c583a 100755 --- a/packages/PyTrilinos/test/testAmesos.py.in +++ b/packages/PyTrilinos/test/testAmesos.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testAnasazi.py.in b/packages/PyTrilinos/test/testAnasazi.py.in index 23023f3a861e..764c1c4fd17e 100755 --- a/packages/PyTrilinos/test/testAnasazi.py.in +++ b/packages/PyTrilinos/test/testAnasazi.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testAztecOO.py.in b/packages/PyTrilinos/test/testAztecOO.py.in index f991e98aa412..b807f561faf5 100755 --- a/packages/PyTrilinos/test/testAztecOO.py.in +++ b/packages/PyTrilinos/test/testAztecOO.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetraExt_Coloring.py.in b/packages/PyTrilinos/test/testEpetraExt_Coloring.py.in index 5322ddd55e09..47f910d8dcf1 100755 --- a/packages/PyTrilinos/test/testEpetraExt_Coloring.py.in +++ b/packages/PyTrilinos/test/testEpetraExt_Coloring.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetraExt_HDF5.py.in b/packages/PyTrilinos/test/testEpetraExt_HDF5.py.in index 8ea31e7fdb9c..051d9ee4c234 100755 --- a/packages/PyTrilinos/test/testEpetraExt_HDF5.py.in +++ b/packages/PyTrilinos/test/testEpetraExt_HDF5.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetraExt_Property.py.in b/packages/PyTrilinos/test/testEpetraExt_Property.py.in index 629f89bf3e5e..82ee253e1bb6 100755 --- a/packages/PyTrilinos/test/testEpetraExt_Property.py.in +++ b/packages/PyTrilinos/test/testEpetraExt_Property.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_BlockMap.py.in b/packages/PyTrilinos/test/testEpetra_BlockMap.py.in index d523e273cdd3..159fbae4b9db 100755 --- a/packages/PyTrilinos/test/testEpetra_BlockMap.py.in +++ b/packages/PyTrilinos/test/testEpetra_BlockMap.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_Comm.py.in b/packages/PyTrilinos/test/testEpetra_Comm.py.in index 81ebad421004..0dc7d6c2ddb3 100755 --- a/packages/PyTrilinos/test/testEpetra_Comm.py.in +++ b/packages/PyTrilinos/test/testEpetra_Comm.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_CompObject.py.in b/packages/PyTrilinos/test/testEpetra_CompObject.py.in index 408f30e27f48..e0d0bc923d11 100755 --- a/packages/PyTrilinos/test/testEpetra_CompObject.py.in +++ b/packages/PyTrilinos/test/testEpetra_CompObject.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_CrsGraph.py.in b/packages/PyTrilinos/test/testEpetra_CrsGraph.py.in index 877670766ffc..4147335f209f 100755 --- a/packages/PyTrilinos/test/testEpetra_CrsGraph.py.in +++ b/packages/PyTrilinos/test/testEpetra_CrsGraph.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_CrsMatrix.py.in b/packages/PyTrilinos/test/testEpetra_CrsMatrix.py.in index 223aa230986c..b1f8e68cd235 100755 --- a/packages/PyTrilinos/test/testEpetra_CrsMatrix.py.in +++ b/packages/PyTrilinos/test/testEpetra_CrsMatrix.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_FEVector.py.in b/packages/PyTrilinos/test/testEpetra_FEVector.py.in index 352c2bc4783a..7eaf90871602 100755 --- a/packages/PyTrilinos/test/testEpetra_FEVector.py.in +++ b/packages/PyTrilinos/test/testEpetra_FEVector.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_ImportExport.py.in b/packages/PyTrilinos/test/testEpetra_ImportExport.py.in index 3a578048c68a..08f25a5379eb 100755 --- a/packages/PyTrilinos/test/testEpetra_ImportExport.py.in +++ b/packages/PyTrilinos/test/testEpetra_ImportExport.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_IntSerialDense.py.in b/packages/PyTrilinos/test/testEpetra_IntSerialDense.py.in index 11acc1d7096d..ec2077db5daa 100755 --- a/packages/PyTrilinos/test/testEpetra_IntSerialDense.py.in +++ b/packages/PyTrilinos/test/testEpetra_IntSerialDense.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_IntVector.py.in b/packages/PyTrilinos/test/testEpetra_IntVector.py.in index fe2ece2400b9..b7aa34971ded 100755 --- a/packages/PyTrilinos/test/testEpetra_IntVector.py.in +++ b/packages/PyTrilinos/test/testEpetra_IntVector.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_LinearProblem.py.in b/packages/PyTrilinos/test/testEpetra_LinearProblem.py.in index a69775f8eda1..d704ed688394 100755 --- a/packages/PyTrilinos/test/testEpetra_LinearProblem.py.in +++ b/packages/PyTrilinos/test/testEpetra_LinearProblem.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_LocalMap.py.in b/packages/PyTrilinos/test/testEpetra_LocalMap.py.in index 3d7625604d8c..10c453103e59 100755 --- a/packages/PyTrilinos/test/testEpetra_LocalMap.py.in +++ b/packages/PyTrilinos/test/testEpetra_LocalMap.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_Map.py.in b/packages/PyTrilinos/test/testEpetra_Map.py.in index 639068f2490d..bd3900a1ec7a 100755 --- a/packages/PyTrilinos/test/testEpetra_Map.py.in +++ b/packages/PyTrilinos/test/testEpetra_Map.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_MapColoring.py.in b/packages/PyTrilinos/test/testEpetra_MapColoring.py.in index e7e960ed2dae..8dd64c962d9c 100755 --- a/packages/PyTrilinos/test/testEpetra_MapColoring.py.in +++ b/packages/PyTrilinos/test/testEpetra_MapColoring.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_MultiVector.py.in b/packages/PyTrilinos/test/testEpetra_MultiVector.py.in index ed41555a6fd0..b33b38a9d04f 100755 --- a/packages/PyTrilinos/test/testEpetra_MultiVector.py.in +++ b/packages/PyTrilinos/test/testEpetra_MultiVector.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_Object.py.in b/packages/PyTrilinos/test/testEpetra_Object.py.in index e3be8ccc18eb..b714ad57e0e0 100755 --- a/packages/PyTrilinos/test/testEpetra_Object.py.in +++ b/packages/PyTrilinos/test/testEpetra_Object.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_SerialDense.py.in b/packages/PyTrilinos/test/testEpetra_SerialDense.py.in index 51c4a6551a4f..2210b3907e40 100755 --- a/packages/PyTrilinos/test/testEpetra_SerialDense.py.in +++ b/packages/PyTrilinos/test/testEpetra_SerialDense.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_Time.py.in b/packages/PyTrilinos/test/testEpetra_Time.py.in index 7a33c8f6e15c..cc82a7a57103 100755 --- a/packages/PyTrilinos/test/testEpetra_Time.py.in +++ b/packages/PyTrilinos/test/testEpetra_Time.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_Util.py.in b/packages/PyTrilinos/test/testEpetra_Util.py.in index 33e66c4e40e2..278823382141 100755 --- a/packages/PyTrilinos/test/testEpetra_Util.py.in +++ b/packages/PyTrilinos/test/testEpetra_Util.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testEpetra_Vector.py.in b/packages/PyTrilinos/test/testEpetra_Vector.py.in index 0b40f57e575f..eaa5942d5db6 100755 --- a/packages/PyTrilinos/test/testEpetra_Vector.py.in +++ b/packages/PyTrilinos/test/testEpetra_Vector.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testGaleri_CrsMatrices.py.in b/packages/PyTrilinos/test/testGaleri_CrsMatrices.py.in index 66f1fbc7a23b..eba9f00c69a8 100755 --- a/packages/PyTrilinos/test/testGaleri_CrsMatrices.py.in +++ b/packages/PyTrilinos/test/testGaleri_CrsMatrices.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testGaleri_Maps.py.in b/packages/PyTrilinos/test/testGaleri_Maps.py.in index c9c3b0c4cbd2..0acd72c402fc 100755 --- a/packages/PyTrilinos/test/testGaleri_Maps.py.in +++ b/packages/PyTrilinos/test/testGaleri_Maps.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testIFPACK.py.in b/packages/PyTrilinos/test/testIFPACK.py.in index 05c1567ab06f..60613f3105f9 100755 --- a/packages/PyTrilinos/test/testIFPACK.py.in +++ b/packages/PyTrilinos/test/testIFPACK.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testIsorropia.py.in b/packages/PyTrilinos/test/testIsorropia.py.in index 87e5099bbcb9..ae8002c0cf92 100755 --- a/packages/PyTrilinos/test/testIsorropia.py.in +++ b/packages/PyTrilinos/test/testIsorropia.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testKomplex_LinearProblem.py.in b/packages/PyTrilinos/test/testKomplex_LinearProblem.py.in index 6d6f8b91fcb4..8489174dc236 100755 --- a/packages/PyTrilinos/test/testKomplex_LinearProblem.py.in +++ b/packages/PyTrilinos/test/testKomplex_LinearProblem.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testLOCA.py.in b/packages/PyTrilinos/test/testLOCA.py.in index f41db067693b..97f14791dd47 100755 --- a/packages/PyTrilinos/test/testLOCA.py.in +++ b/packages/PyTrilinos/test/testLOCA.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testML_CompObject.py.in b/packages/PyTrilinos/test/testML_CompObject.py.in index ede735a8651b..ae827a4dcb9c 100755 --- a/packages/PyTrilinos/test/testML_CompObject.py.in +++ b/packages/PyTrilinos/test/testML_CompObject.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testML_MultiVector.py.in b/packages/PyTrilinos/test/testML_MultiVector.py.in index aea1919eb942..267026731d99 100755 --- a/packages/PyTrilinos/test/testML_MultiVector.py.in +++ b/packages/PyTrilinos/test/testML_MultiVector.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testML_Preconditioner.py.in b/packages/PyTrilinos/test/testML_Preconditioner.py.in index 2a5ddc99b507..04a6c87779a5 100755 --- a/packages/PyTrilinos/test/testML_Preconditioner.py.in +++ b/packages/PyTrilinos/test/testML_Preconditioner.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testML_PyMatrix.py.in b/packages/PyTrilinos/test/testML_PyMatrix.py.in index ef0344371636..5e0aab4c3e73 100755 --- a/packages/PyTrilinos/test/testML_PyMatrix.py.in +++ b/packages/PyTrilinos/test/testML_PyMatrix.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testML_Space.py.in b/packages/PyTrilinos/test/testML_Space.py.in index c332d1e4ec00..4ce1c5b4d0c4 100755 --- a/packages/PyTrilinos/test/testML_Space.py.in +++ b/packages/PyTrilinos/test/testML_Space.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testML_TimeObject.py.in b/packages/PyTrilinos/test/testML_TimeObject.py.in index 4f10253e62ca..9a580277632e 100755 --- a/packages/PyTrilinos/test/testML_TimeObject.py.in +++ b/packages/PyTrilinos/test/testML_TimeObject.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testNOX_StatusTest.py.in b/packages/PyTrilinos/test/testNOX_StatusTest.py.in index ce15bc66e34d..8e0e411fee5f 100755 --- a/packages/PyTrilinos/test/testNOX_StatusTest.py.in +++ b/packages/PyTrilinos/test/testNOX_StatusTest.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testPliris.py.in b/packages/PyTrilinos/test/testPliris.py.in index 97fb331587eb..1d7fb0008904 100755 --- a/packages/PyTrilinos/test/testPliris.py.in +++ b/packages/PyTrilinos/test/testPliris.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testTeuchos.py.in b/packages/PyTrilinos/test/testTeuchos.py.in index b24701d107d1..cdb50cd14065 100755 --- a/packages/PyTrilinos/test/testTeuchos.py.in +++ b/packages/PyTrilinos/test/testTeuchos.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testTeuchos_Comm.py.in b/packages/PyTrilinos/test/testTeuchos_Comm.py.in index bee34ae07e7b..2d61efe2f356 100755 --- a/packages/PyTrilinos/test/testTeuchos_Comm.py.in +++ b/packages/PyTrilinos/test/testTeuchos_Comm.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testTeuchos_ParameterList.py.in b/packages/PyTrilinos/test/testTeuchos_ParameterList.py.in index cd4004361e3c..ce00e6cfbddd 100755 --- a/packages/PyTrilinos/test/testTeuchos_ParameterList.py.in +++ b/packages/PyTrilinos/test/testTeuchos_ParameterList.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testTeuchos_RCP.py.in b/packages/PyTrilinos/test/testTeuchos_RCP.py.in index c36340441955..1260c3338f45 100755 --- a/packages/PyTrilinos/test/testTeuchos_RCP.py.in +++ b/packages/PyTrilinos/test/testTeuchos_RCP.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testTeuchos_ScalarTraits.py.in b/packages/PyTrilinos/test/testTeuchos_ScalarTraits.py.in index 2386d947fa23..1f454b028ece 100755 --- a/packages/PyTrilinos/test/testTeuchos_ScalarTraits.py.in +++ b/packages/PyTrilinos/test/testTeuchos_ScalarTraits.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testThyra.py.in b/packages/PyTrilinos/test/testThyra.py.in index 59d25b36de1d..2c30b5cb0022 100755 --- a/packages/PyTrilinos/test/testThyra.py.in +++ b/packages/PyTrilinos/test/testThyra.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testTpetra_Map.py.in b/packages/PyTrilinos/test/testTpetra_Map.py.in index 6819b4d6c177..2655f44d3ec5 100755 --- a/packages/PyTrilinos/test/testTpetra_Map.py.in +++ b/packages/PyTrilinos/test/testTpetra_Map.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testTpetra_MultiVector.py.in b/packages/PyTrilinos/test/testTpetra_MultiVector.py.in index 4c30729b6c9a..2f709404533e 100755 --- a/packages/PyTrilinos/test/testTpetra_MultiVector.py.in +++ b/packages/PyTrilinos/test/testTpetra_MultiVector.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testTpetra_Vector.py.in b/packages/PyTrilinos/test/testTpetra_Vector.py.in index 34ab9d87e08a..e9e228089507 100755 --- a/packages/PyTrilinos/test/testTpetra_Vector.py.in +++ b/packages/PyTrilinos/test/testTpetra_Vector.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testTriUtils.py.in b/packages/PyTrilinos/test/testTriUtils.py.in index c9bdb16ae584..46e10421c8c4 100755 --- a/packages/PyTrilinos/test/testTriUtils.py.in +++ b/packages/PyTrilinos/test/testTriUtils.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/test/testutil.py.in b/packages/PyTrilinos/test/testutil.py.in index 86efd2f5e412..498a4ad18cbb 100644 --- a/packages/PyTrilinos/test/testutil.py.in +++ b/packages/PyTrilinos/test/testutil.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # -*- python -*- # @HEADER diff --git a/packages/PyTrilinos/util/CMakeCacheVariables.py.in b/packages/PyTrilinos/util/CMakeCacheVariables.py.in index 9b22d3ec29bd..738bce362240 100755 --- a/packages/PyTrilinos/util/CMakeCacheVariables.py.in +++ b/packages/PyTrilinos/util/CMakeCacheVariables.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # @HEADER # *********************************************************************** diff --git a/packages/PyTrilinos/util/MakefileVariables.py.in b/packages/PyTrilinos/util/MakefileVariables.py.in index 5df302598180..688379d7acd5 100755 --- a/packages/PyTrilinos/util/MakefileVariables.py.in +++ b/packages/PyTrilinos/util/MakefileVariables.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # @HEADER # *********************************************************************** diff --git a/packages/PyTrilinos/util/configFix.py.in b/packages/PyTrilinos/util/configFix.py.in index e9b476ffca33..6783ab3cc357 100755 --- a/packages/PyTrilinos/util/configFix.py.in +++ b/packages/PyTrilinos/util/configFix.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # @HEADER # *********************************************************************** diff --git a/packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in b/packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in index ee76cca284d8..6e7950e61515 100755 --- a/packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in +++ b/packages/PyTrilinos/util/copyWithCMakeSubstitutions.py.in @@ -1,4 +1,4 @@ -#! ${PYTHON_EXECUTABLE} +#! ${Python3_EXECUTABLE} # @HEADER # *********************************************************************** diff --git a/packages/PyTrilinos2/CMakeLists.txt b/packages/PyTrilinos2/CMakeLists.txt index 8f22df527dda..d912b7efe078 100644 --- a/packages/PyTrilinos2/CMakeLists.txt +++ b/packages/PyTrilinos2/CMakeLists.txt @@ -33,14 +33,14 @@ TRIBITS_ADD_OPTION_AND_DEFINE(PyTrilinos2_BINDER_VERBOSE SET(PyTrilinos2_BINDER_NUM_FILES "100" CACHE STRING "Maxinum number of generated files by binder.") -MESSAGE("-- PYTHON_EXECUTABLE:") -IF(NOT DEFINED ${PYTHON_EXECUTABLE}) - find_program(PYTHON_EXECUTABLE +MESSAGE("-- Python3_EXECUTABLE:") +IF(NOT DEFINED ${Python3_EXECUTABLE}) + find_program(Python3_EXECUTABLE NAMES python3 python ) - MESSAGE(" -- CMake has set: PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}") + MESSAGE(" -- CMake has set: Python3_EXECUTABLE = ${Python3_EXECUTABLE}") ELSE() - MESSAGE(" -- User has set: PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}") + MESSAGE(" -- User has set: Python3_EXECUTABLE = ${Python3_EXECUTABLE}") ENDIF() function(get_all_include_dirs LIBRARY_NAME all_include_dirs all_visited_libs) @@ -196,7 +196,7 @@ file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/src) add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/src/PyTrilinos2_Tpetra_ETI.hpp ${CMAKE_CURRENT_BINARY_DIR}/python/getTpetraTypeName.py - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/gather_ETI.py ${CMAKE_CURRENT_BINARY_DIR} ${all_ETI_files_list} ${all_ETI_classes_list} "src/PyTrilinos2_Tpetra_ETI.hpp" + COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/gather_ETI.py ${CMAKE_CURRENT_BINARY_DIR} ${all_ETI_files_list} ${all_ETI_classes_list} "src/PyTrilinos2_Tpetra_ETI.hpp" DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/include_tmp ) add_custom_target(generate_ETI_name DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/src/PyTrilinos2_Tpetra_ETI.hpp ${CMAKE_CURRENT_BINARY_DIR}/include_tmp) @@ -206,7 +206,7 @@ list (APPEND PyTrilinos2PyFiles ${PyTrilinos2PyFiles2}) add_custom_command( OUTPUT ${binder_include_name} - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/gather_includes.py ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${all_header_with_dir_list} ${all_header_without_dir_list} ${binder_include_name} + COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/gather_includes.py ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${all_header_with_dir_list} ${all_header_without_dir_list} ${binder_include_name} DEPENDS generate_ETI_name ${CMAKE_CURRENT_BINARY_DIR}/include_tmp ) add_custom_target(generate_include_name DEPENDS ${binder_include_name}) @@ -272,12 +272,12 @@ SET(PyTrilinos2_INSTALL_PREFIX ${PyTrilinos2_DEFAULT_INSTALL_PREFIX} CACHE PATH "The path prefix for where PyTrilinos2 will be installed, e.g. /usr/local") # Get the python version -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c +EXECUTE_PROCESS(COMMAND ${Python3_EXECUTABLE} -c "import sys; print(sys.version_info.major)" OUTPUT_VARIABLE PYTHON_MAJOR_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE ) -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c +EXECUTE_PROCESS(COMMAND ${Python3_EXECUTABLE} -c "import sys; print(sys.version_info.minor)" OUTPUT_VARIABLE PYTHON_MINOR_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE @@ -300,7 +300,7 @@ INSTALL(FILES # Find the pybind11 CMake module EXECUTE_PROCESS(COMMAND - ${PYTHON_EXECUTABLE} -c "import pybind11; print(pybind11.get_cmake_dir())" + ${Python3_EXECUTABLE} -c "import pybind11; print(pybind11.get_cmake_dir())" OUTPUT_VARIABLE pybind11_DIR ERROR_VARIABLE pybind11_CMAKE_ERROR OUTPUT_STRIP_TRAILING_WHITESPACE @@ -310,7 +310,7 @@ MESSAGE(STATUS "pybind11 CMake path: ${pybind11_DIR}") find_package(pybind11 REQUIRED) EXECUTE_PROCESS(COMMAND - ${PYTHON_EXECUTABLE} -c "import mpi4py; print(mpi4py.get_include())" + ${Python3_EXECUTABLE} -c "import mpi4py; print(mpi4py.get_include())" OUTPUT_VARIABLE Mpi4Py_INCLUDE_DIR ERROR_VARIABLE Mpi4Py_INCLUDE_ERROR OUTPUT_STRIP_TRAILING_WHITESPACE @@ -323,7 +323,7 @@ ELSE() ENDIF() EXECUTE_PROCESS(COMMAND - ${PYTHON_EXECUTABLE} -c "import mpi4py; print(mpi4py.get_config()['mpicxx'])" + ${Python3_EXECUTABLE} -c "import mpi4py; print(mpi4py.get_config()['mpicxx'])" OUTPUT_VARIABLE Mpi4Py_MPICXX OUTPUT_STRIP_TRAILING_WHITESPACE ) diff --git a/packages/PyTrilinos2/README.md b/packages/PyTrilinos2/README.md index d5221b26e29b..f777f230041b 100644 --- a/packages/PyTrilinos2/README.md +++ b/packages/PyTrilinos2/README.md @@ -48,7 +48,7 @@ cmake -S ../llvm/llvm -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;clang-tools ``` -D Trilinos_ENABLE_PyTrilinos2:BOOL=ON \ --D PYTHON_EXECUTABLE=... \ +-D Python3_EXECUTABLE=... \ -D PyTrilinos2_ENABLE_TESTS=ON \ -D PyTrilinos2_BINDER_EXECUTABLE=... \ -D PyTrilinos2_BINDER_GCC_TOOLCHAIN=...\ diff --git a/packages/PyTrilinos2/cmake/PyTrilinos2MakeTest.cmake b/packages/PyTrilinos2/cmake/PyTrilinos2MakeTest.cmake index 4950a10a246e..52691290a084 100644 --- a/packages/PyTrilinos2/cmake/PyTrilinos2MakeTest.cmake +++ b/packages/PyTrilinos2/cmake/PyTrilinos2MakeTest.cmake @@ -4,7 +4,7 @@ MACRO(PyTrilinos2_MAKE_MPI_TEST TEST_NAME) FILE(COPY ${CMAKE_CURRENT_SOURCE_DIR}/${TEST_NAME}.py DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) TRIBITS_ADD_TEST( - ${PYTHON_EXECUTABLE} + ${Python3_EXECUTABLE} NOEXEPREFIX NOEXESUFFIX NAME ${TEST_NAME} diff --git a/packages/amesos/example/pk.h b/packages/amesos/example/pk.h index 8d4dac373fe8..cf862d290449 100644 --- a/packages/amesos/example/pk.h +++ b/packages/amesos/example/pk.h @@ -20,4 +20,3 @@ void *my_realloc2 (void *p, size_t size) ; void my_free2 (void *p) ; void normal_memory_handler ( cholmod_common *cm ) ; void test_memory_handler ( cholmod_common *cm ) ; - diff --git a/packages/amesos/src/Amesos.h b/packages/amesos/src/Amesos.h index c199894f02b0..356f95796730 100644 --- a/packages/amesos/src/Amesos.h +++ b/packages/amesos/src/Amesos.h @@ -31,6 +31,12 @@ #ifndef _AMESOS_FACTORY_H_ #define _AMESOS_FACTORY_H_ +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_BaseSolver.h" /** \brief Factory for binding a third party direct solver to an @@ -92,10 +98,3 @@ class Amesos { }; // End of class Amesos #endif /* _AMESOS_FACTORY_H_ */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_BTF.h b/packages/amesos/src/Amesos_BTF.h index b55209ea2291..dd6ab14c4854 100644 --- a/packages/amesos/src/Amesos_BTF.h +++ b/packages/amesos/src/Amesos_BTF.h @@ -31,6 +31,12 @@ This file is out of date. Is has not been refactored to use Amesos_Status. #ifndef _AMESOS_BTF_H_ #define _AMESOS_BTF_H_ +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Epetra_LinearProblem.h" @@ -220,10 +226,3 @@ revert to their default values. }; // End of class Amesos_Btf #endif /* _AMESOS_BTF_H_ */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_BaseSolver.h b/packages/amesos/src/Amesos_BaseSolver.h index 26310fe69a52..a72d79a6d88e 100644 --- a/packages/amesos/src/Amesos_BaseSolver.h +++ b/packages/amesos/src/Amesos_BaseSolver.h @@ -41,6 +41,12 @@ #ifndef _AMESOS_BASESOLVER_H_ #define _AMESOS_BASESOLVER_H_ +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + const int StructurallySingularMatrixError = -21; const int NumericallySingularMatrixError = -22; @@ -442,10 +448,3 @@ revert to their default values. }; #endif /* _AMESOS_BASESOLVER_H_ */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_CSparse.h b/packages/amesos/src/Amesos_CSparse.h index e05f8f0c30b4..b5a84832a1d2 100644 --- a/packages/amesos/src/Amesos_CSparse.h +++ b/packages/amesos/src/Amesos_CSparse.h @@ -28,6 +28,12 @@ #ifndef AMESOS_CSPARSE_H #define AMESOS_CSPARSE_H + +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif #ifdef HAVE_AMESOS_CSPARSE #include "Amesos_ConfigDefs.h" @@ -214,10 +220,3 @@ class Amesos_CSparse: public Amesos_BaseSolver, #endif #endif // AMESOS_CSPARSE_H - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Component.h b/packages/amesos/src/Amesos_Component.h index 53c6c4378ec6..c4d5c2ab3e48 100644 --- a/packages/amesos/src/Amesos_Component.h +++ b/packages/amesos/src/Amesos_Component.h @@ -36,6 +36,12 @@ #ifndef _AMESOS_COMPONENTBASESOLVER_H_ #define _AMESOS_COMPONENTBASESOLVER_H_ +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Teuchos_ParameterList.hpp" #include "Epetra_LinearProblem.h" class Epetra_LinearProblem; @@ -209,10 +215,3 @@ class Amesos_Component { }; #endif /* _AMESOS_COMPONENTBASESOLVER_H_ */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_ComponentBaseSolver.h b/packages/amesos/src/Amesos_ComponentBaseSolver.h index 2da07acf9cea..d8490122534e 100644 --- a/packages/amesos/src/Amesos_ComponentBaseSolver.h +++ b/packages/amesos/src/Amesos_ComponentBaseSolver.h @@ -36,6 +36,12 @@ #ifndef _AMESOS_COMPONENTBASESOLVER_H_ #define _AMESOS_COMPONENTBASESOLVER_H_ +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Teuchos_ParameterList.hpp" #include "Epetra_LinearProblem.h" class Epetra_LinearProblem; @@ -243,10 +249,3 @@ class Amesos_ComponentBaseSolver: public virtual Amesos_BaseSolver { }; #endif /* _AMESOS_COMPONENTBASESOLVER_H_ */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_ConfigDefs.h b/packages/amesos/src/Amesos_ConfigDefs.h index 019243f402a7..d04500bc680c 100644 --- a/packages/amesos/src/Amesos_ConfigDefs.h +++ b/packages/amesos/src/Amesos_ConfigDefs.h @@ -29,6 +29,12 @@ #ifndef AMESOS_CONFIGDEFS #define AMESOS_CONFIGDEFS +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #ifdef PACKAGE #undef PACKAGE #endif @@ -102,11 +108,4 @@ return(amesos_err); } -#endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif #endif - diff --git a/packages/amesos/src/Amesos_Control.h b/packages/amesos/src/Amesos_Control.h index 37897c118da5..23f142a860cb 100644 --- a/packages/amesos/src/Amesos_Control.h +++ b/packages/amesos/src/Amesos_Control.h @@ -1,6 +1,12 @@ #ifndef AMESOS_CONTROL_H #define AMESOS_CONTROL_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Teuchos_ParameterList.hpp" using namespace Teuchos; /*! @@ -85,10 +91,3 @@ class Amesos_Control }; #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_CssMKL.h b/packages/amesos/src/Amesos_CssMKL.h index 0987245c63fc..ee2eafd53985 100644 --- a/packages/amesos/src/Amesos_CssMKL.h +++ b/packages/amesos/src/Amesos_CssMKL.h @@ -29,6 +29,12 @@ #ifndef AMESOS_CSSMKL_H #define AMESOS_CSSMKL_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Amesos_NoCopiable.h" @@ -183,10 +189,3 @@ class Amesos_CssMKL: public Amesos_BaseSolver, MPI_Fint CssComm_; }; // class Amesos_CssMKL #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Dscpack.h b/packages/amesos/src/Amesos_Dscpack.h index 2c5eacda538e..6f3c4e407427 100644 --- a/packages/amesos/src/Amesos_Dscpack.h +++ b/packages/amesos/src/Amesos_Dscpack.h @@ -29,6 +29,12 @@ #ifndef AMESOS_DSCPACK_H #define AMESOS_DSCPACK_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Amesos_NoCopiable.h" @@ -199,10 +205,3 @@ class Amesos_Dscpack: public Amesos_BaseSolver, }; // class Amesos_Dscpack #endif /* AMESOS_DSCPACK_H */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Klu.h b/packages/amesos/src/Amesos_Klu.h index 55db605f4196..bafd8823796d 100644 --- a/packages/amesos/src/Amesos_Klu.h +++ b/packages/amesos/src/Amesos_Klu.h @@ -39,6 +39,12 @@ #ifndef AMESOS_KLU_H #define AMESOS_KLU_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Amesos_NoCopiable.h" @@ -344,10 +350,3 @@ class Amesos_Klu: public Amesos_BaseSolver, }; // class Amesos_Klu #endif /* AMESOS_KLU_H */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Lapack.h b/packages/amesos/src/Amesos_Lapack.h index df165192acb9..44f73ba850ea 100644 --- a/packages/amesos/src/Amesos_Lapack.h +++ b/packages/amesos/src/Amesos_Lapack.h @@ -29,6 +29,12 @@ #ifndef AMESOS_LAPACK_H #define AMESOS_LAPACK_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Amesos_NoCopiable.h" @@ -270,10 +276,3 @@ class Amesos_Lapack: public Amesos_BaseSolver, }; // End of class Amesos_Lapack #endif /* AMESOS_LAPACK_H */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_MC64.h b/packages/amesos/src/Amesos_MC64.h index edcf15026a15..de9b1636ea50 100644 --- a/packages/amesos/src/Amesos_MC64.h +++ b/packages/amesos/src/Amesos_MC64.h @@ -41,6 +41,12 @@ #ifndef AMESOS_MC64_H #define AMESOS_MC64_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #if defined(HAVE_AMESOS_MC64) #include "Amesos_Scaling.h" @@ -125,10 +131,3 @@ class Amesos_MC64 : public Amesos_Scaling, public Amesos_Reordering #endif #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Merikos.h b/packages/amesos/src/Amesos_Merikos.h index 03db007bd440..2623daaf91a5 100644 --- a/packages/amesos/src/Amesos_Merikos.h +++ b/packages/amesos/src/Amesos_Merikos.h @@ -120,6 +120,12 @@ Task list: #ifndef _AMESOS_MERIKOS_H_ #define _AMESOS_MERIKOS_H_ +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Epetra_LinearProblem.h" @@ -410,10 +416,3 @@ int m_per_p_; }; // End of class Amesos_Merikos #endif /* _AMESOS_MERIKOS_H_ */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Mumps.h b/packages/amesos/src/Amesos_Mumps.h index 4d1622402d97..b07d7d77f619 100644 --- a/packages/amesos/src/Amesos_Mumps.h +++ b/packages/amesos/src/Amesos_Mumps.h @@ -29,6 +29,12 @@ #ifndef AMESOS_MUMPS_H #define AMESOS_MUMPS_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + class Epetra_Import; class Epetra_RowMatrix; class Epetra_MultiVector; @@ -421,10 +427,3 @@ class Amesos_Mumps: public Amesos_BaseSolver, }; // class Amesos_Mumps #endif /* AMESOS_MUMPS_H */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_NoCopiable.h b/packages/amesos/src/Amesos_NoCopiable.h index 4b7c5c10aafc..54904db33fa6 100644 --- a/packages/amesos/src/Amesos_NoCopiable.h +++ b/packages/amesos/src/Amesos_NoCopiable.h @@ -31,6 +31,12 @@ #ifndef AMESOS_NOCOPIABLE_H #define AMESOS_NOCOPIABLE_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + /*! \class Amesos_NoCopiable @@ -58,10 +64,3 @@ class Amesos_NoCopiable Amesos_NoCopiable& operator=(const Amesos_NoCopiable& rhs); }; #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Paraklete.h b/packages/amesos/src/Amesos_Paraklete.h index c46c1dc59daf..f6ad7f61925b 100644 --- a/packages/amesos/src/Amesos_Paraklete.h +++ b/packages/amesos/src/Amesos_Paraklete.h @@ -39,6 +39,12 @@ #ifndef AMESOS_PARAKLETE_H #define AMESOS_PARAKLETE_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Amesos_NoCopiable.h" @@ -326,10 +332,3 @@ class Amesos_Paraklete: public Amesos_BaseSolver, }; // class Amesos_Paraklete #endif /* AMESOS_PARAKLETE_H */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Pardiso.h b/packages/amesos/src/Amesos_Pardiso.h index e58942fb39c3..41793f714912 100644 --- a/packages/amesos/src/Amesos_Pardiso.h +++ b/packages/amesos/src/Amesos_Pardiso.h @@ -29,6 +29,12 @@ #ifndef AMESOS_PARDISO_H #define AMESOS_PARDISO_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Amesos_NoCopiable.h" @@ -206,10 +212,3 @@ class Amesos_Pardiso: public Amesos_BaseSolver, }; // class Amesos_Pardiso #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Reordering.h b/packages/amesos/src/Amesos_Reordering.h index 37e70687c6c6..9b88d3ddeb45 100644 --- a/packages/amesos/src/Amesos_Reordering.h +++ b/packages/amesos/src/Amesos_Reordering.h @@ -40,6 +40,12 @@ #ifndef AMESOS_REORDERING_H #define AMESOS_REORDERING_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + //! Amesos_Reordering: base class for reordering procedures. class Amesos_Reordering { @@ -55,10 +61,3 @@ class Amesos_Reordering }; #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_SCALAPACK_wrappers.h b/packages/amesos/src/Amesos_SCALAPACK_wrappers.h index fe6b3fd79db7..a47c99372d14 100644 --- a/packages/amesos/src/Amesos_SCALAPACK_wrappers.h +++ b/packages/amesos/src/Amesos_SCALAPACK_wrappers.h @@ -30,6 +30,12 @@ #ifndef AMESOS_SCALAPACK_WRAPPERS_H #define AMESOS_SCALAPACK_WRAPPERS_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Epetra_ConfigDefs.h" #include "Epetra_LAPACK_wrappers.h" #include @@ -107,10 +113,3 @@ extern "C" { #endif #endif /* AMESOS_SCALAPACK_WRAPPERS_H */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Scalapack.h b/packages/amesos/src/Amesos_Scalapack.h index 4f56d6c8c735..a0df93e1cbf8 100644 --- a/packages/amesos/src/Amesos_Scalapack.h +++ b/packages/amesos/src/Amesos_Scalapack.h @@ -42,6 +42,12 @@ #ifndef _AMESOS_SCALAPACK_H_ #define _AMESOS_SCALAPACK_H_ +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Amesos_NoCopiable.h" @@ -408,10 +414,3 @@ revert to their default values. }; // End of class Amesos_Scalapack #endif /* _AMESOS_SCALAPACK_H_ */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Scaling.h b/packages/amesos/src/Amesos_Scaling.h index 7bbc156ee9b4..7a0cd785a5df 100644 --- a/packages/amesos/src/Amesos_Scaling.h +++ b/packages/amesos/src/Amesos_Scaling.h @@ -40,6 +40,12 @@ #ifndef AMESOS_SCALING_H #define AMESOS_SCALING_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + //! Amesos_Scaling: base class for scaling procedures. class Amesos_Scaling { @@ -55,10 +61,3 @@ class Amesos_Scaling }; #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Status.h b/packages/amesos/src/Amesos_Status.h index c69260346689..e70278704c62 100644 --- a/packages/amesos/src/Amesos_Status.h +++ b/packages/amesos/src/Amesos_Status.h @@ -1,6 +1,12 @@ #ifndef AMESOS_STATUS_H #define AMESOS_STATUS_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Teuchos_ParameterList.hpp" using namespace Teuchos; @@ -77,10 +83,3 @@ class Amesos_Status }; #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Superlu.h b/packages/amesos/src/Amesos_Superlu.h index 7e067d874ec8..940aceb40956 100644 --- a/packages/amesos/src/Amesos_Superlu.h +++ b/packages/amesos/src/Amesos_Superlu.h @@ -66,6 +66,12 @@ #ifndef AMESOS_SUPERLU_H #define AMESOS_SUPERLU_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Amesos_NoCopiable.h" @@ -238,10 +244,3 @@ class Amesos_Superlu: public Amesos_BaseSolver, }; // End of class Amesos_Superlu #endif /* AMESOS_SUPERLU_H */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Superludist.h b/packages/amesos/src/Amesos_Superludist.h index e9f44367090f..6ba6082ee8ef 100644 --- a/packages/amesos/src/Amesos_Superludist.h +++ b/packages/amesos/src/Amesos_Superludist.h @@ -29,6 +29,12 @@ #ifndef AMESOS_SUPERLUDIST_H #define AMESOS_SUPERLUDIST_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Amesos_NoCopiable.h" @@ -219,10 +225,3 @@ class Amesos_Superludist: public Amesos_BaseSolver, }; // End of class Amesos_Superludist #endif /* AMESOS_SUPERLUDIST_H */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Support.h b/packages/amesos/src/Amesos_Support.h index 870e4046788a..0e4104335042 100644 --- a/packages/amesos/src/Amesos_Support.h +++ b/packages/amesos/src/Amesos_Support.h @@ -1,6 +1,12 @@ #ifndef AMESOS_SUPPORT_H #define AMESOS_SUPPORT_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Epetra_CrsMatrix.h" #include "Epetra_MultiVector.h" #include "Epetra_Map.h" @@ -75,10 +81,3 @@ class Amesos_StandardIndex #endif } ; #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Taucs.h b/packages/amesos/src/Amesos_Taucs.h index 2de58a524a32..9e9280a1a1e2 100644 --- a/packages/amesos/src/Amesos_Taucs.h +++ b/packages/amesos/src/Amesos_Taucs.h @@ -39,6 +39,12 @@ #ifndef AMESOS_TAUCS_H #define AMESOS_TAUCS_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Amesos_NoCopiable.h" @@ -218,10 +224,3 @@ class Amesos_Taucs: public Amesos_BaseSolver, }; // class Amesos_Taucs #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_TestRowMatrix.h b/packages/amesos/src/Amesos_TestRowMatrix.h index 8c4651ba101d..5f28ae38ac3b 100644 --- a/packages/amesos/src/Amesos_TestRowMatrix.h +++ b/packages/amesos/src/Amesos_TestRowMatrix.h @@ -1,6 +1,12 @@ #ifndef IFPACK_ROWMATRIX_H #define IFPACK_ROWMATRIX_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #ifdef HAVE_MPI #include "Epetra_MpiComm.h" @@ -369,11 +375,3 @@ class Amesos_TestRowMatrix : public virtual Epetra_RowMatrix { }; #endif /* IFPACK_ROWMATRIX_H */ - - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Time.h b/packages/amesos/src/Amesos_Time.h index 28698d0e1788..dfaef5c3728f 100644 --- a/packages/amesos/src/Amesos_Time.h +++ b/packages/amesos/src/Amesos_Time.h @@ -1,6 +1,12 @@ #ifndef AMESOS_TIME_H #define AMESOS_TIME_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Epetra_Comm.h" #include "Epetra_Time.h" #include "Teuchos_Array.hpp" @@ -142,10 +148,3 @@ class Amesos_Time }; #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Umfpack.h b/packages/amesos/src/Amesos_Umfpack.h index 6d01cde3be8d..7f2f13184467 100644 --- a/packages/amesos/src/Amesos_Umfpack.h +++ b/packages/amesos/src/Amesos_Umfpack.h @@ -40,6 +40,12 @@ #ifndef AMESOS_UMFPACK_H #define AMESOS_UMFPACK_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Amesos_ConfigDefs.h" #include "Amesos_BaseSolver.h" #include "Amesos_BaseSolver.h" @@ -264,10 +270,3 @@ class Amesos_Umfpack: public Amesos_BaseSolver, }; // class Amesos_Umfpack #endif /* AMESOS_UMFPACK_H */ - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/Amesos_Utils.h b/packages/amesos/src/Amesos_Utils.h index eec0944afdbe..946d14f3b9ed 100644 --- a/packages/amesos/src/Amesos_Utils.h +++ b/packages/amesos/src/Amesos_Utils.h @@ -1,6 +1,12 @@ #ifndef AMESOS_UTILS_H #define AMESOS_UTILS_H +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Epetra_RowMatrix.h" #include "Epetra_MultiVector.h" #include "Epetra_Vector.h" @@ -99,10 +105,3 @@ class Amesos_Utils }; #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/CrsMatrixTranspose.h b/packages/amesos/src/CrsMatrixTranspose.h index 44268f658156..d62b42dab7d7 100644 --- a/packages/amesos/src/CrsMatrixTranspose.h +++ b/packages/amesos/src/CrsMatrixTranspose.h @@ -30,10 +30,6 @@ #ifndef CRSMATRIXTRANSPOSE #define CRSMATRIXTRANSPOSE -#include "Epetra_CrsMatrix.h" -int CrsMatrixTranspose( Epetra_CrsMatrix *In, Epetra_CrsMatrix *Out ) ; -#endif - #if defined(Amesos_SHOW_DEPRECATED_WARNINGS) #ifdef __GNUC__ @@ -41,3 +37,6 @@ int CrsMatrixTranspose( Epetra_CrsMatrix *In, Epetra_CrsMatrix *Out ) ; #endif #endif +#include "Epetra_CrsMatrix.h" +int CrsMatrixTranspose( Epetra_CrsMatrix *In, Epetra_CrsMatrix *Out ) ; +#endif diff --git a/packages/amesos/src/src-repository/Epetra_SLU.h b/packages/amesos/src/src-repository/Epetra_SLU.h index c497effd09ce..5a7caa5ffdfc 100644 --- a/packages/amesos/src/src-repository/Epetra_SLU.h +++ b/packages/amesos/src/src-repository/Epetra_SLU.h @@ -29,6 +29,12 @@ #ifndef _EPETRA_SLU_H_ #define _EPETRA_SLU_H_ +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + class Epetra_LinearProblem; class Epetra_CrsMatrix; class Epetra_MultiVector; @@ -125,10 +131,3 @@ class Epetra_SLU }; #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/src-repository/SpoolesOO.h b/packages/amesos/src/src-repository/SpoolesOO.h index b7957432e187..71dc85addeaf 100644 --- a/packages/amesos/src/src-repository/SpoolesOO.h +++ b/packages/amesos/src/src-repository/SpoolesOO.h @@ -29,6 +29,12 @@ #ifndef _SPOOLESOO_H_ #define _SPOOLESOO_H_ +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + class Epetra_Comm; class Epetra_BlockMap; class Epetra_MultiVector; @@ -98,11 +104,3 @@ class SpoolesOO { #endif /* _SPOOLESOO_H_ */ - - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/src-repository/Superludist2_OO.h b/packages/amesos/src/src-repository/Superludist2_OO.h index 738222ed3c4b..a4c57f843290 100644 --- a/packages/amesos/src/src-repository/Superludist2_OO.h +++ b/packages/amesos/src/src-repository/Superludist2_OO.h @@ -37,6 +37,12 @@ #ifndef _SUPERLUDIST2_OO_H_ #define _SUPERLUDIST2_OO_H_ +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + class Epetra_Comm; class Epetra_BlockMap; class Epetra_MultiVector; @@ -299,11 +305,3 @@ class Superludist2_OO { #endif /* _SUPERLUDIST2_OO_H_ */ - - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/src/src-repository/SuperludistOO.h b/packages/amesos/src/src-repository/SuperludistOO.h index 5b11b25def47..7c890d5cb021 100644 --- a/packages/amesos/src/src-repository/SuperludistOO.h +++ b/packages/amesos/src/src-repository/SuperludistOO.h @@ -36,6 +36,12 @@ #ifndef _SUPERLUDISTOO_H_ #define _SUPERLUDISTOO_H_ +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + class Epetra_Comm; class Epetra_BlockMap; class Epetra_MultiVector; @@ -293,11 +299,3 @@ class SuperludistOO { #endif /* _SUPERLUDISTOO_H_ */ - - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/test/TestOptions/CreateTridi.h b/packages/amesos/test/TestOptions/CreateTridi.h index 3a0aae679352..35e7bf5f5092 100644 --- a/packages/amesos/test/TestOptions/CreateTridi.h +++ b/packages/amesos/test/TestOptions/CreateTridi.h @@ -49,4 +49,3 @@ int CreateTridiPlus(Epetra_CrsMatrix& A) ; #warning "The Amesos package is deprecated" #endif #endif - diff --git a/packages/amesos/test/TestOptions/NewMatNewMap.h b/packages/amesos/test/TestOptions/NewMatNewMap.h index 2ee6cc2a56ff..2d4118c88240 100644 --- a/packages/amesos/test/TestOptions/NewMatNewMap.h +++ b/packages/amesos/test/TestOptions/NewMatNewMap.h @@ -14,4 +14,3 @@ RCP NewMatNewMap(Epetra_CrsMatrix& In, #warning "The Amesos package is deprecated" #endif #endif - diff --git a/packages/amesos/test/TestOptions/PartialFactorization.h b/packages/amesos/test/TestOptions/PartialFactorization.h index b68e12471382..80802242ced5 100644 --- a/packages/amesos/test/TestOptions/PartialFactorization.h +++ b/packages/amesos/test/TestOptions/PartialFactorization.h @@ -16,4 +16,3 @@ int PartialFactorization( const char* AmesosClass, #warning "The Amesos package is deprecated" #endif #endif - diff --git a/packages/amesos/test/TestOptions/PerformOneSolveAndTest.h b/packages/amesos/test/TestOptions/PerformOneSolveAndTest.h index 6fdfe350839e..832718519de3 100644 --- a/packages/amesos/test/TestOptions/PerformOneSolveAndTest.h +++ b/packages/amesos/test/TestOptions/PerformOneSolveAndTest.h @@ -20,4 +20,3 @@ int PerformOneSolveAndTest(const char* AmesosClass, #warning "The Amesos package is deprecated" #endif #endif - diff --git a/packages/amesos/test/TestOptions/TestAllClasses.h b/packages/amesos/test/TestOptions/TestAllClasses.h index 0c7db9354bb5..364afd310381 100644 --- a/packages/amesos/test/TestOptions/TestAllClasses.h +++ b/packages/amesos/test/TestOptions/TestAllClasses.h @@ -27,4 +27,3 @@ int TestAllClasses( const std::vector AmesosClasses, #warning "The Amesos package is deprecated" #endif #endif - diff --git a/packages/amesos/test/TestOptions/TestKlu.h b/packages/amesos/test/TestOptions/TestKlu.h index 7b0bf7e03fc6..1e6a7f334881 100644 --- a/packages/amesos/test/TestOptions/TestKlu.h +++ b/packages/amesos/test/TestOptions/TestKlu.h @@ -21,4 +21,3 @@ int TestKlu( Epetra_CrsMatrix *& Amat, #warning "The Amesos package is deprecated" #endif #endif - diff --git a/packages/amesos/test/TestOptions/TestOtherClasses.h b/packages/amesos/test/TestOptions/TestOtherClasses.h index e91016ec729a..b70f04d581b0 100644 --- a/packages/amesos/test/TestOptions/TestOtherClasses.h +++ b/packages/amesos/test/TestOptions/TestOtherClasses.h @@ -20,4 +20,3 @@ int TestOtherClasses( const char* AmesosClass, #warning "The Amesos package is deprecated" #endif #endif - diff --git a/packages/amesos/test/TestOptions/TestScalapack.h b/packages/amesos/test/TestOptions/TestScalapack.h index 1cf7f3148c05..21986ba12e04 100644 --- a/packages/amesos/test/TestOptions/TestScalapack.h +++ b/packages/amesos/test/TestOptions/TestScalapack.h @@ -16,4 +16,3 @@ int TestScalapack( Epetra_CrsMatrix *& Amat, #warning "The Amesos package is deprecated" #endif #endif - diff --git a/packages/amesos/test/TestOptions/TestSuperludist.h b/packages/amesos/test/TestOptions/TestSuperludist.h index e60037725fc4..abf26cd487f8 100644 --- a/packages/amesos/test/TestOptions/TestSuperludist.h +++ b/packages/amesos/test/TestOptions/TestSuperludist.h @@ -17,4 +17,3 @@ int TestSuperludist( Epetra_CrsMatrix *& Amat, #warning "The Amesos package is deprecated" #endif #endif - diff --git a/packages/amesos/test/Test_Basic/Amesos_TestSolver.h b/packages/amesos/test/Test_Basic/Amesos_TestSolver.h index 811cb420e70f..b8dd1e3be9a6 100644 --- a/packages/amesos/test/Test_Basic/Amesos_TestSolver.h +++ b/packages/amesos/test/Test_Basic/Amesos_TestSolver.h @@ -52,4 +52,3 @@ int Amesos_TestMrhsSolver( Epetra_Comm &Comm, char *matrix_file, int numsolves, #warning "The Amesos package is deprecated" #endif #endif - diff --git a/packages/amesos/test/Test_Basic/SparseDirectTimingVars.h b/packages/amesos/test/Test_Basic/SparseDirectTimingVars.h index 8ebecb720236..97543bb18ec6 100644 --- a/packages/amesos/test/Test_Basic/SparseDirectTimingVars.h +++ b/packages/amesos/test/Test_Basic/SparseDirectTimingVars.h @@ -30,6 +30,13 @@ #ifndef SPARSEDIRECTTIMINGVARS_H #define SPARSEDIRECTTIMINGVARS_H + +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #define SPARSE_DIRECT_TIMINGS #ifdef SPARSE_DIRECT_TIMINGS #include "SparseSolverResult.h" @@ -45,11 +52,3 @@ class SparseDirectTimingVars } ; #endif #endif - - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos/test/Test_Basic/SparseSolverResult.h b/packages/amesos/test/Test_Basic/SparseSolverResult.h index a845ecb8427f..4f5c424aa220 100644 --- a/packages/amesos/test/Test_Basic/SparseSolverResult.h +++ b/packages/amesos/test/Test_Basic/SparseSolverResult.h @@ -30,6 +30,13 @@ #ifndef SPARSESOLVERRESULT #define SPARSESOLVERRESULT + +#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Amesos package is deprecated" +#endif +#endif + #include "Epetra_Object.h" const double UnUsedDbl = 13e130; @@ -85,10 +92,3 @@ class SparseSolverResult : public Epetra_Object { } ; #endif - -#if defined(Amesos_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Amesos package is deprecated" -#endif -#endif - diff --git a/packages/amesos2/src/basker/basker_old/basker.h b/packages/amesos2/src/basker/basker_old/basker.h index 13d27e634764..1322210de7b2 100644 --- a/packages/amesos2/src/basker/basker_old/basker.h +++ b/packages/amesos2/src/basker/basker_old/basker.h @@ -88,4 +88,3 @@ long basker_basker_l #define PRINT(params) #endif /* DEBUG */ - diff --git a/packages/anasazi/epetra/src-rbgen/RBGen_BurkardtFileIOHandler.h b/packages/anasazi/epetra/src-rbgen/RBGen_BurkardtFileIOHandler.h index 20cce5520ec5..2714b788bbcf 100644 --- a/packages/anasazi/epetra/src-rbgen/RBGen_BurkardtFileIOHandler.h +++ b/packages/anasazi/epetra/src-rbgen/RBGen_BurkardtFileIOHandler.h @@ -89,4 +89,3 @@ namespace RBGen { } // namespace RBGen #endif // BURKARDT_FILE_IO_HANDLER_H - diff --git a/packages/anasazi/epetra/src-rbgen/RBGen_EpetraCrsMatrixFileIOHandler.h b/packages/anasazi/epetra/src-rbgen/RBGen_EpetraCrsMatrixFileIOHandler.h index f56f764f647a..19793b7b0735 100644 --- a/packages/anasazi/epetra/src-rbgen/RBGen_EpetraCrsMatrixFileIOHandler.h +++ b/packages/anasazi/epetra/src-rbgen/RBGen_EpetraCrsMatrixFileIOHandler.h @@ -81,4 +81,3 @@ namespace RBGen { } // namespace RBGen #endif // EPETRA_CRSMATRIX_FILE_IO_HANDLER_H - diff --git a/packages/anasazi/epetra/src-rbgen/RBGen_ISVDUDV.h b/packages/anasazi/epetra/src-rbgen/RBGen_ISVDUDV.h index 5852ff9f5392..841dbfd73714 100644 --- a/packages/anasazi/epetra/src-rbgen/RBGen_ISVDUDV.h +++ b/packages/anasazi/epetra/src-rbgen/RBGen_ISVDUDV.h @@ -92,4 +92,3 @@ namespace RBGen { } // end of RBGen namespace #endif // RBGEN_ISVDUDV_H - diff --git a/packages/anasazi/epetra/src-rbgen/RBGen_MatrixMarketFileIOHandler.h b/packages/anasazi/epetra/src-rbgen/RBGen_MatrixMarketFileIOHandler.h index dc84aac30e29..33cebe98dd85 100644 --- a/packages/anasazi/epetra/src-rbgen/RBGen_MatrixMarketFileIOHandler.h +++ b/packages/anasazi/epetra/src-rbgen/RBGen_MatrixMarketFileIOHandler.h @@ -84,4 +84,3 @@ namespace RBGen { } // namespace RBGen #endif // MATRIX_MARKET_FILE_IO_HANDLER_H - diff --git a/packages/anasazi/epetra/src-rbgen/RBGen_NetCDFFileIOHandler.h b/packages/anasazi/epetra/src-rbgen/RBGen_NetCDFFileIOHandler.h index 8c8b9ac31a3e..bdc2c5874808 100644 --- a/packages/anasazi/epetra/src-rbgen/RBGen_NetCDFFileIOHandler.h +++ b/packages/anasazi/epetra/src-rbgen/RBGen_NetCDFFileIOHandler.h @@ -90,4 +90,3 @@ namespace RBGen { } // namespace RBGen #endif // NETCDF_FILE_IO_HANDLER_H - diff --git a/packages/anasazi/epetra/util/ModeLaplace/CheckingTools.h b/packages/anasazi/epetra/util/ModeLaplace/CheckingTools.h index ad4ac8877d34..5a5cdec02049 100644 --- a/packages/anasazi/epetra/util/ModeLaplace/CheckingTools.h +++ b/packages/anasazi/epetra/util/ModeLaplace/CheckingTools.h @@ -70,4 +70,3 @@ class ANASAZIEPETRA_MODELAPLACE_LIB_DLL_EXPORT CheckingTools { #endif - diff --git a/packages/anasazi/epetra/util/ModeLaplace/SortingTools.h b/packages/anasazi/epetra/util/ModeLaplace/SortingTools.h index 33550c25d225..9eb84e70aecd 100644 --- a/packages/anasazi/epetra/util/ModeLaplace/SortingTools.h +++ b/packages/anasazi/epetra/util/ModeLaplace/SortingTools.h @@ -33,4 +33,3 @@ class SortingTools { }; #endif - diff --git a/packages/anasazi/src/ModalAnalysisSolvers/CheckingTools.h b/packages/anasazi/src/ModalAnalysisSolvers/CheckingTools.h index c76b03b0a640..a0f81ba2163f 100644 --- a/packages/anasazi/src/ModalAnalysisSolvers/CheckingTools.h +++ b/packages/anasazi/src/ModalAnalysisSolvers/CheckingTools.h @@ -69,4 +69,3 @@ class CheckingTools { #endif - diff --git a/packages/anasazi/src/ModalAnalysisSolvers/ModalAnalysisSolver.h b/packages/anasazi/src/ModalAnalysisSolvers/ModalAnalysisSolver.h index 60fceb614a4a..ac83d7d1de0f 100644 --- a/packages/anasazi/src/ModalAnalysisSolvers/ModalAnalysisSolver.h +++ b/packages/anasazi/src/ModalAnalysisSolvers/ModalAnalysisSolver.h @@ -43,4 +43,3 @@ class ModalAnalysisSolver { #endif - diff --git a/packages/anasazi/src/ModalAnalysisSolvers/ModalTools.h b/packages/anasazi/src/ModalAnalysisSolvers/ModalTools.h index 1f20bb167d41..af662e02e309 100644 --- a/packages/anasazi/src/ModalAnalysisSolvers/ModalTools.h +++ b/packages/anasazi/src/ModalAnalysisSolvers/ModalTools.h @@ -87,4 +87,3 @@ class ModalTools { #endif - diff --git a/packages/anasazi/src/ModalAnalysisSolvers/SortingTools.h b/packages/anasazi/src/ModalAnalysisSolvers/SortingTools.h index 0fbfc72c4985..14cbcc44e18d 100644 --- a/packages/anasazi/src/ModalAnalysisSolvers/SortingTools.h +++ b/packages/anasazi/src/ModalAnalysisSolvers/SortingTools.h @@ -33,4 +33,3 @@ class SortingTools { }; #endif - diff --git a/packages/aztecoo/example/aztec_app/example_specific.h b/packages/aztecoo/example/aztec_app/example_specific.h index b28b1c66f695..1207d7be6897 100644 --- a/packages/aztecoo/example/aztec_app/example_specific.h +++ b/packages/aztecoo/example/aztec_app/example_specific.h @@ -119,4 +119,3 @@ extern int example_specific_comm_wrapper(double vec[], AZ_MATRIX *Amat); extern int simple_example_specific_getrow( int columns[], double values[], int row_lengths[], struct AZ_MATRIX_STRUCT *Amat, int N_requested_rows, int requested_rows[], int allocated_space); - diff --git a/packages/aztecoo/src/AZOO_iterate.h b/packages/aztecoo/src/AZOO_iterate.h index bbbc09e7c138..17f130aa985c 100644 --- a/packages/aztecoo/src/AZOO_iterate.h +++ b/packages/aztecoo/src/AZOO_iterate.h @@ -45,6 +45,12 @@ #ifndef _AZOO_ITERATE_H_ #define _AZOO_ITERATE_H_ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #ifndef __cplusplus #define __cplusplus #endif @@ -107,10 +113,3 @@ extern "C" void AZOO_iterate(double * xsolve, double * b, AZ_PRECOND *precond, struct AZ_SCALING *scaling); #endif #endif /* _AZOO_ITERATE_H_ */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AZOO_printf.h b/packages/aztecoo/src/AZOO_printf.h index ffe3f7ad0ac5..5285dc2010be 100644 --- a/packages/aztecoo/src/AZOO_printf.h +++ b/packages/aztecoo/src/AZOO_printf.h @@ -44,6 +44,12 @@ #ifndef _AZOO_printf_h_ #define _AZOO_printf_h_ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #ifdef __cplusplus extern "C" { #endif @@ -79,11 +85,3 @@ void AZOO_clear_streams(); #endif #endif - - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/Aztec2Petra.h b/packages/aztecoo/src/Aztec2Petra.h index 6ddcccbc8914..0595b2034581 100644 --- a/packages/aztecoo/src/Aztec2Petra.h +++ b/packages/aztecoo/src/Aztec2Petra.h @@ -45,6 +45,12 @@ #ifndef _AZTEC2PETRA_H_ #define _AZTEC2PETRA_H_ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #ifndef __cplusplus #define __cplusplus #endif @@ -127,10 +133,3 @@ int Aztec2Petra(int * proc_config, int ** global_indices); #endif /* _AZTEC2PETRA_H_ */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AztecOO.h b/packages/aztecoo/src/AztecOO.h index 151edebac90b..f5383f6555a0 100644 --- a/packages/aztecoo/src/AztecOO.h +++ b/packages/aztecoo/src/AztecOO.h @@ -45,6 +45,12 @@ #ifndef _AZTECOO_H_ #define _AZTECOO_H_ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include class Epetra_Comm; @@ -692,11 +698,3 @@ void AztecOO_StatusTest_wrapper(void * conv_test_obj,void * res_vector_obj, int sol_updated, int * converged, int * isnan, double * rnorm, int * r_avail); #endif /* _AZTECOO_H_ */ - - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AztecOO_ConditionNumber.h b/packages/aztecoo/src/AztecOO_ConditionNumber.h index 0a252fad6027..971da0613919 100644 --- a/packages/aztecoo/src/AztecOO_ConditionNumber.h +++ b/packages/aztecoo/src/AztecOO_ConditionNumber.h @@ -42,6 +42,12 @@ #ifndef AZTECOO_CONDITIONNUMBER_H #define AZTECOO_CONDITIONNUMBER_H +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + class Epetra_Map; class Epetra_Vector; class Epetra_Operator; @@ -118,10 +124,3 @@ class AztecOOConditionNumber { #endif - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AztecOO_ConfigDefs.h b/packages/aztecoo/src/AztecOO_ConfigDefs.h index cfe8268de67d..4ee4a5d39a46 100644 --- a/packages/aztecoo/src/AztecOO_ConfigDefs.h +++ b/packages/aztecoo/src/AztecOO_ConfigDefs.h @@ -45,6 +45,12 @@ #ifndef AZTECOO_CONFIGDEFS_H #define AZTECOO_CONFIGDEFS_H +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #ifndef TRILINOS_NO_CONFIG_H /* @@ -103,10 +109,3 @@ #endif /*__cplusplus */ #endif /*ndef TRILINOS_NO_CONFIG_H*/ #endif /* AZTECOO_CONFIGDEFS_H */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AztecOO_Operator.h b/packages/aztecoo/src/AztecOO_Operator.h index e534159ee467..a7ce3fa5d8ce 100644 --- a/packages/aztecoo/src/AztecOO_Operator.h +++ b/packages/aztecoo/src/AztecOO_Operator.h @@ -45,6 +45,12 @@ #ifndef _AZTECOO_OPERATOR_H_ #define _AZTECOO_OPERATOR_H_ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + class Epetra_MultiVector; class Epetra_BlockMap; class Epetra_Comm; @@ -175,11 +181,3 @@ class AztecOO_Operator: public virtual Epetra_Operator { }; #endif /* _AZTECOO_OPERATOR_H_ */ - - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AztecOO_Scaling.h b/packages/aztecoo/src/AztecOO_Scaling.h index 0c719f095893..58fb958a9fba 100644 --- a/packages/aztecoo/src/AztecOO_Scaling.h +++ b/packages/aztecoo/src/AztecOO_Scaling.h @@ -45,6 +45,12 @@ #ifndef _AZTECOO_SCALING_H_ #define _AZTECOO_SCALING_H_ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include #include @@ -63,11 +69,3 @@ int AztecOO_scale_epetra(int action, AZ_SCALING* scaling); #endif - - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AztecOO_StatusTest.h b/packages/aztecoo/src/AztecOO_StatusTest.h index e252fa4c1749..c48b3f454c10 100644 --- a/packages/aztecoo/src/AztecOO_StatusTest.h +++ b/packages/aztecoo/src/AztecOO_StatusTest.h @@ -45,6 +45,12 @@ #ifndef AZTECOO_STATUSTEST_H #define AZTECOO_STATUSTEST_H +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + class Epetra_MultiVector; #include "AztecOO_StatusType.h" #include "Epetra_ConfigDefs.h" @@ -149,10 +155,3 @@ class AztecOO_StatusTest { #endif /* AZTECOO_STATUSTEST_H */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AztecOO_StatusTestCombo.h b/packages/aztecoo/src/AztecOO_StatusTestCombo.h index acef2ac0a688..ef3f8f71af91 100644 --- a/packages/aztecoo/src/AztecOO_StatusTestCombo.h +++ b/packages/aztecoo/src/AztecOO_StatusTestCombo.h @@ -45,6 +45,12 @@ #ifndef AZTECOO_STATUSTESTCOMBO_H #define AZTECOO_STATUSTESTCOMBO_H +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include "AztecOO_StatusTest.h" #include class Epetra_MultiVector; @@ -191,10 +197,3 @@ class AztecOO_StatusTestCombo: public AztecOO_StatusTest { }; #endif /* AZTECOO_STATUSTESTCOMBO_H */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AztecOO_StatusTestMaxIters.h b/packages/aztecoo/src/AztecOO_StatusTestMaxIters.h index fb25bacb2ef5..39b3489d34c6 100644 --- a/packages/aztecoo/src/AztecOO_StatusTestMaxIters.h +++ b/packages/aztecoo/src/AztecOO_StatusTestMaxIters.h @@ -45,6 +45,12 @@ #ifndef AZTECOO_STATUSTESTMAXITERS_H #define AZTECOO_STATUSTESTMAXITERS_H +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include "AztecOO_StatusTest.h" class Epetra_MultiVector; @@ -123,10 +129,3 @@ class AztecOO_StatusTestMaxIters: public AztecOO_StatusTest { }; #endif /* AZTECOO_STATUSTESTMAXITERS_H */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AztecOO_StatusTestResNorm.h b/packages/aztecoo/src/AztecOO_StatusTestResNorm.h index 522cba597e19..c0babce64433 100644 --- a/packages/aztecoo/src/AztecOO_StatusTestResNorm.h +++ b/packages/aztecoo/src/AztecOO_StatusTestResNorm.h @@ -45,6 +45,12 @@ #ifndef AZTECOO_STATUSTESTRESNORM_H #define AZTECOO_STATUSTESTRESNORM_H +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include "AztecOO_StatusTest.h" #include class Epetra_MultiVector; @@ -329,10 +335,3 @@ class AztecOO_StatusTestResNorm: public AztecOO_StatusTest { }; #endif /* AZTECOO_STATUSTESTRESNORM_H */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AztecOO_StatusType.h b/packages/aztecoo/src/AztecOO_StatusType.h index 0a4b11649b22..b38d87490577 100644 --- a/packages/aztecoo/src/AztecOO_StatusType.h +++ b/packages/aztecoo/src/AztecOO_StatusType.h @@ -44,6 +44,13 @@ #ifndef AZTECOO_STATUSTYPE_H #define AZTECOO_STATUSTYPE_H + +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + /*! \file AztecOO_StatusType.h \brief AztecOO StatusType: Used to return convergence status information for AztecOO_StatusTest objects. */ @@ -64,10 +71,3 @@ enum AztecOO_StatusType { Unchecked = 2, /*!< Initial state of status */ }; #endif /* AZTECOO_STATUSTYPE_H */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AztecOO_Version.h b/packages/aztecoo/src/AztecOO_Version.h index 1192840b98e7..4ff82bae3d1e 100644 --- a/packages/aztecoo/src/AztecOO_Version.h +++ b/packages/aztecoo/src/AztecOO_Version.h @@ -42,6 +42,12 @@ #ifndef AZTECOO_VERSION_H #define AZTECOO_VERSION_H +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include "AztecOO.h" #include "Trilinos_version.h" @@ -50,10 +56,3 @@ } #endif /* AZTECOO_VERSION_H */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/AztecOO_string_maps.h b/packages/aztecoo/src/AztecOO_string_maps.h index b834e11bc58f..c685e16782f4 100644 --- a/packages/aztecoo/src/AztecOO_string_maps.h +++ b/packages/aztecoo/src/AztecOO_string_maps.h @@ -45,6 +45,12 @@ #ifndef _AztecOO_string_maps_h_ #define _AztecOO_string_maps_h_ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include #ifdef HAVE_AZTECOO_TEUCHOS @@ -56,11 +62,3 @@ void AztecOO_initialize_maps(); #endif #endif - - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/Epetra_MsrMatrix.h b/packages/aztecoo/src/Epetra_MsrMatrix.h index 7a44eb291718..371ba70d7cfc 100644 --- a/packages/aztecoo/src/Epetra_MsrMatrix.h +++ b/packages/aztecoo/src/Epetra_MsrMatrix.h @@ -45,6 +45,12 @@ #ifndef _EPETRA_MSRMATRIX_H_ #define _EPETRA_MSRMATRIX_H_ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include "Epetra_Object.h" #include "Epetra_CompObject.h" #include "Epetra_RowMatrix.h" @@ -416,10 +422,3 @@ class Epetra_MsrMatrix: public Epetra_Object, public Epetra_CompObject, public v Epetra_MsrMatrix(const Epetra_MsrMatrix & Matrix) : Epetra_Object(Matrix), Epetra_CompObject(Matrix) {} }; #endif /* _EPETRA_MSRMATRIX_H_ */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/az_aztec.h b/packages/aztecoo/src/az_aztec.h index efc554ab3d29..22b991a6e12f 100644 --- a/packages/aztecoo/src/az_aztec.h +++ b/packages/aztecoo/src/az_aztec.h @@ -71,6 +71,12 @@ #define __AZTECH__ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include "az_aztec_defs.h" #include "az_f77func.h" /* Some older codes use AZ_MPI to set MPI mode for AztecOO/Aztec. @@ -1643,10 +1649,3 @@ extern void AZ_sym_rescale_vbr(double x[], int data_org[], int options[]); #endif #endif - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/az_aztec_defs.h b/packages/aztecoo/src/az_aztec_defs.h index 5243196ee1ab..40c55a1d0a0c 100644 --- a/packages/aztecoo/src/az_aztec_defs.h +++ b/packages/aztecoo/src/az_aztec_defs.h @@ -61,6 +61,12 @@ #define __AZTECDEFSH__ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #ifndef TRILINOS_NO_CONFIG_H /* @@ -745,10 +751,3 @@ #endif #endif - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/az_aztecf.h b/packages/aztecoo/src/az_aztecf.h index 41172cef1e12..f1c08db602a8 100644 --- a/packages/aztecoo/src/az_aztecf.h +++ b/packages/aztecoo/src/az_aztecf.h @@ -453,4 +453,3 @@ #warning "The AztecOO package is deprecated" #endif #endif - diff --git a/packages/aztecoo/src/az_blas_wrappers.h b/packages/aztecoo/src/az_blas_wrappers.h index 2e4d9fddbd5d..42805645f1df 100644 --- a/packages/aztecoo/src/az_blas_wrappers.h +++ b/packages/aztecoo/src/az_blas_wrappers.h @@ -44,6 +44,12 @@ #ifndef _AZ_BLAS_WRAPPERS_H_ #define _AZ_BLAS_WRAPPERS_H_ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include "az_f77func.h" #if defined(CRAY_T3X) @@ -132,10 +138,3 @@ void PREFIX STRSM_F77(az_fcd, az_fcd, az_fcd, az_fcd, #endif #endif /* _AZ_BLAS_WRAPPERS_H_ */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/az_f77func.h b/packages/aztecoo/src/az_f77func.h index 043618897266..83f38ff11c9e 100644 --- a/packages/aztecoo/src/az_f77func.h +++ b/packages/aztecoo/src/az_f77func.h @@ -44,6 +44,12 @@ #ifndef _AZ_F77FUNC_H_ #define _AZ_F77FUNC_H_ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include "az_aztec_defs.h" #include @@ -122,10 +128,3 @@ #endif #endif /* _AZ_F77FUNC_H_ */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/az_lapack_wrappers.h b/packages/aztecoo/src/az_lapack_wrappers.h index 92de772d0a6e..ec54af8a4ebb 100644 --- a/packages/aztecoo/src/az_lapack_wrappers.h +++ b/packages/aztecoo/src/az_lapack_wrappers.h @@ -44,6 +44,12 @@ #ifndef _AZ_LAPACK_WRAPPERS_H_ #define _AZ_LAPACK_WRAPPERS_H_ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include "az_f77func.h" #if defined(CRAY_T3X) @@ -109,10 +115,3 @@ void PREFIX DGETRS_F77(az_fcd, int* n, int* nrhs, double* a, int* lda, int*ipiv, double*x , int* ldx, int* info); void PREFIX SGETRS_F77(az_fcd, int* m, int* n, float* a, int* lda, int*ipiv, float*x , int* ldx, int* info); - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/aztecoo/src/az_y12m_wrappers.h b/packages/aztecoo/src/az_y12m_wrappers.h index 0d49c6eb431b..ae6938eebc53 100644 --- a/packages/aztecoo/src/az_y12m_wrappers.h +++ b/packages/aztecoo/src/az_y12m_wrappers.h @@ -44,6 +44,12 @@ #ifndef _AZ_Y12M_WRAPPERS_H_ #define _AZ_Y12M_WRAPPERS_H_ +#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The AztecOO package is deprecated" +#endif +#endif + #include "az_f77func.h" # define Y12MBF_F77 F77_FUNC(y12mbf,Y12MBF) @@ -71,10 +77,3 @@ void PREFIX Y12MDF_F77(int *n, double val[], int *nn, double b[], double pivot[] #endif #endif /* _AZ_Y12M_WRAPPERS_H_ */ - -#if defined(AztecOO_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The AztecOO package is deprecated" -#endif -#endif - diff --git a/packages/belos/epetra/src/BelosEpetraOperator.h b/packages/belos/epetra/src/BelosEpetraOperator.h index 6aab79fa3861..ba16d289e29a 100644 --- a/packages/belos/epetra/src/BelosEpetraOperator.h +++ b/packages/belos/epetra/src/BelosEpetraOperator.h @@ -119,5 +119,4 @@ class EpetraOperator : public virtual Epetra_Operator { } //end namespace Belos // end of file BELOS_EPETRA_OPERATOR_H -#endif - +#endif diff --git a/packages/common/auxiliarySoftware/SuiteSparse/src/CHOLMOD/Include/amesos_cholmod_io64.h b/packages/common/auxiliarySoftware/SuiteSparse/src/CHOLMOD/Include/amesos_cholmod_io64.h index 77caa0719a14..60f5fac32ad6 100644 --- a/packages/common/auxiliarySoftware/SuiteSparse/src/CHOLMOD/Include/amesos_cholmod_io64.h +++ b/packages/common/auxiliarySoftware/SuiteSparse/src/CHOLMOD/Include/amesos_cholmod_io64.h @@ -43,4 +43,3 @@ #endif #endif - diff --git a/packages/compadre/examples/CMakeLists.tribits.cmake b/packages/compadre/examples/CMakeLists.tribits.cmake index 523f31cae25d..3542e6a08425 100644 --- a/packages/compadre/examples/CMakeLists.tribits.cmake +++ b/packages/compadre/examples/CMakeLists.tribits.cmake @@ -518,7 +518,7 @@ if (NOT(Compadre_DEBUG OR Compadre_EXTREME_DEBUG)) # This test is too slow in DEBUG (3x longer than all other tests # combined) - if (PYTHON_EXECUTABLE) + if (Python3_EXECUTABLE) # Python driven test of a C++ executable (Python changes command line # arguments given to executable) configure_file( @@ -529,7 +529,7 @@ if (NOT(Compadre_DEBUG OR Compadre_EXTREME_DEBUG)) set(testName GMLS_Manifold_Multiple_Evaluation_Sites) TRIBITS_ADD_ADVANCED_TEST( ${testName} - TEST_0 CMND ${PYTHON_EXECUTABLE} ARGS ${CMAKE_CURRENT_BINARY_DIR}/GMLS_Manifold_Multiple_Evaluation_Sites.py --porder=3 --grids=3 --in-trilinos=True + TEST_0 CMND ${Python3_EXECUTABLE} ARGS ${CMAKE_CURRENT_BINARY_DIR}/GMLS_Manifold_Multiple_Evaluation_Sites.py --porder=3 --grids=3 --in-trilinos=True PASS_REGULAR_EXPRESSION "Passed." COMM mpi serial ADDED_TEST_NAME_OUT ${testName}_CREATED @@ -546,7 +546,7 @@ if (NOT(Compadre_DEBUG OR Compadre_EXTREME_DEBUG)) $ ) endif() # test created - endif() # PYTHON_EXECUTABLE + endif() # Python3_EXECUTABLE # Divergence-free basis test for GMLS on non-manifold # Note: QR is needed to be used here due to the null space introduced @@ -634,7 +634,7 @@ if (NOT(Compadre_DEBUG OR Compadre_EXTREME_DEBUG)) #endif() # test created endif() # not debug -if (PYTHON_EXECUTABLE) +if (Python3_EXECUTABLE) # Python driven test of a C++ executable (Python changes command line # arguments given to executable) - calling QR solver configure_file( @@ -645,7 +645,7 @@ if (PYTHON_EXECUTABLE) set(testName GMLS_Manifold_Refinement_Study_QR) TRIBITS_ADD_ADVANCED_TEST( ${testName} - TEST_0 CMND ${PYTHON_EXECUTABLE} ARGS ${CMAKE_CURRENT_BINARY_DIR}/GMLS_Manifold.py --porder=3 --grids=4 --solver-type=QR --in-trilinos=True + TEST_0 CMND ${Python3_EXECUTABLE} ARGS ${CMAKE_CURRENT_BINARY_DIR}/GMLS_Manifold.py --porder=3 --grids=4 --solver-type=QR --in-trilinos=True PASS_REGULAR_EXPRESSION "Passed." COMM mpi serial ADDED_TEST_NAME_OUT ${testName}_CREATED @@ -668,7 +668,7 @@ if (PYTHON_EXECUTABLE) set(testName GMLS_Manifold_Refinement_Study_LU) TRIBITS_ADD_ADVANCED_TEST( ${testName} - TEST_0 CMND ${PYTHON_EXECUTABLE} ARGS ${CMAKE_CURRENT_BINARY_DIR}/GMLS_Manifold.py --porder=3 --grids=4 --solver-type=LU --in-trilinos=True + TEST_0 CMND ${Python3_EXECUTABLE} ARGS ${CMAKE_CURRENT_BINARY_DIR}/GMLS_Manifold.py --porder=3 --grids=4 --solver-type=LU --in-trilinos=True PASS_REGULAR_EXPRESSION "Passed." COMM mpi serial ADDED_TEST_NAME_OUT ${testName}_CREATED @@ -698,7 +698,7 @@ if (PYTHON_EXECUTABLE) set(testName GMLS_Staggered_Manifold_Refinement_Study) TRIBITS_ADD_ADVANCED_TEST( ${testName} - TEST_0 CMND ${PYTHON_EXECUTABLE} ARGS ${CMAKE_CURRENT_BINARY_DIR}/GMLS_Staggered_Manifold.py --porder=3 --grids=4 --in-trilinos=True + TEST_0 CMND ${Python3_EXECUTABLE} ARGS ${CMAKE_CURRENT_BINARY_DIR}/GMLS_Staggered_Manifold.py --porder=3 --grids=4 --in-trilinos=True PASS_REGULAR_EXPRESSION "Passed." COMM mpi serial ADDED_TEST_NAME_OUT ${testName}_CREATED @@ -715,7 +715,7 @@ if (PYTHON_EXECUTABLE) $ ) endif() # test created -endif() # PYTHON_EXECUTABLE +endif() # Python3_EXECUTABLE # Utility test - Filter By ID set(testName Test_Utilities) diff --git a/packages/epetra/example/petra_nonlinear/basis.h b/packages/epetra/example/petra_nonlinear/basis.h index f492c459fd90..6772e339d341 100644 --- a/packages/epetra/example/petra_nonlinear/basis.h +++ b/packages/epetra/example/petra_nonlinear/basis.h @@ -65,4 +65,3 @@ class Basis { #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/src/Epetra_BLAS.h b/packages/epetra/src/Epetra_BLAS.h index 8c7e8d90f747..cd573991c720 100644 --- a/packages/epetra/src/Epetra_BLAS.h +++ b/packages/epetra/src/Epetra_BLAS.h @@ -44,6 +44,14 @@ #ifndef EPETRA_BLAS_H #define EPETRA_BLAS_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" @@ -183,10 +191,3 @@ inline Epetra_BLAS::Epetra_BLAS(const Epetra_BLAS& BLAS){(void)BLAS;} inline Epetra_BLAS::~Epetra_BLAS(){} #endif /* EPETRA_BLAS_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_BLAS_wrappers.h b/packages/epetra/src/Epetra_BLAS_wrappers.h index 78d2552e582a..2567836bc8df 100644 --- a/packages/epetra/src/Epetra_BLAS_wrappers.h +++ b/packages/epetra/src/Epetra_BLAS_wrappers.h @@ -44,6 +44,14 @@ #ifndef EPETRA_BLAS_WRAPPERS_H #define EPETRA_BLAS_WRAPPERS_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" /* #include */ /* #include */ @@ -299,10 +307,3 @@ void PREFIX SSYRK_F77(Epetra_fcd uplo, Epetra_fcd trans, const int *n, const int #endif #endif /* EPETRA_BLAS_WRAPPERS_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_BasicDirectory.h b/packages/epetra/src/Epetra_BasicDirectory.h index a785eef20bee..e8e681bc91f2 100644 --- a/packages/epetra/src/Epetra_BasicDirectory.h +++ b/packages/epetra/src/Epetra_BasicDirectory.h @@ -44,6 +44,14 @@ #ifndef EPETRA_BASICDIRECTORY_H #define EPETRA_BASICDIRECTORY_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" #include "Epetra_Directory.h" @@ -230,10 +238,3 @@ template<> inline const long long * Epetra_BasicDirectory::AllMinGIDs() const #endif #endif /* EPETRA_BASICDIRECTORY_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_BasicRowMatrix.h b/packages/epetra/src/Epetra_BasicRowMatrix.h index 4805012c03d4..1043f234fd76 100644 --- a/packages/epetra/src/Epetra_BasicRowMatrix.h +++ b/packages/epetra/src/Epetra_BasicRowMatrix.h @@ -44,6 +44,14 @@ #ifndef EPETRA_BASICROWMATRIX_H #define EPETRA_BASICROWMATRIX_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_RowMatrix.h" #include "Epetra_Object.h" @@ -563,10 +571,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_BasicRowMatrix: public Epetra_CompObject, pub }; #endif /* EPETRA_BASICROWMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_BlockMap.h b/packages/epetra/src/Epetra_BlockMap.h index ba6eab9f04a4..eb3995d97707 100644 --- a/packages/epetra/src/Epetra_BlockMap.h +++ b/packages/epetra/src/Epetra_BlockMap.h @@ -44,6 +44,14 @@ #ifndef EPETRA_BLOCKMAP_H #define EPETRA_BLOCKMAP_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" #include "Epetra_BlockMapData.h" @@ -933,10 +941,3 @@ template<> inline int Epetra_BlockMap::SizeMyGlobalElement (int n) { #endif #endif /* EPETRA_BLOCKMAP_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_BlockMapData.h b/packages/epetra/src/Epetra_BlockMapData.h index 5b2fad89024b..9748a06c06b5 100644 --- a/packages/epetra/src/Epetra_BlockMapData.h +++ b/packages/epetra/src/Epetra_BlockMapData.h @@ -44,6 +44,14 @@ #ifndef EPETRA_BLOCKMAPDATA_H #define EPETRA_BLOCKMAPDATA_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Data.h" #include "Epetra_IntSerialDenseVector.h" @@ -128,10 +136,3 @@ class Epetra_BlockMapData : public Epetra_Data { }; #endif /* EPETRA_BLOCKMAPDATA_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_C_wrappers.h b/packages/epetra/src/Epetra_C_wrappers.h index 6ec80e670101..cda98fd10839 100644 --- a/packages/epetra/src/Epetra_C_wrappers.h +++ b/packages/epetra/src/Epetra_C_wrappers.h @@ -44,6 +44,14 @@ #ifndef EPETRA_C_WRAPPERS_H #define EPETRA_C_WRAPPERS_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #ifdef EPETRA_FORTRAN @@ -370,10 +378,3 @@ extern "C" { #endif #endif /* EPETRA_C_WRAPPERS_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_CombineMode.h b/packages/epetra/src/Epetra_CombineMode.h index dda75feef421..3d0c27edd765 100644 --- a/packages/epetra/src/Epetra_CombineMode.h +++ b/packages/epetra/src/Epetra_CombineMode.h @@ -43,6 +43,14 @@ #ifndef EPETRA_COMBINEMODE_H #define EPETRA_COMBINEMODE_H + +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + /*! \file Epetra_CombineMode.h \brief Epetra_Combine Mode enumerable type */ @@ -90,10 +98,3 @@ enum Epetra_CombineMode {Add, /*!< Components on the receiving processor }; #endif // EPETRA_COMBINEMODE_H - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Comm.h b/packages/epetra/src/Epetra_Comm.h index 64e16cccb469..6a4844271ecc 100644 --- a/packages/epetra/src/Epetra_Comm.h +++ b/packages/epetra/src/Epetra_Comm.h @@ -44,6 +44,14 @@ #ifndef EPETRA_COMM_H #define EPETRA_COMM_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" @@ -474,10 +482,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_Comm { //@} }; #endif /* EPETRA_COMM_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_CompObject.h b/packages/epetra/src/Epetra_CompObject.h index 76f9a8a6d411..a215995b544e 100644 --- a/packages/epetra/src/Epetra_CompObject.h +++ b/packages/epetra/src/Epetra_CompObject.h @@ -44,6 +44,14 @@ #ifndef EPETRA_COMPOBJECT_H #define EPETRA_COMPOBJECT_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + //! Epetra_CompObject: Functionality and data that is common to all computational classes. /*! The Epetra_CompObject is a base class for all Epetra computational objects. It provides the basic @@ -125,10 +133,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_CompObject { }; #endif /* EPETRA_COMPOBJECT_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_ConfigDefs.h b/packages/epetra/src/Epetra_ConfigDefs.h index 7b16b00bf09e..af2213288f80 100644 --- a/packages/epetra/src/Epetra_ConfigDefs.h +++ b/packages/epetra/src/Epetra_ConfigDefs.h @@ -44,6 +44,14 @@ #ifndef EPETRA_CONFIGDEFS_H #define EPETRA_CONFIGDEFS_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #ifndef __cplusplus #define __cplusplus #endif @@ -330,10 +338,3 @@ const int DefaultTracebackMode = 1; #include "Epetra_DLLExportMacro.h" #endif /* EPETRA_CONFIGDEFS_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_CrsGraph.h b/packages/epetra/src/Epetra_CrsGraph.h index 9e1bb8825da7..d954c4d099bd 100644 --- a/packages/epetra/src/Epetra_CrsGraph.h +++ b/packages/epetra/src/Epetra_CrsGraph.h @@ -44,6 +44,14 @@ #ifndef EPETRA_CRSGRAPH_H #define EPETRA_CRSGRAPH_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_DistObject.h" #include "Epetra_CrsGraphData.h" @@ -1261,10 +1269,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_CrsGraph: public Epetra_DistObject { int ExtractMyRowCopy(int Row, int LenOfIndices, int& NumIndices, int_type* targIndices) const; }; #endif /* EPETRA_CRSGRAPH_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_CrsGraphData.h b/packages/epetra/src/Epetra_CrsGraphData.h index b94304b0e5a3..07d37118a894 100644 --- a/packages/epetra/src/Epetra_CrsGraphData.h +++ b/packages/epetra/src/Epetra_CrsGraphData.h @@ -44,6 +44,14 @@ #ifndef EPETRA_CRSGRAPHDATA_H #define EPETRA_CRSGRAPHDATA_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Data.h" #include "Epetra_DataAccess.h" @@ -339,10 +347,3 @@ inline Epetra_CrsGraphData::IndexData& Epetra_CrsGraphData::Data() #endif /* EPETRA_CRSGRAPHDATA_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_CrsMatrix.h b/packages/epetra/src/Epetra_CrsMatrix.h index 0f748b4b132c..9393ecdf4f62 100644 --- a/packages/epetra/src/Epetra_CrsMatrix.h +++ b/packages/epetra/src/Epetra_CrsMatrix.h @@ -44,6 +44,14 @@ #ifndef EPETRA_CRSMATRIX_H #define EPETRA_CRSMATRIX_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_DistObject.h" #include "Epetra_CompObject.h" @@ -1782,10 +1790,3 @@ or if the number of entries in this row exceed the Length parameter. }; #endif /* EPETRA_CRSMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_CrsSingletonFilter.h b/packages/epetra/src/Epetra_CrsSingletonFilter.h index 1d6819fe1b87..84ab1f9f7098 100644 --- a/packages/epetra/src/Epetra_CrsSingletonFilter.h +++ b/packages/epetra/src/Epetra_CrsSingletonFilter.h @@ -44,6 +44,14 @@ #ifndef EPETRA_CRSSINGLETONFILTER_H #define EPETRA_CRSSINGLETONFILTER_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_Object.h" #include "Epetra_CrsMatrix.h" #include "Epetra_MapColoring.h" @@ -313,10 +321,3 @@ class Epetra_CrsSingletonFilter { Epetra_CrsSingletonFilter & operator=(const Epetra_CrsSingletonFilter & Problem); }; #endif /* EPETRA_CRSSINGLETONFILTER_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Data.h b/packages/epetra/src/Epetra_Data.h index d7de575c1a02..2065de79f74f 100644 --- a/packages/epetra/src/Epetra_Data.h +++ b/packages/epetra/src/Epetra_Data.h @@ -44,6 +44,14 @@ #ifndef EPETRA_DATA_H #define EPETRA_DATA_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" //! Epetra_Data: The Epetra Base Data Class. @@ -106,10 +114,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_Data { }; #endif /* EPETRA_DATA_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_DataAccess.h b/packages/epetra/src/Epetra_DataAccess.h index 305712ee24a2..a004a953c88a 100644 --- a/packages/epetra/src/Epetra_DataAccess.h +++ b/packages/epetra/src/Epetra_DataAccess.h @@ -43,6 +43,14 @@ #ifndef EPETRA_DATAACCESS_H #define EPETRA_DATAACCESS_H + +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + /*! \file Epetra_DataAccess.h \brief Epetra_DataAccess Mode enumerable type */ @@ -59,10 +67,3 @@ enum Epetra_DataAccess {Copy, /*!< User data will be copied at }; #endif // EPETRA_DATAACCESS_H - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Directory.h b/packages/epetra/src/Epetra_Directory.h index 5800ead1bfa8..216edc410c9a 100644 --- a/packages/epetra/src/Epetra_Directory.h +++ b/packages/epetra/src/Epetra_Directory.h @@ -44,6 +44,14 @@ #ifndef EPETRA_DIRECTORY_H #define EPETRA_DIRECTORY_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" class Epetra_BlockMap; // Compiler needs forward reference @@ -123,10 +131,3 @@ class Epetra_Directory { }; #endif /* EPETRA_DIRECTORY_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_DistObject.h b/packages/epetra/src/Epetra_DistObject.h index 5bc90d507a64..ef000a462fd7 100644 --- a/packages/epetra/src/Epetra_DistObject.h +++ b/packages/epetra/src/Epetra_DistObject.h @@ -43,6 +43,14 @@ #ifndef EPETRA_DISTOBJECT_H #define EPETRA_DISTOBJECT_H + +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" #include "Epetra_SrcDistObject.h" @@ -281,10 +289,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_DistObject: public Epetra_Object, public virt }; #endif /* EPETRA_DISTOBJECT_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Distributor.h b/packages/epetra/src/Epetra_Distributor.h index 2b9548e42d82..cf0ad8420f82 100644 --- a/packages/epetra/src/Epetra_Distributor.h +++ b/packages/epetra/src/Epetra_Distributor.h @@ -44,6 +44,14 @@ #ifndef EPETRA_DISTRIBUTOR_H #define EPETRA_DISTRIBUTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + //! Epetra_Distributor: The Epetra Gather/Scatter Setup Base Class. /*! The Epetra_Distributor class is an interface that encapsulates the general information and services needed for other Epetra classes to perform gather/scatter @@ -204,10 +212,3 @@ class Epetra_Distributor { //@} }; #endif /* EPETRA_DISTRIBUTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Export.h b/packages/epetra/src/Epetra_Export.h index 95c88f4d2128..8ad52903e393 100644 --- a/packages/epetra/src/Epetra_Export.h +++ b/packages/epetra/src/Epetra_Export.h @@ -44,6 +44,14 @@ #ifndef EPETRA_EXPORT_H #define EPETRA_EXPORT_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_Object.h" #include "Epetra_BlockMap.h" @@ -317,10 +325,3 @@ and entries 5 and 6 on PEs 1 and 2. }; #endif /* EPETRA_EXPORT_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_FECrsGraph.h b/packages/epetra/src/Epetra_FECrsGraph.h index b15ebffd33f0..27b007f4ea40 100644 --- a/packages/epetra/src/Epetra_FECrsGraph.h +++ b/packages/epetra/src/Epetra_FECrsGraph.h @@ -44,6 +44,14 @@ #ifndef EPETRA_FECRSGRAPH_H #define EPETRA_FECRSGRAPH_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Map.h" #include "Epetra_CrsGraph.h" @@ -239,10 +247,3 @@ template<> inline std::map #include #include @@ -857,10 +865,3 @@ template<> inline std::vector >& Epetra_FECrsMatrix::nonl #endif /* EPETRA_FECRSMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_FEVbrMatrix.h b/packages/epetra/src/Epetra_FEVbrMatrix.h index ef271da4d2d1..4b5bfe5bbad0 100644 --- a/packages/epetra/src/Epetra_FEVbrMatrix.h +++ b/packages/epetra/src/Epetra_FEVbrMatrix.h @@ -44,6 +44,14 @@ #ifndef EPETRA_FEVBRMATRIX_H #define EPETRA_FEVBRMATRIX_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include #include @@ -286,10 +294,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_FEVbrMatrix: public Epetra_VbrMatrix { }; #endif /* EPETRA_FEVBRMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_FEVector.h b/packages/epetra/src/Epetra_FEVector.h index 8807428e3b1f..43c7a84c6adb 100644 --- a/packages/epetra/src/Epetra_FEVector.h +++ b/packages/epetra/src/Epetra_FEVector.h @@ -44,6 +44,14 @@ #ifndef EPETRA_FEVECTOR_H #define EPETRA_FEVECTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include #include #include @@ -360,11 +368,3 @@ template<> inline std::vector& Epetra_FEVector::nonlocalIDs #endif #endif /* EPETRA_GIDTYPESERIALDENSEVECTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_GIDTypeVector.h b/packages/epetra/src/Epetra_GIDTypeVector.h index 177e605d329c..b348e8b986a8 100644 --- a/packages/epetra/src/Epetra_GIDTypeVector.h +++ b/packages/epetra/src/Epetra_GIDTypeVector.h @@ -44,6 +44,14 @@ #ifndef EPETRA_GIDTYPEVECTOR_H #define EPETRA_GIDTYPEVECTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_IntVector.h" #include "Epetra_LongLongVector.h" @@ -81,10 +89,3 @@ class Epetra_GIDTypeVector #endif #endif /* EPETRA_GIDTYPEVECTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_HashTable.h b/packages/epetra/src/Epetra_HashTable.h index 182d360df721..56ac65ec7bb2 100644 --- a/packages/epetra/src/Epetra_HashTable.h +++ b/packages/epetra/src/Epetra_HashTable.h @@ -44,6 +44,14 @@ #ifndef Epetra_HashTable_H_ #define Epetra_HashTable_H_ +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_Object.h" template @@ -146,10 +154,3 @@ class Epetra_HashTable : public Epetra_Object }; #endif - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Import.h b/packages/epetra/src/Epetra_Import.h index f0b95beddf44..41ae055a5f7e 100644 --- a/packages/epetra/src/Epetra_Import.h +++ b/packages/epetra/src/Epetra_Import.h @@ -44,6 +44,14 @@ #ifndef EPETRA_IMPORT_H #define EPETRA_IMPORT_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_Object.h" #include "Epetra_BlockMap.h" class Epetra_Distributor; @@ -349,10 +357,3 @@ in the above example to do an export operation to y, adding the contributions th }; #endif /* EPETRA_IMPORT_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Import_Util.h b/packages/epetra/src/Epetra_Import_Util.h index 22b624d99991..1f503c93f12c 100644 --- a/packages/epetra/src/Epetra_Import_Util.h +++ b/packages/epetra/src/Epetra_Import_Util.h @@ -44,6 +44,14 @@ #ifndef EPETRA_IMPORT_UTIL_H #define EPETRA_IMPORT_UTIL_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" #include "Epetra_CrsMatrix.h" @@ -193,10 +201,3 @@ int LowCommunicationMakeColMapAndReindex(int N, const int *rowptr, int *colind_L } /* Epetra_Import_Util namespace */ #endif /* EPETRA_IMPORT_UTIL_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_IntMultiVector.h b/packages/epetra/src/Epetra_IntMultiVector.h index 43c28b7036f7..a0943ba58de2 100644 --- a/packages/epetra/src/Epetra_IntMultiVector.h +++ b/packages/epetra/src/Epetra_IntMultiVector.h @@ -44,6 +44,14 @@ #ifndef EPETRA_INTMULTIVECTOR_H #define EPETRA_INTMULTIVECTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + class Epetra_Comm; class Epetra_BlockMap; class Epetra_Map; @@ -805,10 +813,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_IntMultiVector: public Epetra_DistObject, pub }; #endif /* EPETRA_INTMULTIVECTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_IntSerialDenseMatrix.h b/packages/epetra/src/Epetra_IntSerialDenseMatrix.h index 65af8b1e5d76..92728d2f1391 100644 --- a/packages/epetra/src/Epetra_IntSerialDenseMatrix.h +++ b/packages/epetra/src/Epetra_IntSerialDenseMatrix.h @@ -44,6 +44,14 @@ #ifndef EPETRA_INTSERIALDENSEMATRIX_H #define EPETRA_INTSERIALDENSEMATRIX_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_Object.h" //! Epetra_IntSerialDenseMatrix: A class for constructing and using general dense integer matrices. @@ -405,10 +413,3 @@ inline const int* Epetra_IntSerialDenseMatrix::operator [] (int ColIndex) const //========================================================================= #endif /* EPETRA_INTSERIALDENSEMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_IntSerialDenseVector.h b/packages/epetra/src/Epetra_IntSerialDenseVector.h index 61d1edb49349..87116c2e729f 100644 --- a/packages/epetra/src/Epetra_IntSerialDenseVector.h +++ b/packages/epetra/src/Epetra_IntSerialDenseVector.h @@ -44,6 +44,14 @@ #ifndef EPETRA_INTSERIALDENSEVECTOR_H #define EPETRA_INTSERIALDENSEVECTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_Object.h" #include "Epetra_IntSerialDenseMatrix.h" @@ -299,10 +307,3 @@ inline const int& Epetra_IntSerialDenseVector::operator [] (int Index) const { //========================================================================= #endif /* EPETRA_INTSERIALDENSEVECTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_IntVector.h b/packages/epetra/src/Epetra_IntVector.h index 9e1eaa6bf436..47a0f259a7af 100644 --- a/packages/epetra/src/Epetra_IntVector.h +++ b/packages/epetra/src/Epetra_IntVector.h @@ -44,6 +44,14 @@ #ifndef EPETRA_INTVECTOR_H #define EPETRA_INTVECTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_DistObject.h" #include "Epetra_BlockMap.h" @@ -307,10 +315,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_IntVector : public Epetra_DistObject { }; #endif /* EPETRA_INTVECTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_InvOperator.h b/packages/epetra/src/Epetra_InvOperator.h index 29b8cea93399..81a24ccafcd5 100644 --- a/packages/epetra/src/Epetra_InvOperator.h +++ b/packages/epetra/src/Epetra_InvOperator.h @@ -44,6 +44,14 @@ #ifndef EPETRA_INVOPERATOR_H #define EPETRA_INVOPERATOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + class Epetra_MultiVector; class Epetra_BlockMap; class Epetra_Comm; @@ -165,11 +173,3 @@ class Epetra_InvOperator: public virtual Epetra_Operator { }; #endif /* EPETRA_INVOPERATOR_H */ - - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_JadMatrix.h b/packages/epetra/src/Epetra_JadMatrix.h index b6af502dcbe0..e06112091b35 100644 --- a/packages/epetra/src/Epetra_JadMatrix.h +++ b/packages/epetra/src/Epetra_JadMatrix.h @@ -44,6 +44,14 @@ #ifndef EPETRA_JADMATRIX_H #define EPETRA_JADMATRIX_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_BasicRowMatrix.h" #include "Epetra_Map.h" #include "Epetra_Comm.h" @@ -227,10 +235,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_JadMatrix: public Epetra_BasicRowMatrix { }; #endif /* EPETRA_JADMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_LAPACK.h b/packages/epetra/src/Epetra_LAPACK.h index 8946bce81b27..bcebc4fb019a 100644 --- a/packages/epetra/src/Epetra_LAPACK.h +++ b/packages/epetra/src/Epetra_LAPACK.h @@ -44,6 +44,14 @@ #ifndef EPETRA_LAPACK_H #define EPETRA_LAPACK_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + //! Epetra_LAPACK: The Epetra LAPACK Wrapper Class. /*! The Epetra_LAPACK class is a wrapper that encapsulates LAPACK (Linear Algebra Package). LAPACK provides portable, high- @@ -429,10 +437,3 @@ inline Epetra_LAPACK::Epetra_LAPACK(const Epetra_LAPACK& LAPACK){(void)LAPACK;} inline Epetra_LAPACK::~Epetra_LAPACK(){} #endif /* EPETRA_LAPACK_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_LAPACK_wrappers.h b/packages/epetra/src/Epetra_LAPACK_wrappers.h index b6aa00eaaccf..031236978c81 100644 --- a/packages/epetra/src/Epetra_LAPACK_wrappers.h +++ b/packages/epetra/src/Epetra_LAPACK_wrappers.h @@ -44,6 +44,14 @@ #ifndef EPETRA_LAPACK_WRAPPERS_H #define EPETRA_LAPACK_WRAPPERS_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #if defined(CRAY_T3X) || defined(INTEL_CXML) || defined(INTEL_MKL) @@ -493,10 +501,3 @@ extern "C" { #endif #endif /* EPETRA_LAPACK_WRAPPERS_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_LinearProblem.h b/packages/epetra/src/Epetra_LinearProblem.h index cae087e75064..ff05d5c12c77 100644 --- a/packages/epetra/src/Epetra_LinearProblem.h +++ b/packages/epetra/src/Epetra_LinearProblem.h @@ -44,6 +44,14 @@ #ifndef EPETRA_LINEARPROBLEM_H #define EPETRA_LINEARPROBLEM_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_RowMatrix.h" #include "Epetra_Operator.h" #ifndef DOXYGEN_SHOULD_SKIP_THIS @@ -200,10 +208,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_LinearProblem { }; #endif /* EPETRA_LINEARPROBLEM_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_LinearProblemRedistor.h b/packages/epetra/src/Epetra_LinearProblemRedistor.h index 43327ca9a685..278b6b92a9e5 100644 --- a/packages/epetra/src/Epetra_LinearProblemRedistor.h +++ b/packages/epetra/src/Epetra_LinearProblemRedistor.h @@ -44,6 +44,14 @@ #ifndef EPETRA_LINEARPROBLEMREDISTOR_H #define EPETRA_LINEARPROBLEMREDISTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + class Epetra_Map; class Epetra_Export; class Epetra_LinearProblem; @@ -246,10 +254,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_LinearProblemRedistor { }; #endif /* EPETRA_LINEARPROBLEMREDISTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_LocalMap.h b/packages/epetra/src/Epetra_LocalMap.h index 155a1c8efcf3..bdf7891835b9 100644 --- a/packages/epetra/src/Epetra_LocalMap.h +++ b/packages/epetra/src/Epetra_LocalMap.h @@ -44,6 +44,14 @@ #ifndef EPETRA_LOCALMAP_H #define EPETRA_LOCALMAP_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + //! Epetra_LocalMap: A class for replicating vectors and matrices across multiple processors. /*! Small matrix and vector objects are often replicated on distributed memory @@ -132,10 +140,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_LocalMap : public Epetra_Map { }; #endif /* EPETRA_LOCALMAP_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_LongLongSerialDenseMatrix.h b/packages/epetra/src/Epetra_LongLongSerialDenseMatrix.h index cba6bf4b0ce3..4b0437c897cf 100644 --- a/packages/epetra/src/Epetra_LongLongSerialDenseMatrix.h +++ b/packages/epetra/src/Epetra_LongLongSerialDenseMatrix.h @@ -44,6 +44,14 @@ #ifndef EPETRA_LONGLONGSERIALDENSEMATRIX_H #define EPETRA_LONGLONGSERIALDENSEMATRIX_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" @@ -410,10 +418,3 @@ inline const long long* Epetra_LongLongSerialDenseMatrix::operator [] (int ColIn #endif // EPETRA_NO_64BIT_GLOBAL_INDICES #endif /* EPETRA_LONGLONGSERIALDENSEMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_LongLongSerialDenseVector.h b/packages/epetra/src/Epetra_LongLongSerialDenseVector.h index a41476a900b1..260c2a332674 100644 --- a/packages/epetra/src/Epetra_LongLongSerialDenseVector.h +++ b/packages/epetra/src/Epetra_LongLongSerialDenseVector.h @@ -44,6 +44,14 @@ #ifndef EPETRA_LONGLONGSERIALDENSEVECTOR_H #define EPETRA_LONGLONGSERIALDENSEVECTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" #include "Epetra_LongLongSerialDenseMatrix.h" @@ -304,10 +312,3 @@ inline const long long& Epetra_LongLongSerialDenseVector::operator [] (int Index #endif // EPETRA_NO_64BIT_GLOBAL_INDICES #endif /* EPETRA_LONGLONGSERIALDENSEVECTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_LongLongVector.h b/packages/epetra/src/Epetra_LongLongVector.h index 0cacfec6468c..5548f118e00b 100644 --- a/packages/epetra/src/Epetra_LongLongVector.h +++ b/packages/epetra/src/Epetra_LongLongVector.h @@ -44,6 +44,14 @@ #ifndef EPETRA_LONGLONGVECTOR_H #define EPETRA_LONGLONGVECTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_DistObject.h" #include "Epetra_BlockMap.h" @@ -307,10 +315,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_LongLongVector : public Epetra_DistObject { #endif // EPETRA_NO_64BIT_GLOBAL_INDICES #endif /* EPETRA_LONGLONGVECTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Map.h b/packages/epetra/src/Epetra_Map.h index 59092758ee1f..1d96993f3b01 100644 --- a/packages/epetra/src/Epetra_Map.h +++ b/packages/epetra/src/Epetra_Map.h @@ -44,6 +44,14 @@ #ifndef EPETRA_MAP_H #define EPETRA_MAP_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + //! Epetra_Map: A class for partitioning vectors and matrices. /*! It is often the case that multiple matrix and vector objects have an identical distribution @@ -356,10 +364,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_Map : public Epetra_BlockMap { }; #endif /* EPETRA_MAP_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_MapColoring.h b/packages/epetra/src/Epetra_MapColoring.h index d51fe9d9b233..7816765cb683 100644 --- a/packages/epetra/src/Epetra_MapColoring.h +++ b/packages/epetra/src/Epetra_MapColoring.h @@ -44,6 +44,14 @@ #ifndef EPETRA_MAPCOLORING_H #define EPETRA_MAPCOLORING_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_DistObject.h" #include "Epetra_BlockMap.h" @@ -323,10 +331,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_MapColoring: public Epetra_DistObject { }; #endif /* EPETRA_MAPCOLORING_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_MpiComm.h b/packages/epetra/src/Epetra_MpiComm.h index 7862724b2a19..f57d6e9caddb 100644 --- a/packages/epetra/src/Epetra_MpiComm.h +++ b/packages/epetra/src/Epetra_MpiComm.h @@ -43,6 +43,14 @@ #ifndef EPETRA_MPICOMM_H #define EPETRA_MPICOMM_H + +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + #include "Epetra_Object.h" #include "Epetra_Comm.h" #include "Epetra_MpiDistributor.h" @@ -539,10 +547,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_MpiComm: public Epetra_Object, public virtual }; #endif /* EPETRA_MPICOMM_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_MpiCommData.h b/packages/epetra/src/Epetra_MpiCommData.h index ee9c3b71c6c6..50ed7d869b95 100644 --- a/packages/epetra/src/Epetra_MpiCommData.h +++ b/packages/epetra/src/Epetra_MpiCommData.h @@ -44,6 +44,14 @@ #ifndef EPETRA_MPICOMMDATA_H #define EPETRA_MPICOMMDATA_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_Data.h" #include @@ -85,10 +93,3 @@ class Epetra_MpiCommData : public Epetra_Data { }; #endif /* EPETRA_MPICOMMDATA_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_MpiDistributor.h b/packages/epetra/src/Epetra_MpiDistributor.h index 2597be4d5c2e..4ec09b0b1ee6 100644 --- a/packages/epetra/src/Epetra_MpiDistributor.h +++ b/packages/epetra/src/Epetra_MpiDistributor.h @@ -43,6 +43,14 @@ #ifndef EPETRA_MPIDISTRIBUTOR_H #define EPETRA_MPIDISTRIBUTOR_H + +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + #include "Epetra_Object.h" #include "Epetra_Distributor.h" class Epetra_MpiComm; @@ -388,10 +396,3 @@ class Epetra_MpiDistributor: public Epetra_Object, public virtual Epetra_Distrib int lastRoundBytesRecv_; }; #endif /* EPETRA_MPIDISTRIBUTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_MultiVector.h b/packages/epetra/src/Epetra_MultiVector.h index efa1e13ef5d8..72ff984284f1 100644 --- a/packages/epetra/src/Epetra_MultiVector.h +++ b/packages/epetra/src/Epetra_MultiVector.h @@ -44,6 +44,14 @@ #ifndef EPETRA_MULTIVECTOR_H #define EPETRA_MULTIVECTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + class Epetra_Comm; class Epetra_BlockMap; class Epetra_Map; @@ -1074,10 +1082,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_MultiVector: public Epetra_DistObject, public }; #endif /* EPETRA_MULTIVECTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Object.h b/packages/epetra/src/Epetra_Object.h index d427f224c618..8c5c4db40069 100644 --- a/packages/epetra/src/Epetra_Object.h +++ b/packages/epetra/src/Epetra_Object.h @@ -44,6 +44,14 @@ #ifndef EPETRA_OBJECT_H #define EPETRA_OBJECT_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_CombineMode.h" #include "Epetra_DataAccess.h" #include "Epetra_ConfigDefs.h" @@ -212,10 +220,3 @@ inline std::ostream& operator<<(std::ostream& os, const Epetra_Object& obj) } #endif /* EPETRA_OBJECT_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_OffsetIndex.h b/packages/epetra/src/Epetra_OffsetIndex.h index 053614451534..f8f70175d2e8 100644 --- a/packages/epetra/src/Epetra_OffsetIndex.h +++ b/packages/epetra/src/Epetra_OffsetIndex.h @@ -44,6 +44,14 @@ #ifndef EPETRA_OFFSETINDEX_H #define EPETRA_OFFSETINDEX_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_Object.h" class Epetra_Import; @@ -121,10 +129,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_OffsetIndex: public Epetra_Object { }; #endif /* EPETRA_OFFSETINDEX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Operator.h b/packages/epetra/src/Epetra_Operator.h index 44c538f22109..0385b5a6019d 100644 --- a/packages/epetra/src/Epetra_Operator.h +++ b/packages/epetra/src/Epetra_Operator.h @@ -44,6 +44,14 @@ #ifndef EPETRA_OPERATOR_H #define EPETRA_OPERATOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" class Epetra_MultiVector; class Epetra_Map; @@ -145,10 +153,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_Operator { }; #endif /* EPETRA_OPERATOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_OskiError.h b/packages/epetra/src/Epetra_OskiError.h index 0d253f8c4ad6..bab9950ef236 100644 --- a/packages/epetra/src/Epetra_OskiError.h +++ b/packages/epetra/src/Epetra_OskiError.h @@ -46,6 +46,14 @@ #ifndef EPETRA_OSKIERROR_H #define EPETRA_OSKIERROR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + extern "C" { #include } @@ -78,10 +86,3 @@ class Epetra_OskiError { }; #endif /* EPETRA_OSKIERROR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_OskiMatrix.h b/packages/epetra/src/Epetra_OskiMatrix.h index 8e8310b8e11f..7459fef114f5 100644 --- a/packages/epetra/src/Epetra_OskiMatrix.h +++ b/packages/epetra/src/Epetra_OskiMatrix.h @@ -46,6 +46,14 @@ #ifndef EPETRA_OSKIMATRIX_H #define EPETRA_OSKIMATRIX_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_OskiMultiVector.h" #include "Epetra_OskiVector.h" #include "Epetra_CrsMatrix.h" @@ -799,10 +807,3 @@ available hints are grouped by section, and only one hint from each section can bool Copy_Created_; }; #endif /* EPETRA_OSKIMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_OskiMultiVector.h b/packages/epetra/src/Epetra_OskiMultiVector.h index ec32f49a66c7..90b5f89b45f4 100644 --- a/packages/epetra/src/Epetra_OskiMultiVector.h +++ b/packages/epetra/src/Epetra_OskiMultiVector.h @@ -46,6 +46,14 @@ #ifndef EPETRA_OSKIMULTIVECTOR_H #define EPETRA_OSKIMULTIVECTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_MultiVector.h" extern "C" { #include "oski/oski.h" @@ -110,10 +118,3 @@ class Epetra_OskiMultiVector: public Epetra_MultiVector{ bool Copy_Created_; }; #endif /* EPETRA_OSKIMULTIVECTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_OskiPermutation.h b/packages/epetra/src/Epetra_OskiPermutation.h index e0c6b0004e41..d41f76d7c141 100644 --- a/packages/epetra/src/Epetra_OskiPermutation.h +++ b/packages/epetra/src/Epetra_OskiPermutation.h @@ -46,6 +46,14 @@ #ifndef EPETRA_OSKIPERMUTATION_H #define EPETRA_OSKIPERMUTATION_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_OskiMatrix.h" #include "Epetra_OskiMultiVector.h" extern "C" { @@ -115,10 +123,3 @@ class Epetra_OskiPermutation{ }; #endif /* EPETRA_OSKIPERMUTATION_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_OskiUtils.h b/packages/epetra/src/Epetra_OskiUtils.h index 2553b40a35dd..ad0cabd87589 100644 --- a/packages/epetra/src/Epetra_OskiUtils.h +++ b/packages/epetra/src/Epetra_OskiUtils.h @@ -46,6 +46,14 @@ #ifndef EPETRA_OSKIUTILS_H #define EPETRA_OSKIUTILS_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + extern "C" { #include "oski/oski.h" } @@ -87,10 +95,3 @@ class Epetra_OskiUtils { }; #endif /* EPETRA_OSKIUTILS_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_OskiVector.h b/packages/epetra/src/Epetra_OskiVector.h index c9ce5cd510e0..7ab74ca8beb0 100644 --- a/packages/epetra/src/Epetra_OskiVector.h +++ b/packages/epetra/src/Epetra_OskiVector.h @@ -46,6 +46,14 @@ #ifndef EPETRA_OSKIVECTOR_H #define EPETRA_OSKIVECTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_OskiMultiVector.h" #include "Epetra_Vector.h" extern "C" { @@ -105,10 +113,3 @@ class Epetra_OskiVector: public Epetra_OskiMultiVector { }; #endif /* EPETRA_OSKIVECTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_RowMatrix.h b/packages/epetra/src/Epetra_RowMatrix.h index 988c16f9829c..0ad7234f928f 100644 --- a/packages/epetra/src/Epetra_RowMatrix.h +++ b/packages/epetra/src/Epetra_RowMatrix.h @@ -44,6 +44,14 @@ #ifndef EPETRA_ROWMATRIX_H #define EPETRA_ROWMATRIX_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + class Epetra_Comm; class Epetra_Import; class Epetra_Export; @@ -280,10 +288,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_RowMatrix: public virtual Epetra_Operator, pu }; #endif /* EPETRA_ROWMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_RowMatrixTransposer.h b/packages/epetra/src/Epetra_RowMatrixTransposer.h index 7c27ef08ac5c..e2f8b2b5db9a 100644 --- a/packages/epetra/src/Epetra_RowMatrixTransposer.h +++ b/packages/epetra/src/Epetra_RowMatrixTransposer.h @@ -43,6 +43,14 @@ #ifndef EPETRA_ROWMATRIXTRANSPOSER_H #define EPETRA_ROWMATRIXTRANSPOSER_H + +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + #include class Epetra_RowMatrix; class Epetra_CrsMatrix; @@ -164,10 +172,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_RowMatrixTransposer { }; #endif /* EPETRA_ROWMATRIXTRANSPOSER_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_SerialComm.h b/packages/epetra/src/Epetra_SerialComm.h index 17ede0eb813d..17b3436effa4 100644 --- a/packages/epetra/src/Epetra_SerialComm.h +++ b/packages/epetra/src/Epetra_SerialComm.h @@ -44,6 +44,14 @@ #ifndef EPETRA_SERIALCOMM_H #define EPETRA_SERIALCOMM_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" #include "Epetra_Comm.h" @@ -498,10 +506,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_SerialComm: public Epetra_Object, public virt }; #endif /* EPETRA_SERIALCOMM_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_SerialCommData.h b/packages/epetra/src/Epetra_SerialCommData.h index 9933f4e23dec..8ed759d89fc6 100644 --- a/packages/epetra/src/Epetra_SerialCommData.h +++ b/packages/epetra/src/Epetra_SerialCommData.h @@ -44,6 +44,14 @@ #ifndef EPETRA_SERIALCOMMDATA_H #define EPETRA_SERIALCOMMDATA_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_Data.h" //! Epetra_SerialCommData: The Epetra Serial Communication Data Class. @@ -75,10 +83,3 @@ class Epetra_SerialCommData : public Epetra_Data { }; #endif /* EPETRA_SERIALCOMMDATA_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_SerialDenseMatrix.h b/packages/epetra/src/Epetra_SerialDenseMatrix.h index b5c254fa1168..788f02b1a4e5 100644 --- a/packages/epetra/src/Epetra_SerialDenseMatrix.h +++ b/packages/epetra/src/Epetra_SerialDenseMatrix.h @@ -44,6 +44,14 @@ #ifndef EPETRA_SERIALDENSEMATRIX_H #define EPETRA_SERIALDENSEMATRIX_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" #include "Epetra_CompObject.h" @@ -540,10 +548,3 @@ inline const double* Epetra_SerialDenseMatrix::operator [] (int ColIndex) const //========================================================================= #endif /* EPETRA_SERIALDENSEMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_SerialDenseOperator.h b/packages/epetra/src/Epetra_SerialDenseOperator.h index 7c44af6d23b1..ce683ef878b6 100644 --- a/packages/epetra/src/Epetra_SerialDenseOperator.h +++ b/packages/epetra/src/Epetra_SerialDenseOperator.h @@ -44,6 +44,14 @@ #ifndef _EPETRA_SERIALDENSEOPERATOR_H_ #define _EPETRA_SERIALDENSEOPERATOR_H_ +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" class Epetra_SerialDenseMatrix; @@ -138,10 +146,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_SerialDenseOperator { }; #endif /* _EPETRA_OPERATOR_H_ */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_SerialDenseSVD.h b/packages/epetra/src/Epetra_SerialDenseSVD.h index a1e3f368b775..d887f8cb8528 100644 --- a/packages/epetra/src/Epetra_SerialDenseSVD.h +++ b/packages/epetra/src/Epetra_SerialDenseSVD.h @@ -44,6 +44,14 @@ #ifndef _EPETRA_SERIALDENSESVD_H_ #define _EPETRA_SERIALDENSESVD_H_ +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_SerialDenseOperator.h" #include "Epetra_SerialDenseMatrix.h" #include "Epetra_Object.h" @@ -524,10 +532,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_SerialDenseSVD : public virtual Epetra_Serial }; #endif /* _EPETRA_SERIALDENSESVD_H_ */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_SerialDenseSolver.h b/packages/epetra/src/Epetra_SerialDenseSolver.h index ee1393aa3be0..f7c0bf90c836 100644 --- a/packages/epetra/src/Epetra_SerialDenseSolver.h +++ b/packages/epetra/src/Epetra_SerialDenseSolver.h @@ -43,6 +43,14 @@ #ifndef EPETRA_SERIALDENSESOLVER_H #define EPETRA_SERIALDENSESOLVER_H + +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + class Epetra_SerialDenseMatrix; #include "Epetra_Object.h" #include "Epetra_CompObject.h" @@ -433,10 +441,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_SerialDenseSolver : }; #endif /* EPETRA_SERIALDENSESOLVER_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_SerialDenseVector.h b/packages/epetra/src/Epetra_SerialDenseVector.h index 7be49497367e..0d3012efcb7f 100644 --- a/packages/epetra/src/Epetra_SerialDenseVector.h +++ b/packages/epetra/src/Epetra_SerialDenseVector.h @@ -44,6 +44,14 @@ #ifndef EPETRA_SERIALDENSEVECTOR_H #define EPETRA_SERIALDENSEVECTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_Object.h" #include "Epetra_SerialDenseMatrix.h" @@ -321,10 +329,3 @@ inline const double& Epetra_SerialDenseVector::operator [] (int Index) const { //========================================================================= #endif /* EPETRA_SERIALDENSEVECTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_SerialDistributor.h b/packages/epetra/src/Epetra_SerialDistributor.h index c03eaa067f23..a87f38beb790 100644 --- a/packages/epetra/src/Epetra_SerialDistributor.h +++ b/packages/epetra/src/Epetra_SerialDistributor.h @@ -44,6 +44,14 @@ #ifndef EPETRA_SERIALDISTRIBUTOR_H #define EPETRA_SERIALDISTRIBUTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_Object.h" #include "Epetra_Distributor.h" class Epetra_SerialComm; @@ -157,10 +165,3 @@ class Epetra_SerialDistributor: public Epetra_Object, public virtual Epetra_Dist int nsends_; }; #endif /* EPETRA_SERIALDISTRIBUTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_SerialSpdDenseSolver.h b/packages/epetra/src/Epetra_SerialSpdDenseSolver.h index ff6dd2ab1099..c4e3898e1b53 100644 --- a/packages/epetra/src/Epetra_SerialSpdDenseSolver.h +++ b/packages/epetra/src/Epetra_SerialSpdDenseSolver.h @@ -43,6 +43,14 @@ #ifndef EPETRA_SERIALSPDDENSESOLVER_H #define EPETRA_SERIALSPDDENSESOLVER_H + +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + #include "Epetra_SerialDenseSolver.h" class Epetra_SerialSymDenseMatrix; @@ -275,10 +283,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_SerialSpdDenseSolver : public Epetra_SerialDe }; #endif /* EPETRA_SERIALSPDDENSESOLVER_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_SerialSymDenseMatrix.h b/packages/epetra/src/Epetra_SerialSymDenseMatrix.h index 2c17915a20de..3bfa01b3f7e8 100644 --- a/packages/epetra/src/Epetra_SerialSymDenseMatrix.h +++ b/packages/epetra/src/Epetra_SerialSymDenseMatrix.h @@ -43,6 +43,14 @@ #ifndef EPETRA_SERIALSYMDENSEMATRIX_H #define EPETRA_SERIALSYMDENSEMATRIX_H + +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + #include "Epetra_SerialDenseMatrix.h" @@ -280,10 +288,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_SerialSymDenseMatrix : public Epetra_SerialDe }; #endif /* EPETRA_SERIALSYMDENSEMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_SrcDistObject.h b/packages/epetra/src/Epetra_SrcDistObject.h index 984c3773769b..93fdaff08514 100644 --- a/packages/epetra/src/Epetra_SrcDistObject.h +++ b/packages/epetra/src/Epetra_SrcDistObject.h @@ -44,6 +44,14 @@ #ifndef EPETRA_SRCDISTOBJECT_H #define EPETRA_SRCDISTOBJECT_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" class Epetra_BlockMap; @@ -77,10 +85,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_SrcDistObject { }; #endif /* EPETRA_SRCDISTOBJECT_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Time.h b/packages/epetra/src/Epetra_Time.h index 8faf5bfb44c8..51fa06b48a3b 100644 --- a/packages/epetra/src/Epetra_Time.h +++ b/packages/epetra/src/Epetra_Time.h @@ -44,6 +44,14 @@ #ifndef EPETRA_TIME_H #define EPETRA_TIME_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + //! Epetra_Time: The Epetra Timing Class. /*! The Epetra_Time class is a wrapper that encapsulates the general information needed getting timing information. Currently it return @@ -130,10 +138,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_Time: public Epetra_Object { }; #endif /* EPETRA_TIME_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Util.h b/packages/epetra/src/Epetra_Util.h index 3fdb46e83f20..d5ac77e597d5 100644 --- a/packages/epetra/src/Epetra_Util.h +++ b/packages/epetra/src/Epetra_Util.h @@ -44,6 +44,14 @@ #ifndef EPETRA_UTIL_H #define EPETRA_UTIL_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" #include @@ -477,10 +485,3 @@ int EPETRA_LIB_DLL_EXPORT Epetra_Util_ExtractHbData( #endif /* EPETRA_UTIL_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_VbrMatrix.h b/packages/epetra/src/Epetra_VbrMatrix.h index 3455d432db5e..41c34309df0b 100644 --- a/packages/epetra/src/Epetra_VbrMatrix.h +++ b/packages/epetra/src/Epetra_VbrMatrix.h @@ -44,6 +44,14 @@ #ifndef EPETRA_VBRMATRIX_H #define EPETRA_VBRMATRIX_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + // FIXME long long : whole file #include @@ -1478,10 +1486,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_VbrMatrix : public Epetra_DistObject, }; #endif /* EPETRA_VBRMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_VbrRowMatrix.h b/packages/epetra/src/Epetra_VbrRowMatrix.h index 7bb8212cdd69..fd9a4d0ac385 100644 --- a/packages/epetra/src/Epetra_VbrRowMatrix.h +++ b/packages/epetra/src/Epetra_VbrRowMatrix.h @@ -44,6 +44,14 @@ #ifndef EPETRA_VBRROWMATRIX_H #define EPETRA_VBRROWMATRIX_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_BasicRowMatrix.h" #include "Epetra_VbrMatrix.h" #include "Epetra_Map.h" @@ -246,10 +254,3 @@ class Epetra_VbrRowMatrix: public Epetra_BasicRowMatrix { }; #endif /* EPETRA_VBRROWMATRIX_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Vector.h b/packages/epetra/src/Epetra_Vector.h index 63a67e041f79..6a7c4896a696 100644 --- a/packages/epetra/src/Epetra_Vector.h +++ b/packages/epetra/src/Epetra_Vector.h @@ -44,6 +44,14 @@ #ifndef EPETRA_VECTOR_H #define EPETRA_VECTOR_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" #include "Epetra_MultiVector.h" class Epetra_Map; @@ -471,10 +479,3 @@ class EPETRA_LIB_DLL_EXPORT Epetra_Vector : public Epetra_MultiVector { }; #endif /* EPETRA_VECTOR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/src/Epetra_Version.h b/packages/epetra/src/Epetra_Version.h index a9dd007ff219..eaf4edf7962d 100644 --- a/packages/epetra/src/Epetra_Version.h +++ b/packages/epetra/src/Epetra_Version.h @@ -53,4 +53,3 @@ std::string Epetra_Version() { #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/BlockMap/checkmap.h b/packages/epetra/test/BlockMap/checkmap.h index a4f1855d2f8c..eb5e98492124 100644 --- a/packages/epetra/test/BlockMap/checkmap.h +++ b/packages/epetra/test/BlockMap/checkmap.h @@ -56,4 +56,3 @@ int checkmap(Epetra_BlockMap & Map, int NumGlobalElements, int NumMyElements, #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/BlockMap_LL/checkmap.h b/packages/epetra/test/BlockMap_LL/checkmap.h index 84d705e1c6a8..ea5ab3ad9ada 100644 --- a/packages/epetra/test/BlockMap_LL/checkmap.h +++ b/packages/epetra/test/BlockMap_LL/checkmap.h @@ -56,4 +56,3 @@ int checkmap(Epetra_BlockMap & Map, long long NumGlobalElements, int NumMyElemen #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/FECrsGraph/ExecuteTestProblems.h b/packages/epetra/test/FECrsGraph/ExecuteTestProblems.h index 528e45747e87..4ed78651ec31 100644 --- a/packages/epetra/test/FECrsGraph/ExecuteTestProblems.h +++ b/packages/epetra/test/FECrsGraph/ExecuteTestProblems.h @@ -62,4 +62,3 @@ int Young1(const Epetra_Comm& Comm, bool verbose); #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/FECrsGraph_LL/ExecuteTestProblems.h b/packages/epetra/test/FECrsGraph_LL/ExecuteTestProblems.h index 528e45747e87..4ed78651ec31 100644 --- a/packages/epetra/test/FECrsGraph_LL/ExecuteTestProblems.h +++ b/packages/epetra/test/FECrsGraph_LL/ExecuteTestProblems.h @@ -62,4 +62,3 @@ int Young1(const Epetra_Comm& Comm, bool verbose); #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/FECrsMatrix/ExecuteTestProblems.h b/packages/epetra/test/FECrsMatrix/ExecuteTestProblems.h index b177103943e2..f0f51087a340 100644 --- a/packages/epetra/test/FECrsMatrix/ExecuteTestProblems.h +++ b/packages/epetra/test/FECrsMatrix/ExecuteTestProblems.h @@ -63,4 +63,3 @@ int rectangular(const Epetra_Comm& Comm, bool verbose); #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/FECrsMatrix_LL/ExecuteTestProblems.h b/packages/epetra/test/FECrsMatrix_LL/ExecuteTestProblems.h index b177103943e2..f0f51087a340 100644 --- a/packages/epetra/test/FECrsMatrix_LL/ExecuteTestProblems.h +++ b/packages/epetra/test/FECrsMatrix_LL/ExecuteTestProblems.h @@ -63,4 +63,3 @@ int rectangular(const Epetra_Comm& Comm, bool verbose); #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/FEVbrMatrix/ExecuteTestProblems.h b/packages/epetra/test/FEVbrMatrix/ExecuteTestProblems.h index 54ad1c85b034..8d436b4d1135 100644 --- a/packages/epetra/test/FEVbrMatrix/ExecuteTestProblems.h +++ b/packages/epetra/test/FEVbrMatrix/ExecuteTestProblems.h @@ -56,4 +56,3 @@ int four_quads(const Epetra_Comm& Comm, bool preconstruct_graph, bool verbose); #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/FEVector/ExecuteTestProblems.h b/packages/epetra/test/FEVector/ExecuteTestProblems.h index 2f7c93e6e618..03ca22b502d3 100644 --- a/packages/epetra/test/FEVector/ExecuteTestProblems.h +++ b/packages/epetra/test/FEVector/ExecuteTestProblems.h @@ -69,4 +69,3 @@ int fevec7(Epetra_Comm& Comm, bool verbose); #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/IntMultiVector/ExecuteTestProblems.h b/packages/epetra/test/IntMultiVector/ExecuteTestProblems.h index c1aee85e5358..560b7e072f83 100644 --- a/packages/epetra/test/IntMultiVector/ExecuteTestProblems.h +++ b/packages/epetra/test/IntMultiVector/ExecuteTestProblems.h @@ -54,4 +54,3 @@ int IntMultiVectorTests(const Epetra_BlockMap & Map, int NumVectors, bool verbos #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/Map/checkmap.h b/packages/epetra/test/Map/checkmap.h index 1cdc509d8c89..2529ab3a0130 100644 --- a/packages/epetra/test/Map/checkmap.h +++ b/packages/epetra/test/Map/checkmap.h @@ -54,4 +54,3 @@ int checkmap(Epetra_Map & Map, int NumGlobalElements, int NumMyElements, #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/Map_LL/checkmap.h b/packages/epetra/test/Map_LL/checkmap.h index d1d7c23e1a3e..5c35136e829c 100644 --- a/packages/epetra/test/Map_LL/checkmap.h +++ b/packages/epetra/test/Map_LL/checkmap.h @@ -54,4 +54,3 @@ int checkmap(Epetra_Map & Map, long long NumGlobalElements, int NumMyElements, #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/MultiVector/BuildTestProblems.h b/packages/epetra/test/MultiVector/BuildTestProblems.h index 5cdaaebc2099..a7f0dc86e10f 100644 --- a/packages/epetra/test/MultiVector/BuildTestProblems.h +++ b/packages/epetra/test/MultiVector/BuildTestProblems.h @@ -77,4 +77,3 @@ int BuildMultiVectorTests (Epetra_MultiVector & C, #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/MultiVector/ExecuteTestProblems.h b/packages/epetra/test/MultiVector/ExecuteTestProblems.h index ffd902071002..8ca74ce752c0 100644 --- a/packages/epetra/test/MultiVector/ExecuteTestProblems.h +++ b/packages/epetra/test/MultiVector/ExecuteTestProblems.h @@ -61,4 +61,3 @@ int BadResidual1(bool verbose, double * Residual, int NumVectors); #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/Vector/BuildTestProblems.h b/packages/epetra/test/Vector/BuildTestProblems.h index fe75cac6e29e..14770238106a 100644 --- a/packages/epetra/test/Vector/BuildTestProblems.h +++ b/packages/epetra/test/Vector/BuildTestProblems.h @@ -77,4 +77,3 @@ int BuildVectorTests (Epetra_Vector & C, #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/Vector/ExecuteTestProblems.h b/packages/epetra/test/Vector/ExecuteTestProblems.h index 2405217b5991..ad49c4b29cba 100644 --- a/packages/epetra/test/Vector/ExecuteTestProblems.h +++ b/packages/epetra/test/Vector/ExecuteTestProblems.h @@ -60,4 +60,3 @@ int BadResidual(bool verbose, double * Residual); #warning "The Epetra package is deprecated" #endif #endif - diff --git a/packages/epetra/test/epetra_test_err.h b/packages/epetra/test/epetra_test_err.h index 658aa2b30fa8..5dacfdceff1f 100644 --- a/packages/epetra/test/epetra_test_err.h +++ b/packages/epetra/test/epetra_test_err.h @@ -49,6 +49,14 @@ error the way that an assert command does. */ #ifndef EPETRA_TEST_ERR_H #define EPETRA_TEST_ERR_H + +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + #include "Epetra_ConfigDefs.h" using namespace std; // This function is to be used when first identifying an error. @@ -64,10 +72,3 @@ using namespace std; } #endif /* EPETRA_TEST_ERR_H */ - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/test/src/Epetra_matrix_data.h b/packages/epetra/test/src/Epetra_matrix_data.h index 7dac2b1a6c61..4345c34a5689 100644 --- a/packages/epetra/test/src/Epetra_matrix_data.h +++ b/packages/epetra/test/src/Epetra_matrix_data.h @@ -44,6 +44,14 @@ #ifndef EPETRA_MATRIX_DATA_H #define EPETRA_MATRIX_DATA_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" class Epetra_CrsMatrix; @@ -103,11 +111,3 @@ class EPETRA_LIB_DLL_EXPORT matrix_data { }//namespace epetra_test #endif - - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetra/test/src/Epetra_test_functions.h b/packages/epetra/test/src/Epetra_test_functions.h index 56bf3ce4211a..a7e356ebbf92 100644 --- a/packages/epetra/test/src/Epetra_test_functions.h +++ b/packages/epetra/test/src/Epetra_test_functions.h @@ -44,6 +44,14 @@ #ifndef EPETRA_TEST_FUNCTIONS_H #define EPETRA_TEST_FUNCTIONS_H +#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Epetra package is deprecated" +#endif +#endif + + + #include "Epetra_ConfigDefs.h" class Epetra_Comm; @@ -71,11 +79,3 @@ EPETRA_LIB_DLL_EXPORT bool compare_matrices(const Epetra_CrsMatrix& A, const Epe }//namespace epetra_test #endif - - -#if defined(Epetra_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Epetra package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/cmake/FindPythonInclude.cmake b/packages/epetraext/cmake/FindPythonInclude.cmake index ba795196cf76..8634919cae73 100644 --- a/packages/epetraext/cmake/FindPythonInclude.cmake +++ b/packages/epetraext/cmake/FindPythonInclude.cmake @@ -1,16 +1,16 @@ # - Find the python include path # This module determines where the python include file Python.h is, -# based on the current value of PYTHON_EXECUTABLE. This code sets the +# based on the current value of Python3_EXECUTABLE. This code sets the # following variable: # # PYTHON_INCLUDE_PATH = path to where Python.h is found # -IF(PYTHON_EXECUTABLE) +IF(Python3_EXECUTABLE) # Obtain the candidate path for python include EXECUTE_PROCESS(COMMAND - ${PYTHON_EXECUTABLE} -c + ${Python3_EXECUTABLE} -c "import sys; print(sys.prefix + '/include/python' + sys.version[:3])" OUTPUT_VARIABLE CANDIDATE OUTPUT_STRIP_TRAILING_WHITESPACE @@ -24,13 +24,13 @@ IF(PYTHON_EXECUTABLE) ENDIF(EXISTS "${CANDIDATE}") # Obtain the candidate path for python library EXECUTE_PROCESS(COMMAND - ${PYTHON_EXECUTABLE} -c + ${Python3_EXECUTABLE} -c "import sys; print('python' + sys.version[:3])" OUTPUT_VARIABLE PYVERSION OUTPUT_STRIP_TRAILING_WHITESPACE ) EXECUTE_PROCESS(COMMAND - ${PYTHON_EXECUTABLE} -c + ${Python3_EXECUTABLE} -c "import sys; print(sys.prefix + '/lib/python' + sys.version[:3] + '/config')" OUTPUT_VARIABLE CANDIDATE OUTPUT_STRIP_TRAILING_WHITESPACE @@ -46,7 +46,7 @@ IF(PYTHON_EXECUTABLE) ENDIF(EXISTS ${LIB_CANDIDATE}) ENDFOREACH(SUFFIX) ENDIF(EXISTS "${CANDIDATE}") -ENDIF(PYTHON_EXECUTABLE) +ENDIF(Python3_EXECUTABLE) # Set any python variables that did not get set by the above logic IF(PYTHON_INCLUDE_FOUND AND PYTHON_LIB_FOUND) diff --git a/packages/epetraext/src/EpetraExt_ConfigDefs.h b/packages/epetraext/src/EpetraExt_ConfigDefs.h index 5467d9615eb9..3e7a853a42ad 100644 --- a/packages/epetraext/src/EpetraExt_ConfigDefs.h +++ b/packages/epetraext/src/EpetraExt_ConfigDefs.h @@ -43,6 +43,12 @@ #ifndef EPETRAEXT_CONFIGDEFS_H #define EPETRAEXT_CONFIGDEFS_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #ifndef __cplusplus #define __cplusplus #endif @@ -89,10 +95,3 @@ #include "Teuchos_CompilerCodeTweakMacros.hpp" #endif /* EPETRAEXT_CONFIGDEFS_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/EpetraExt_MMHelpers.h b/packages/epetraext/src/EpetraExt_MMHelpers.h index 40a9c2c4d76f..020c93c777ea 100644 --- a/packages/epetraext/src/EpetraExt_MMHelpers.h +++ b/packages/epetraext/src/EpetraExt_MMHelpers.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_MMHELPERS_H #define EPETRAEXT_MMHELPERS_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "EpetraExt_ConfigDefs.h" #include "Epetra_ConfigDefs.h" #include "Epetra_DistObject.h" @@ -534,11 +540,3 @@ void PrintMultiplicationStatistics(Epetra_Export * Transfer, const std::string & }//namespace EpetraExt #endif - - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/EpetraExt_MatrixMatrix.h b/packages/epetraext/src/EpetraExt_MatrixMatrix.h index 309716bbac1e..1fa7c947aab0 100644 --- a/packages/epetraext/src/EpetraExt_MatrixMatrix.h +++ b/packages/epetraext/src/EpetraExt_MatrixMatrix.h @@ -41,6 +41,12 @@ #ifndef EPETRAEXT_MATRIXMATRIX_H #define EPETRAEXT_MATRIXMATRIX_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_CrsMatrix; @@ -285,11 +291,3 @@ class MatrixMatrix { }//namespace EpetraExt #endif - - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/EpetraExt_ProductOperator.h b/packages/epetraext/src/EpetraExt_ProductOperator.h index e9eca74569da..d756cdc37779 100644 --- a/packages/epetraext/src/EpetraExt_ProductOperator.h +++ b/packages/epetraext/src/EpetraExt_ProductOperator.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_PRODUCT_OPERATOR_H #define EPETRAEXT_PRODUCT_OPERATOR_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "Epetra_Operator.h" #include "Teuchos_RCP.hpp" #include "Teuchos_BLAS_types.hpp" @@ -416,10 +422,3 @@ void ProductOperator::validateIndex(int k) const } // namespace EpetraExt #endif // EPETRAEXT_PRODUCT_OPERATOR_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/EpetraExt_Version.h b/packages/epetraext/src/EpetraExt_Version.h index bcb746c8d877..bd08eada0c77 100644 --- a/packages/epetraext/src/EpetraExt_Version.h +++ b/packages/epetraext/src/EpetraExt_Version.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_VERSION_H #define EpetraExt_VERSION_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "EpetraExt_ConfigDefs.h" #include "Trilinos_version.h" @@ -53,11 +59,3 @@ namespace EpetraExt { } // namespace EpetraExt #endif - - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/block/EpetraExt_BlockCrsMatrix.h b/packages/epetraext/src/block/EpetraExt_BlockCrsMatrix.h index d3567192221a..d33ee2ddafd6 100644 --- a/packages/epetraext/src/block/EpetraExt_BlockCrsMatrix.h +++ b/packages/epetraext/src/block/EpetraExt_BlockCrsMatrix.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_BLOCKCRSMATRIX_H #define EPETRAEXT_BLOCKCRSMATRIX_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include "Epetra_ConfigDefs.h" @@ -273,10 +279,3 @@ template<> inline std::vector< std::vector >& BlockCrsMatrix::TRowSte } //namespace EpetraExt #endif /* EPETRA_CRSMATRIX_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/block/EpetraExt_BlockDiagMatrix.h b/packages/epetraext/src/block/EpetraExt_BlockDiagMatrix.h index e73b4220ed91..3b82e385c24b 100644 --- a/packages/epetraext/src/block/EpetraExt_BlockDiagMatrix.h +++ b/packages/epetraext/src/block/EpetraExt_BlockDiagMatrix.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_BLOCKDIAGMATRIX_H #define EPETRAEXT_BLOCKDIAGMATRIX_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "Epetra_BLAS.h" #include "Epetra_LAPACK.h" #include "Epetra_DistObject.h" @@ -278,10 +284,3 @@ class EpetraExt_BlockDiagMatrix : public virtual Epetra_Operator, public Epetra_ }; /* EPETRAEXT_BLOCKDIAGMATRIX_H */ #endif - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/block/EpetraExt_BlockMultiVector.h b/packages/epetraext/src/block/EpetraExt_BlockMultiVector.h index 3e982043821c..bb9888ef38c6 100644 --- a/packages/epetraext/src/block/EpetraExt_BlockMultiVector.h +++ b/packages/epetraext/src/block/EpetraExt_BlockMultiVector.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_BLOCKMULTIVECTOR_H #define EPETRAEXT_BLOCKMULTIVECTOR_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "Epetra_MultiVector.h" #include "Teuchos_RCP.hpp" #include @@ -118,10 +124,3 @@ class BlockMultiVector: public Epetra_MultiVector { } //namespace EpetraExt #endif /* EPETRAEXT_BLOCKMULTIVECTOR_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/block/EpetraExt_BlockUtility.h b/packages/epetraext/src/block/EpetraExt_BlockUtility.h index 2b93fe6b7203..54a2bc4387d8 100644 --- a/packages/epetraext/src/block/EpetraExt_BlockUtility.h +++ b/packages/epetraext/src/block/EpetraExt_BlockUtility.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_BLOCKUTILITY_H #define EPETRAEXT_BLOCKUTILITY_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include @@ -160,10 +166,3 @@ class BlockUtility { } //namespace EpetraExt #endif /* EPETRA_CRSMATRIX_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/block/EpetraExt_BlockVector.h b/packages/epetraext/src/block/EpetraExt_BlockVector.h index fbe97f8dfe57..6b01cc3f8423 100644 --- a/packages/epetraext/src/block/EpetraExt_BlockVector.h +++ b/packages/epetraext/src/block/EpetraExt_BlockVector.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_BLOCKVECTOR_H #define EPETRAEXT_BLOCKVECTOR_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "Epetra_ConfigDefs.h" #include "Epetra_Vector.h" #include "Teuchos_RCP.hpp" @@ -136,10 +142,3 @@ class BlockVector: public Epetra_Vector { } //namespace EpetraExt #endif /* EPETRAEXT_BLOCKVECTOR_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/block/EpetraExt_MultiComm.h b/packages/epetraext/src/block/EpetraExt_MultiComm.h index af48ed10abf7..afa6f96c9a19 100644 --- a/packages/epetraext/src/block/EpetraExt_MultiComm.h +++ b/packages/epetraext/src/block/EpetraExt_MultiComm.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_MULTICOMM_H #define EPETRAEXT_MULTICOMM_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "EpetraExt_ConfigDefs.h" #include "Epetra_Comm.h" @@ -104,13 +110,3 @@ class MultiComm: public virtual Epetra_Comm { } //namespace EpetraExt #endif /* EPETRAEXT_MULTICOMM_H */ - - - - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/block/EpetraExt_MultiMpiComm.h b/packages/epetraext/src/block/EpetraExt_MultiMpiComm.h index cd40a5ff32b3..341f98c579b5 100644 --- a/packages/epetraext/src/block/EpetraExt_MultiMpiComm.h +++ b/packages/epetraext/src/block/EpetraExt_MultiMpiComm.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_MULTIMPICOMM_H #define EPETRAEXT_MULTIMPICOMM_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "EpetraExt_ConfigDefs.h" #include "EpetraExt_MultiComm.h" #include "Epetra_MpiComm.h" @@ -214,10 +220,3 @@ class MultiMpiComm: public EpetraExt::MultiComm, public Epetra_MpiComm, } //namespace EpetraExt #endif /* EPETRAEXT_MULTIMPICOMM_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/block/EpetraExt_MultiPointModelEvaluator.h b/packages/epetraext/src/block/EpetraExt_MultiPointModelEvaluator.h index 3ccfc7d6cb05..ae51b6c6cb10 100644 --- a/packages/epetraext/src/block/EpetraExt_MultiPointModelEvaluator.h +++ b/packages/epetraext/src/block/EpetraExt_MultiPointModelEvaluator.h @@ -44,6 +44,12 @@ #ifndef EPETRAEXT_MULTIPOINTMODELEVALUATOR_H #define EPETRAEXT_MULTIPOINTMODELEVALUATOR_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "Epetra_ConfigDefs.h" #include "EpetraExt_ModelEvaluator.h" #include "EpetraExt_BlockCrsMatrix.h" @@ -214,10 +220,3 @@ namespace EpetraExt { }; } #endif - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/block/EpetraExt_MultiSerialComm.h b/packages/epetraext/src/block/EpetraExt_MultiSerialComm.h index 4236eb82979f..057cb3207493 100644 --- a/packages/epetraext/src/block/EpetraExt_MultiSerialComm.h +++ b/packages/epetraext/src/block/EpetraExt_MultiSerialComm.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_MULTISERIALCOMM_H #define EPETRAEXT_MULTISERIALCOMM_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "EpetraExt_ConfigDefs.h" #include "EpetraExt_MultiComm.h" #include "Epetra_SerialComm.h" @@ -184,10 +190,3 @@ class MultiSerialComm: public EpetraExt::MultiComm { } //namespace EpetraExt #endif /* EPETRAEXT_MULTISERIALCOMM_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/block/EpetraExt_PointToBlockDiagPermute.h b/packages/epetraext/src/block/EpetraExt_PointToBlockDiagPermute.h index a0b68fcdc848..3387164d613f 100644 --- a/packages/epetraext/src/block/EpetraExt_PointToBlockDiagPermute.h +++ b/packages/epetraext/src/block/EpetraExt_PointToBlockDiagPermute.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_POINTTOBLOCKDIAGPERMUTE_H #define EPETRAEXT_POINTTOBLOCKDIAGPERMUTE_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "Epetra_ConfigDefs.h" #include "Epetra_DistObject.h" #include "Epetra_BlockMap.h" @@ -340,10 +346,3 @@ template<> inline long long*& EpetraExt_PointToBlockDiagPermute::Blockids_ref class Epetra_CrsGraph; @@ -101,10 +107,3 @@ class CrsGraph_BTF : public StructuralSameTypeTransform { } //namespace EpetraExt #endif //EpetraExt_CRSGRAPH_BTF_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/btf/EpetraExt_BTF_CrsMatrix.h b/packages/epetraext/src/btf/EpetraExt_BTF_CrsMatrix.h index 07bdf5b9ecef..f781e56e55b4 100644 --- a/packages/epetraext/src/btf/EpetraExt_BTF_CrsMatrix.h +++ b/packages/epetraext/src/btf/EpetraExt_BTF_CrsMatrix.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_CRSMATRIX_BTF_H #define EpetraExt_CRSMATRIX_BTF_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_CrsMatrix; @@ -91,10 +97,3 @@ class CrsMatrix_BTF : public SameTypeTransform { } //namespace EpetraExt #endif //EpetraExt_CRSMATRIX_BTF_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/btf/EpetraExt_BTF_LinearProblem.h b/packages/epetraext/src/btf/EpetraExt_BTF_LinearProblem.h index 5d4fdb3d6c55..7e6d54a5b760 100644 --- a/packages/epetraext/src/btf/EpetraExt_BTF_LinearProblem.h +++ b/packages/epetraext/src/btf/EpetraExt_BTF_LinearProblem.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_LINEARPROBLEM_BTF_H #define EpetraExt_LINEARPROBLEM_BTF_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include @@ -136,10 +142,3 @@ class LinearProblem_BTF : public SameTypeTransform { } //namespace EpetraExt #endif //EpetraExt_LINEARPROBLEM_BTF_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/btf/EpetraExt_BlockJacobi_LinearProblem.h b/packages/epetraext/src/btf/EpetraExt_BlockJacobi_LinearProblem.h index 7b966e089493..874d762fccc8 100644 --- a/packages/epetraext/src/btf/EpetraExt_BlockJacobi_LinearProblem.h +++ b/packages/epetraext/src/btf/EpetraExt_BlockJacobi_LinearProblem.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_BLOCKJACOBI_LINEARPROBLEM_H #define EPETRAEXT_BLOCKJACOBI_LINEARPROBLEM_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include @@ -109,10 +115,3 @@ class LinearProblem_BlockJacobi : public SameTypeTransform } //namespace EpetraExt #endif //EPETRAEXT_BLOCKJACOBI_LINEARPROBLEM_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/coloring/EpetraExt_MapColoring.h b/packages/epetraext/src/coloring/EpetraExt_MapColoring.h index bb6ecd10299b..9150c87e27e3 100644 --- a/packages/epetraext/src/coloring/EpetraExt_MapColoring.h +++ b/packages/epetraext/src/coloring/EpetraExt_MapColoring.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_CRSGRAPH_MAPCOLORING_H #define EpetraExt_CRSGRAPH_MAPCOLORING_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_CrsGraph; @@ -103,10 +109,3 @@ class CrsGraph_MapColoring : public StructuralTransform namespace EpetraExt { @@ -117,10 +123,3 @@ class CrsGraph_MapColoringIndex64 } //namespace EpetraExt #endif //EpetraExt_CRSGRAPH_MAPCOLORINGINDEX_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/coloring/EpetraExt_TCrsGraph_MapColoringIndex.h b/packages/epetraext/src/coloring/EpetraExt_TCrsGraph_MapColoringIndex.h index 28a6dfbf5b9f..f6aa59739d9a 100644 --- a/packages/epetraext/src/coloring/EpetraExt_TCrsGraph_MapColoringIndex.h +++ b/packages/epetraext/src/coloring/EpetraExt_TCrsGraph_MapColoringIndex.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_TCRSGRAPH_MAPCOLORINGINDEX_H #define EpetraExt_TCRSGRAPH_MAPCOLORINGINDEX_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include #include @@ -134,10 +140,3 @@ operator()( OriginalTypeRef orig ) } //namespace EpetraExt #endif // EpetraExt_TCRSGRAPH_MAPCOLORINGINDEX_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/distdir/EpetraExt_Directory.h b/packages/epetraext/src/distdir/EpetraExt_Directory.h index 536ea51cae1d..516f7a71067b 100644 --- a/packages/epetraext/src/distdir/EpetraExt_Directory.h +++ b/packages/epetraext/src/distdir/EpetraExt_Directory.h @@ -41,6 +41,12 @@ #ifndef EPETRAEXT_DIRECTORY_H #define EPETRAEXT_DIRECTORY_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + // ----------- Includes ---------- #include @@ -350,10 +356,3 @@ pushData_( DataMap const & sData, } //namespace EpetraExt #endif - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/distdir/EpetraExt_Migrate.h b/packages/epetraext/src/distdir/EpetraExt_Migrate.h index 7207708bf6ae..f430a0e6ab81 100644 --- a/packages/epetraext/src/distdir/EpetraExt_Migrate.h +++ b/packages/epetraext/src/distdir/EpetraExt_Migrate.h @@ -41,6 +41,12 @@ #ifndef EPETRAEXT_MIGRATE_H #define EPETRAEXT_MIGRATE_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + // ---------- Includes ---------- #include @@ -487,10 +493,3 @@ rvs( std::vector const & pList, } //namespace EpetraExt #endif - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/distdir/EpetraExt_PackTraits.h b/packages/epetraext/src/distdir/EpetraExt_PackTraits.h index cf549823ac5f..a5707e8bc862 100644 --- a/packages/epetraext/src/distdir/EpetraExt_PackTraits.h +++ b/packages/epetraext/src/distdir/EpetraExt_PackTraits.h @@ -41,6 +41,12 @@ #ifndef EPETRAEXT_PACKTRAITS_H #define EPETRAEXT_PACKTRAITS_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + // ---------- Standard Includes ---------- #include @@ -152,10 +158,3 @@ struct PackTraits< std::vector > } //namespace EpetraExt #endif - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/hypre/EpetraExt_HypreIJMatrix.h b/packages/epetraext/src/hypre/EpetraExt_HypreIJMatrix.h index 49010b551060..a0a17c474ad3 100644 --- a/packages/epetraext/src/hypre/EpetraExt_HypreIJMatrix.h +++ b/packages/epetraext/src/hypre/EpetraExt_HypreIJMatrix.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_HYPREIJMATRIX_H_ #define EPETRAEXT_HYPREIJMATRIX_H_ +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + // Trilinos source files #include "Epetra_Object.h" #include "Epetra_CompObject.h" @@ -455,10 +461,3 @@ class EpetraExt_HypreIJMatrix: public Epetra_BasicRowMatrix { bool *IsPrecondSetup_; }; #endif /* EPETRAEXT_HYPREIJMATRIX_H_ */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_BlockMapIn.h b/packages/epetraext/src/inout/EpetraExt_BlockMapIn.h index dbf4ebfeb63d..bd71146aef7a 100644 --- a/packages/epetraext/src/inout/EpetraExt_BlockMapIn.h +++ b/packages/epetraext/src/inout/EpetraExt_BlockMapIn.h @@ -41,6 +41,12 @@ #ifndef EPETRAEXT_BLOCKMAPIN_H #define EPETRAEXT_BLOCKMAPIN_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include class Epetra_Comm; @@ -141,10 +147,3 @@ namespace EpetraExt { } // namespace EpetraExt #endif /* EPETRAEXT_BLOCKMAPIN_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_BlockMapOut.h b/packages/epetraext/src/inout/EpetraExt_BlockMapOut.h index 6122097b804d..0a3cd5597307 100644 --- a/packages/epetraext/src/inout/EpetraExt_BlockMapOut.h +++ b/packages/epetraext/src/inout/EpetraExt_BlockMapOut.h @@ -41,6 +41,12 @@ #ifndef EPETRAEXT_BLOCKMAPOUT_H #define EPETRAEXT_BLOCKMAPOUT_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include class Epetra_BlockMap; @@ -96,10 +102,3 @@ namespace EpetraExt { } // namespace EpetraExt #endif /* EPETRAEXT_BLOCKMAPOUT_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_CrsMatrixIn.h b/packages/epetraext/src/inout/EpetraExt_CrsMatrixIn.h index 38f49233bc85..d379273448ef 100644 --- a/packages/epetraext/src/inout/EpetraExt_CrsMatrixIn.h +++ b/packages/epetraext/src/inout/EpetraExt_CrsMatrixIn.h @@ -40,6 +40,12 @@ //@HEADER #ifndef EPETRAEXT_CRSMATRIXIN_H #define EPETRAEXT_CRSMATRIXIN_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include #include class Epetra_Comm; @@ -266,10 +272,3 @@ must be integer values and in those in the third column must be floating point f #endif } // namespace EpetraExt #endif /* EPETRAEXT_CRSMATRIXIN_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_DistArray.h b/packages/epetraext/src/inout/EpetraExt_DistArray.h index b73e17d76b3e..ca162a47bbc0 100644 --- a/packages/epetraext/src/inout/EpetraExt_DistArray.h +++ b/packages/epetraext/src/inout/EpetraExt_DistArray.h @@ -44,6 +44,12 @@ #ifndef EPETRAEXT_DISTARRAY_H #define EPETRAEXT_DISTARRAY_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "EpetraExt_ConfigDefs.h" #include "EpetraExt_Exception.h" #include "Epetra_Map.h" @@ -354,10 +360,3 @@ COO(i, j) = 1.24 } // namespace EpetraExt #endif - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_Exception.h b/packages/epetraext/src/inout/EpetraExt_Exception.h index 81d62c45a41e..ffe2940eb1e9 100644 --- a/packages/epetraext/src/inout/EpetraExt_Exception.h +++ b/packages/epetraext/src/inout/EpetraExt_Exception.h @@ -44,6 +44,12 @@ #ifndef EPETRAEXT_EXCEPTION #define EPETRAEXT_EXCEPTION +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "EpetraExt_ConfigDefs.h" #include @@ -99,10 +105,3 @@ class Exception } // namespace EpetraExt #endif - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_HDF5.h b/packages/epetraext/src/inout/EpetraExt_HDF5.h index a32093630813..7c74d4b20b94 100644 --- a/packages/epetraext/src/inout/EpetraExt_HDF5.h +++ b/packages/epetraext/src/inout/EpetraExt_HDF5.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_HDF5_H #define EPETRAEXT_HDF5_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "EpetraExt_ConfigDefs.h" #ifdef HAVE_EPETRAEXT_HDF5 @@ -630,10 +636,3 @@ class HDF5 } #endif #endif /* EPETRAEXT_HDF5_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_HDF5_Handle.h b/packages/epetraext/src/inout/EpetraExt_HDF5_Handle.h index 6fad1c806af9..8d0e9bf99e71 100644 --- a/packages/epetraext/src/inout/EpetraExt_HDF5_Handle.h +++ b/packages/epetraext/src/inout/EpetraExt_HDF5_Handle.h @@ -41,6 +41,12 @@ #ifndef EPETRAEXT_HDF5_HANDLE_H #define EPETRAEXT_HDF5_HANDLE_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include "EpetraExt_ConfigDefs.h" #ifdef HAVE_EPETRAEXT_HDF5 @@ -207,10 +213,3 @@ class Epetra_Vector_Handle : public Handle } // namespace EpetraExt #endif #endif /* EPETRAEXT_HDF5_HANDLE_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_MultiVectorIn.h b/packages/epetraext/src/inout/EpetraExt_MultiVectorIn.h index 5ab86d012720..6f83015cdd7b 100644 --- a/packages/epetraext/src/inout/EpetraExt_MultiVectorIn.h +++ b/packages/epetraext/src/inout/EpetraExt_MultiVectorIn.h @@ -40,6 +40,12 @@ //@HEADER #ifndef EPETRAEXT_MULTIVECTORIN_H #define EPETRAEXT_MULTIVECTORIN_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include class Epetra_MultiVector; class Epetra_BlockMap; @@ -63,10 +69,3 @@ namespace EpetraExt { } // namespace EpetraExt #endif /* EPETRAEXT_MULTIVECTORIN_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_MultiVectorOut.h b/packages/epetraext/src/inout/EpetraExt_MultiVectorOut.h index 5e7b6eb14823..23068718cb78 100644 --- a/packages/epetraext/src/inout/EpetraExt_MultiVectorOut.h +++ b/packages/epetraext/src/inout/EpetraExt_MultiVectorOut.h @@ -40,6 +40,12 @@ //@HEADER #ifndef EPETRAEXT_MULTIVECTOROUT_H #define EPETRAEXT_MULTIVECTOROUT_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include class Epetra_MultiVector; namespace EpetraExt { @@ -125,10 +131,3 @@ namespace EpetraExt { } // namespace EpetraExt #endif /* EPETRAEXT_MULTIVECTOROUT_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_OperatorOut.h b/packages/epetraext/src/inout/EpetraExt_OperatorOut.h index de20b02c08c7..f7f152747949 100644 --- a/packages/epetraext/src/inout/EpetraExt_OperatorOut.h +++ b/packages/epetraext/src/inout/EpetraExt_OperatorOut.h @@ -40,6 +40,12 @@ //@HEADER #ifndef EPETRAEXT_OPERATOROUT_H #define EPETRAEXT_OPERATOROUT_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include class Epetra_Operator; class Epetra_MultiVector; @@ -135,10 +141,3 @@ namespace EpetraExt { } // namespace EpetraExt #endif /* EPETRAEXT_OPERATOROUT_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_RowMatrixOut.h b/packages/epetraext/src/inout/EpetraExt_RowMatrixOut.h index c1b012068069..b8c7f03409a8 100644 --- a/packages/epetraext/src/inout/EpetraExt_RowMatrixOut.h +++ b/packages/epetraext/src/inout/EpetraExt_RowMatrixOut.h @@ -40,6 +40,12 @@ //@HEADER #ifndef EPETRAEXT_ROWMATRIXOUT_H #define EPETRAEXT_ROWMATRIXOUT_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include class Epetra_RowMatrix; @@ -129,10 +135,3 @@ namespace EpetraExt { } // namespace EpetraExt #endif /* EPETRAEXT_ROWMATRIXOUT_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_Utils.h b/packages/epetraext/src/inout/EpetraExt_Utils.h index 9d7c89b7af0d..84599eeda318 100644 --- a/packages/epetraext/src/inout/EpetraExt_Utils.h +++ b/packages/epetraext/src/inout/EpetraExt_Utils.h @@ -44,6 +44,12 @@ #ifndef EPETRAEXT_UTILS_H #define EPETRAEXT_UTILS_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + namespace EpetraExt { std::string toString(const int& x); @@ -52,10 +58,3 @@ namespace EpetraExt } #endif - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_VectorIn.h b/packages/epetraext/src/inout/EpetraExt_VectorIn.h index e35088621fa3..c239e0d0e0a5 100644 --- a/packages/epetraext/src/inout/EpetraExt_VectorIn.h +++ b/packages/epetraext/src/inout/EpetraExt_VectorIn.h @@ -40,6 +40,12 @@ //@HEADER #ifndef EPETRAEXT_VECTORIN_H #define EPETRAEXT_VECTORIN_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include class Epetra_Comm; class Epetra_Vector; @@ -64,10 +70,3 @@ namespace EpetraExt { } // namespace EpetraExt #endif /* EPETRAEXT_VECTORIN_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_VectorOut.h b/packages/epetraext/src/inout/EpetraExt_VectorOut.h index bf89028b8635..35a774bbdecb 100644 --- a/packages/epetraext/src/inout/EpetraExt_VectorOut.h +++ b/packages/epetraext/src/inout/EpetraExt_VectorOut.h @@ -40,6 +40,12 @@ //@HEADER #ifndef EPETRAEXT_VECTOROUT_H #define EPETRAEXT_VECTOROUT_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include class Epetra_Vector; @@ -129,10 +135,3 @@ namespace EpetraExt { } // namespace EpetraExt #endif /* EPETRAEXT_VECTOROUT_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_XMLReader.h b/packages/epetraext/src/inout/EpetraExt_XMLReader.h index 59c3a65572e7..6b2afd47806b 100644 --- a/packages/epetraext/src/inout/EpetraExt_XMLReader.h +++ b/packages/epetraext/src/inout/EpetraExt_XMLReader.h @@ -44,6 +44,12 @@ #ifndef EPETRAEXT_XMLREADER_H #define EPETRAEXT_XMLREADER_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "EpetraExt_ConfigDefs.h" #include "Epetra_ConfigDefs.h" #include "Teuchos_RCP.hpp" @@ -182,10 +188,3 @@ class XMLReader } // namespace EpetraExt #endif - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_XMLWriter.h b/packages/epetraext/src/inout/EpetraExt_XMLWriter.h index 308a4af7879c..e2c74a6fdf93 100644 --- a/packages/epetraext/src/inout/EpetraExt_XMLWriter.h +++ b/packages/epetraext/src/inout/EpetraExt_XMLWriter.h @@ -44,6 +44,12 @@ #ifndef EPETRAEXT_XMLWRITER_H #define EPETRAEXT_XMLWRITER_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "EpetraExt_ConfigDefs.h" #include "Teuchos_RCP.hpp" #include @@ -220,10 +226,3 @@ class XMLWriter } // namespace EpetraExt #endif - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_mmio.h b/packages/epetraext/src/inout/EpetraExt_mmio.h index b7520f930257..d1724688d25b 100644 --- a/packages/epetraext/src/inout/EpetraExt_mmio.h +++ b/packages/epetraext/src/inout/EpetraExt_mmio.h @@ -55,6 +55,12 @@ #ifndef MM_IO_H #define MM_IO_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #define MM_MAX_LINE_LENGTH 1025 #define MatrixMarketBanner "%%MatrixMarket" #define MM_MAX_TOKEN_LENGTH 64 @@ -183,10 +189,3 @@ int mm_read_unsymmetric_sparse(const char *fname, int *M_, int *N_, int *nz_, } // namespace EpetraExt #endif - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/inout/EpetraExt_readEpetraLinearSystem.h b/packages/epetraext/src/inout/EpetraExt_readEpetraLinearSystem.h index 4d74a4dcd5b7..083a897a78f8 100644 --- a/packages/epetraext/src/inout/EpetraExt_readEpetraLinearSystem.h +++ b/packages/epetraext/src/inout/EpetraExt_readEpetraLinearSystem.h @@ -42,6 +42,12 @@ #ifndef EPETRAEXT_READ_EPETRA_LINEAR_SYSTEM_H #define EPETRAEXT_READ_EPETRA_LINEAR_SYSTEM_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "Epetra_ConfigDefs.h" #include "Epetra_Map.h" #include "Epetra_CrsMatrix.h" @@ -99,10 +105,3 @@ void readEpetraLinearSystem64( } // namespace EpetraExt #endif // EPETRAEXT_READ_EPETRA_LINEAR_SYSTEM_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/matlab/EpetraExt_MatlabEngine.h b/packages/epetraext/src/matlab/EpetraExt_MatlabEngine.h index f56b823e9b52..3afd33ceee3a 100644 --- a/packages/epetraext/src/matlab/EpetraExt_MatlabEngine.h +++ b/packages/epetraext/src/matlab/EpetraExt_MatlabEngine.h @@ -41,6 +41,12 @@ #ifndef MATLAB_ENGINE_H #define MATLAB_ENGINE_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include #ifdef EPETRA_MPI @@ -393,10 +399,3 @@ class EpetraExt_MatlabEngine { } // namespace EpetraExt #endif /* MATLAB_ENGINE_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/matlab/EpetraExt_PutBlockMap.h b/packages/epetraext/src/matlab/EpetraExt_PutBlockMap.h index 7334a0fee220..ef6b82b17696 100644 --- a/packages/epetraext/src/matlab/EpetraExt_PutBlockMap.h +++ b/packages/epetraext/src/matlab/EpetraExt_PutBlockMap.h @@ -41,6 +41,12 @@ #ifndef PUT_ROWBLOCKMAP_H #define PUT_ROWBLOCKMAP_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include #ifdef EPETRA_MPI @@ -67,10 +73,3 @@ namespace Matlab { } // namespace Matlab #endif /* PUT_ROWBLOCKMAP_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/matlab/EpetraExt_PutMultiVector.h b/packages/epetraext/src/matlab/EpetraExt_PutMultiVector.h index 379f4feae1a5..6252c537b717 100644 --- a/packages/epetraext/src/matlab/EpetraExt_PutMultiVector.h +++ b/packages/epetraext/src/matlab/EpetraExt_PutMultiVector.h @@ -41,6 +41,12 @@ #ifndef PUT_MULTIVECTOR_H #define PUT_MULTIVECTOR_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include #ifdef EPETRA_MPI @@ -66,10 +72,3 @@ namespace Matlab { } // namespace Matlab #endif /* PUT_MULTIVECTOR_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/matlab/EpetraExt_PutRowMatrix.h b/packages/epetraext/src/matlab/EpetraExt_PutRowMatrix.h index fe203baa0c77..f31a33190d40 100644 --- a/packages/epetraext/src/matlab/EpetraExt_PutRowMatrix.h +++ b/packages/epetraext/src/matlab/EpetraExt_PutRowMatrix.h @@ -41,6 +41,12 @@ #ifndef PUT_ROWMATRIX_H #define PUT_ROWMATRIX_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include #ifdef EPETRA_MPI @@ -66,10 +72,3 @@ namespace Matlab { } // namespace Matlab #endif /* PUT_ROWMATRIX_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/model_evaluator/EpetraExt_ModelEvaluator.h b/packages/epetraext/src/model_evaluator/EpetraExt_ModelEvaluator.h index 8d917e7d91ee..2c75f0e29e45 100644 --- a/packages/epetraext/src/model_evaluator/EpetraExt_ModelEvaluator.h +++ b/packages/epetraext/src/model_evaluator/EpetraExt_ModelEvaluator.h @@ -42,6 +42,12 @@ #ifndef EPETRA_EXT_MODEL_EVALUATOR_HPP #define EPETRA_EXT_MODEL_EVALUATOR_HPP +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "EpetraExt_ConfigDefs.h" #include "EpetraExt_PolynomialVectorTraits.h" #include "Teuchos_RCP.hpp" @@ -2378,10 +2384,3 @@ void ModelEvaluator::OutArgsSetup::set_DgDp_mp_properties( int j, int l, const D } // namespace EpetraExt #endif // EPETRA_EXT_MODEL_EVALUATOR_HPP - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/model_evaluator/EpetraExt_ModelEvaluatorScalingTools.h b/packages/epetraext/src/model_evaluator/EpetraExt_ModelEvaluatorScalingTools.h index 80a6cd5b633f..68debe94f102 100644 --- a/packages/epetraext/src/model_evaluator/EpetraExt_ModelEvaluatorScalingTools.h +++ b/packages/epetraext/src/model_evaluator/EpetraExt_ModelEvaluatorScalingTools.h @@ -42,6 +42,12 @@ #ifndef EPETRA_EXT_MODEL_EVALUATOR_SCALING_TOOLS_H #define EPETRA_EXT_MODEL_EVALUATOR_SCALING_TOOLS_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "EpetraExt_ModelEvaluator.h" #include "Teuchos_Utils.hpp" @@ -729,10 +735,3 @@ class OutArgsGetterSetter_g { #endif // EPETRA_EXT_MODEL_EVALUATOR_SCALING_TOOLS_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/model_evaluator/EpetraExt_PolynomialVectorTraits.h b/packages/epetraext/src/model_evaluator/EpetraExt_PolynomialVectorTraits.h index 70fffc53fd46..769e033d7b1b 100644 --- a/packages/epetraext/src/model_evaluator/EpetraExt_PolynomialVectorTraits.h +++ b/packages/epetraext/src/model_evaluator/EpetraExt_PolynomialVectorTraits.h @@ -42,6 +42,12 @@ #ifndef EPETRA_EXT_POLYNOMIAL_VECTOR_TRAITS_H #define EPETRA_EXT_POLYNOMIAL_VECTOR_TRAITS_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "Teuchos_PolynomialTraits.hpp" #include "Teuchos_RCP.hpp" #include "Epetra_Vector.h" @@ -90,10 +96,3 @@ namespace Teuchos { } // namespace Teuchos #endif // EPETRA_EXT_POLYNOMIAL_VECTOR_TRAITS_Hx - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/petsc/EpetraExt_PETScAIJMatrix.h b/packages/epetraext/src/petsc/EpetraExt_PETScAIJMatrix.h index 9ea6551d7869..a66e08b3973f 100644 --- a/packages/epetraext/src/petsc/EpetraExt_PETScAIJMatrix.h +++ b/packages/epetraext/src/petsc/EpetraExt_PETScAIJMatrix.h @@ -49,6 +49,12 @@ #ifndef _EPETRAEXT_PETSCAIJMATRIX_H_ #define _EPETRAEXT_PETSCAIJMATRIX_H_ +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "Epetra_Object.h" #include "Epetra_CompObject.h" #include "Epetra_RowMatrix.h" @@ -417,10 +423,3 @@ class Epetra_PETScAIJMatrix: public Epetra_Object, public Epetra_CompObject, pub //Epetra_PETScAIJMatrix(const Epetra_PETScAIJMatrix & Matrix) {(void)Matrix;} }; #endif /* _EPETRAEXT_PETSCAIJMATRIX_H_ */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/restrict/EpetraExt_RestrictedCrsMatrixWrapper.h b/packages/epetraext/src/restrict/EpetraExt_RestrictedCrsMatrixWrapper.h index 00e651c6fd67..d4b89805b3ab 100644 --- a/packages/epetraext/src/restrict/EpetraExt_RestrictedCrsMatrixWrapper.h +++ b/packages/epetraext/src/restrict/EpetraExt_RestrictedCrsMatrixWrapper.h @@ -41,6 +41,12 @@ #ifndef EPETRAEXT_RESTRICTEDCRSMATRIXWRAPPER_H #define EPETRAEXT_RESTRICTEDCRSMATRIXWRAPPER_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include #include #include @@ -115,10 +121,3 @@ class RestrictedCrsMatrixWrapper{ #endif #endif /* EPETRAEXT_RESTRICTEDCRSMATRIXWRAPPER_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/restrict/EpetraExt_RestrictedMultiVectorWrapper.h b/packages/epetraext/src/restrict/EpetraExt_RestrictedMultiVectorWrapper.h index 894b319eaca9..2381f36d3f7c 100644 --- a/packages/epetraext/src/restrict/EpetraExt_RestrictedMultiVectorWrapper.h +++ b/packages/epetraext/src/restrict/EpetraExt_RestrictedMultiVectorWrapper.h @@ -41,6 +41,12 @@ #ifndef EPETRAEXT_RESTRICTEDMULTIVECTORWRAPPER_H #define EPETRAEXT_RESTRICTEDMULTIVECTORWRAPPER_H + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include #include #include @@ -124,10 +130,3 @@ class RestrictedMultiVectorWrapper{ #endif #endif /* EPETRAEXT_RESTRICTEDMULTIVECTORWRAPPER_H */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_AMD_CrsGraph.h b/packages/epetraext/src/transform/EpetraExt_AMD_CrsGraph.h index 20f7edd51fc3..e345f5cea5c3 100644 --- a/packages/epetraext/src/transform/EpetraExt_AMD_CrsGraph.h +++ b/packages/epetraext/src/transform/EpetraExt_AMD_CrsGraph.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_CRSGRAPH_AMD_H #define EpetraExt_CRSGRAPH_AMD_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_CrsGraph; @@ -87,10 +93,3 @@ class CrsGraph_AMD : public StructuralSameTypeTransform { } //namespace EpetraExt #endif //EpetraExt_CRSGRAPH_AMD_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_BlockAdjacencyGraph.h b/packages/epetraext/src/transform/EpetraExt_BlockAdjacencyGraph.h index 6307470ca866..741086e67bac 100644 --- a/packages/epetraext/src/transform/EpetraExt_BlockAdjacencyGraph.h +++ b/packages/epetraext/src/transform/EpetraExt_BlockAdjacencyGraph.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_BLOCK_ADJACENCY_GRAPH_H #define EpetraExt_BLOCK_ADJACENCY_GRAPH_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + class Epetra_CrsGraph; #include @@ -97,10 +103,3 @@ class BlockAdjacencyGraph { } //namespace EpetraExt #endif //EpetraExt_BLOCK_ADJACENCY_GRAPH_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_CrsSingletonFilter_LinearProblem.h b/packages/epetraext/src/transform/EpetraExt_CrsSingletonFilter_LinearProblem.h index e9385e4f28cb..7c2893362b7b 100644 --- a/packages/epetraext/src/transform/EpetraExt_CrsSingletonFilter_LinearProblem.h +++ b/packages/epetraext/src/transform/EpetraExt_CrsSingletonFilter_LinearProblem.h @@ -42,6 +42,12 @@ #ifndef _EpetraExt_LINEARPROBLEM_CRSSINGLETONFILTER_H_ #define _EpetraExt_LINEARPROBLEM_CRSSINGLETONFILTER_H_ +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" #include "Epetra_CrsMatrix.h" @@ -351,10 +357,3 @@ class LinearProblem_CrsSingletonFilter : public SameTypeTransform #include @@ -95,11 +101,3 @@ class CrsMatrix_Dirichlet : public InPlaceTransform } //namespace EpetraExt #endif //EpetraExt_CRSMATRIX_DIRICHLET_H - - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Dirichlet_Vector.h b/packages/epetraext/src/transform/EpetraExt_Dirichlet_Vector.h index 0833dbecdb74..b35ba35412d5 100644 --- a/packages/epetraext/src/transform/EpetraExt_Dirichlet_Vector.h +++ b/packages/epetraext/src/transform/EpetraExt_Dirichlet_Vector.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_VECTOR_DIRICHLET_H #define EpetraExt_VECTOR_DIRICHLET_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include @@ -91,11 +97,3 @@ class Vector_Dirichlet : public InPlaceTransform } //namespace EpetraExt #endif //EpetraExt_VECTOR_DIRICHLET_H - - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_LPTrans_From_GraphTrans.h b/packages/epetraext/src/transform/EpetraExt_LPTrans_From_GraphTrans.h index 974f89900270..9fa1abdb8d6e 100644 --- a/packages/epetraext/src/transform/EpetraExt_LPTrans_From_GraphTrans.h +++ b/packages/epetraext/src/transform/EpetraExt_LPTrans_From_GraphTrans.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_LINEARPROBLEM_GRAPHTRANS_H #define EpetraExt_LINEARPROBLEM_GRAPHTRANS_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_LinearProblem; @@ -121,11 +127,3 @@ class LinearProblem_GraphTrans : public SameTypeTransform } //namespace EpetraExt #endif //EpetraExt_LINEARPROBLEM_GRAPHTRANS_H - - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_LPTrans_From_MatrixTrans.h b/packages/epetraext/src/transform/EpetraExt_LPTrans_From_MatrixTrans.h index 3ebaccacd11e..397393b17966 100644 --- a/packages/epetraext/src/transform/EpetraExt_LPTrans_From_MatrixTrans.h +++ b/packages/epetraext/src/transform/EpetraExt_LPTrans_From_MatrixTrans.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_LINEARPROBLEM_MATRIXTRANS_H #define EpetraExt_LINEARPROBLEM_MATRIXTRANS_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_LinearProblem; @@ -110,11 +116,3 @@ class LinearProblem_MatrixTrans : public SameTypeTransform } //namespace EpetraExt #endif //EpetraExt_LINEARPROBLEM_MATRIXTRANS_H - - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Overlap_CrsGraph.h b/packages/epetraext/src/transform/EpetraExt_Overlap_CrsGraph.h index f316b29086f8..833837394b7e 100644 --- a/packages/epetraext/src/transform/EpetraExt_Overlap_CrsGraph.h +++ b/packages/epetraext/src/transform/EpetraExt_Overlap_CrsGraph.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_CRSGRAPH_OVERLAP_H #define EpetraExt_CRSGRAPH_OVERLAP_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_BlockMap; @@ -87,10 +93,3 @@ class CrsGraph_Overlap : public StructuralSameTypeTransform { } //namespace EpetraExt #endif //EpetraExt_CRSGRAPH_OVERLAP_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Permutation.h b/packages/epetraext/src/transform/EpetraExt_Permutation.h index 59fa8a51e436..a33909eaf2dc 100644 --- a/packages/epetraext/src/transform/EpetraExt_Permutation.h +++ b/packages/epetraext/src/transform/EpetraExt_Permutation.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_PERMUTATION_H #define EpetraExt_PERMUTATION_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include @@ -285,11 +291,3 @@ class Permutation64 : public TPermutation { #include #endif - - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Permutation_impl.h b/packages/epetraext/src/transform/EpetraExt_Permutation_impl.h index ad11620b0631..95be65e95cff 100644 --- a/packages/epetraext/src/transform/EpetraExt_Permutation_impl.h +++ b/packages/epetraext/src/transform/EpetraExt_Permutation_impl.h @@ -41,6 +41,12 @@ #ifndef EpetraExt_PERMUTATION_IMPL_H #define EpetraExt_PERMUTATION_IMPL_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include @@ -594,10 +600,3 @@ TPermutation::operator()( typename TPermutation::Input } // namespace EpetraExt #endif //EpetraExt_PERMUTATION_IMPL_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Reindex_CrsMatrix.h b/packages/epetraext/src/transform/EpetraExt_Reindex_CrsMatrix.h index d0ecd4665864..02214ad0291e 100644 --- a/packages/epetraext/src/transform/EpetraExt_Reindex_CrsMatrix.h +++ b/packages/epetraext/src/transform/EpetraExt_Reindex_CrsMatrix.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_CRSMATRIX_REINDEX_H #define EpetraExt_CRSMATRIX_REINDEX_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_CrsMatrix; @@ -89,10 +95,3 @@ class CrsMatrix_Reindex : public ViewTransform { } //namespace EpetraExt #endif //EpetraExt_CRSMATRIX_REINDEX_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Reindex_LinearProblem.h b/packages/epetraext/src/transform/EpetraExt_Reindex_LinearProblem.h index 9184bc317c0d..ea6e19a5d9e6 100644 --- a/packages/epetraext/src/transform/EpetraExt_Reindex_LinearProblem.h +++ b/packages/epetraext/src/transform/EpetraExt_Reindex_LinearProblem.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_LINEARPROBLEM_REINDEX_H #define EpetraExt_LINEARPROBLEM_REINDEX_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_Map; @@ -96,11 +102,3 @@ class LinearProblem_Reindex : public ViewTransform } //namespace EpetraExt #endif //EpetraExt_LINEARPROBLEM_REINDEX_H - - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Reindex_LinearProblem2.h b/packages/epetraext/src/transform/EpetraExt_Reindex_LinearProblem2.h index 421f94f96e26..eafb446a80ae 100644 --- a/packages/epetraext/src/transform/EpetraExt_Reindex_LinearProblem2.h +++ b/packages/epetraext/src/transform/EpetraExt_Reindex_LinearProblem2.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_LINEARPROBLEM_REINDEX2_H #define EpetraExt_LINEARPROBLEM_REINDEX2_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_Map; @@ -98,11 +104,3 @@ class LinearProblem_Reindex2 : public ViewTransform } //namespace EpetraExt #endif //EpetraExt_LINEARPROBLEM_REINDEX_H - - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Reindex_MultiVector.h b/packages/epetraext/src/transform/EpetraExt_Reindex_MultiVector.h index f461ae9bee60..43547a17c3bc 100644 --- a/packages/epetraext/src/transform/EpetraExt_Reindex_MultiVector.h +++ b/packages/epetraext/src/transform/EpetraExt_Reindex_MultiVector.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_MULTIVECTOR_REINDEX_H #define EpetraExt_MULTIVECTOR_REINDEX_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_MultiVector; @@ -82,10 +88,3 @@ class MultiVector_Reindex : public ViewTransform { } //namespace EpetraExt #endif //EpetraExt_MULTIVECTOR_REINDEX_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Scale_LinearProblem.h b/packages/epetraext/src/transform/EpetraExt_Scale_LinearProblem.h index 1deaa864e31b..06362f4473fd 100644 --- a/packages/epetraext/src/transform/EpetraExt_Scale_LinearProblem.h +++ b/packages/epetraext/src/transform/EpetraExt_Scale_LinearProblem.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_LINEARPROBLEM_SCALE_H #define EpetraExt_LINEARPROBLEM_SCALE_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include @@ -107,11 +113,3 @@ class LinearProblem_Scale : public InPlaceTransform } //namespace EpetraExt #endif //EpetraExt_LINEARPROBLEM_SCALE_H - - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_SolverMap_CrsMatrix.h b/packages/epetraext/src/transform/EpetraExt_SolverMap_CrsMatrix.h index 6b5df15d34dc..ee63d6497d63 100644 --- a/packages/epetraext/src/transform/EpetraExt_SolverMap_CrsMatrix.h +++ b/packages/epetraext/src/transform/EpetraExt_SolverMap_CrsMatrix.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_CRSMATRIX_SOLVERMAP_H #define EpetraExt_CRSMATRIX_SOLVERMAP_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_CrsMatrix; @@ -91,10 +97,3 @@ class CrsMatrix_SolverMap : public StructuralSameTypeTransform } //namespace EpetraExt #endif //EpetraExt_CRSMATRIX_SOLVERMAP_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_SolverMap_LinearProblem.h b/packages/epetraext/src/transform/EpetraExt_SolverMap_LinearProblem.h index 91b577511885..1980ad02f5a0 100644 --- a/packages/epetraext/src/transform/EpetraExt_SolverMap_LinearProblem.h +++ b/packages/epetraext/src/transform/EpetraExt_SolverMap_LinearProblem.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_LINEARPROBLEM_SOLVERMAP_H #define EpetraExt_LINEARPROBLEM_SOLVERMAP_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include @@ -79,11 +85,3 @@ class LinearProblem_SolverMap : public StructuralSameTypeTransform class Epetra_LinearProblem; @@ -161,10 +167,3 @@ class LinearProblem_StaticCondensation : public SameTypeTransform #include @@ -99,10 +105,3 @@ class CrsMatrix_SubCopy : public SameTypeTransform { } //namespace EpetraExt #endif //EpetraExt_CRSGRAPH_SUBCOPY_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_SymmRCM_CrsGraph.h b/packages/epetraext/src/transform/EpetraExt_SymmRCM_CrsGraph.h index 47a77dbff8bf..f93ec027046f 100644 --- a/packages/epetraext/src/transform/EpetraExt_SymmRCM_CrsGraph.h +++ b/packages/epetraext/src/transform/EpetraExt_SymmRCM_CrsGraph.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_CRSGRAPH_SYMMRCM_H #define EpetraExt_CRSGRAPH_SYMMRCM_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include @@ -109,10 +115,3 @@ struct CrsGraph_SymmRCM : public StructuralSameTypeTransform { } //namespace EpetraExt #endif //EpetraExt_CRSGRAPH_SYMMRCM_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Transform.h b/packages/epetraext/src/transform/EpetraExt_Transform.h index 220e30c24186..8435438063aa 100644 --- a/packages/epetraext/src/transform/EpetraExt_Transform.h +++ b/packages/epetraext/src/transform/EpetraExt_Transform.h @@ -46,6 +46,12 @@ #ifndef EPETRAEXT_TRANSFORM_H #define EPETRAEXT_TRANSFORM_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include @@ -315,10 +321,3 @@ class ViewTransform : public SameTypeTransform } //namespace EpetraExt #endif //EPETRAEXT_TRANSFORM_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Transform_Composite.h b/packages/epetraext/src/transform/EpetraExt_Transform_Composite.h index 2fa0df49f378..dc0a652f1bb8 100644 --- a/packages/epetraext/src/transform/EpetraExt_Transform_Composite.h +++ b/packages/epetraext/src/transform/EpetraExt_Transform_Composite.h @@ -46,6 +46,12 @@ #ifndef EPETRAEXT_TRANSFORM_COMPOSITE_H #define EPETRAEXT_TRANSFORM_COMPOSITE_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include #include @@ -180,10 +186,3 @@ rvs() } //namespace EpetraExt #endif //EPETRAEXT_TRANSFORM_COMPOSITE_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Transpose_CrsGraph.h b/packages/epetraext/src/transform/EpetraExt_Transpose_CrsGraph.h index 4a0a7f70d4f7..78ba840829c1 100644 --- a/packages/epetraext/src/transform/EpetraExt_Transpose_CrsGraph.h +++ b/packages/epetraext/src/transform/EpetraExt_Transpose_CrsGraph.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_CRSGRAPH_TRANSPOSE_H #define EpetraExt_CRSGRAPH_TRANSPOSE_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_CrsGraph; @@ -74,10 +80,3 @@ class CrsGraph_Transpose : public StructuralSameTypeTransform { } //namespace EpetraExt #endif //EpetraExt_CRSGRAPH_TRANSPOSE_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_Transpose_RowMatrix.h b/packages/epetraext/src/transform/EpetraExt_Transpose_RowMatrix.h index 2a829c04586c..7741e1809242 100644 --- a/packages/epetraext/src/transform/EpetraExt_Transpose_RowMatrix.h +++ b/packages/epetraext/src/transform/EpetraExt_Transpose_RowMatrix.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_CRSMATRIX_TRANSPOSE_H #define EpetraExt_CRSMATRIX_TRANSPOSE_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_RowMatrix; @@ -117,10 +123,3 @@ class RowMatrix_Transpose : public SameTypeTransform } //namespace EpetraExt #endif //EpetraExt_ROWMATRIX_TRANSPOSE_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_View_CrsGraph.h b/packages/epetraext/src/transform/EpetraExt_View_CrsGraph.h index c346bae9a4a9..cdfeca8dccff 100644 --- a/packages/epetraext/src/transform/EpetraExt_View_CrsGraph.h +++ b/packages/epetraext/src/transform/EpetraExt_View_CrsGraph.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_CRSGRAPH_VIEW_H #define EpetraExt_CRSGRAPH_VIEW_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_CrsGraph; @@ -75,10 +81,3 @@ class CrsGraph_View : public ViewTransform { } //namespace EpetraExt #endif //EpetraExt_CRSGRAPH_VIEW_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_View_CrsMatrix.h b/packages/epetraext/src/transform/EpetraExt_View_CrsMatrix.h index 17a18dd9c2d5..647b54b1893d 100644 --- a/packages/epetraext/src/transform/EpetraExt_View_CrsMatrix.h +++ b/packages/epetraext/src/transform/EpetraExt_View_CrsMatrix.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_CRSMATRIX_VIEW_H #define EpetraExt_CRSMATRIX_VIEW_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_CrsGraph; @@ -75,10 +81,3 @@ class CrsMatrix_View : public ViewTransform { } //namespace EpetraExt #endif //EpetraExt_CRSMATRIX_VIEW_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/src/transform/EpetraExt_View_MultiVector.h b/packages/epetraext/src/transform/EpetraExt_View_MultiVector.h index ed23c1341f11..3fc3fa2634f7 100644 --- a/packages/epetraext/src/transform/EpetraExt_View_MultiVector.h +++ b/packages/epetraext/src/transform/EpetraExt_View_MultiVector.h @@ -42,6 +42,12 @@ #ifndef EpetraExt_MULTIVECTOR_VIEW_H #define EpetraExt_MULTIVECTOR_VIEW_H +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + #include class Epetra_MultiVector; @@ -79,10 +85,3 @@ class MultiVector_View : public ViewTransform { } //namespace EpetraExt #endif //EpetraExt_MULTIVECTOR_VIEW_H - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/test/epetra_test_err.h b/packages/epetraext/test/epetra_test_err.h index 3a2fd7119a52..40fe4c5d5fc6 100644 --- a/packages/epetraext/test/epetra_test_err.h +++ b/packages/epetraext/test/epetra_test_err.h @@ -49,6 +49,12 @@ error the way that an assert command does. */ #ifndef _EPETRA_TEST_ERR_H_ #define _EPETRA_TEST_ERR_H_ + +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif #include using namespace std; // This function is to be used when first identifying an error. @@ -62,10 +68,3 @@ using namespace std; } #endif /*_EPETRA_TEST_ERR_H_ */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/test/inout/Poisson2dOperator.h b/packages/epetraext/test/inout/Poisson2dOperator.h index 6b2deb93bfd3..f79d2057cd2b 100644 --- a/packages/epetraext/test/inout/Poisson2dOperator.h +++ b/packages/epetraext/test/inout/Poisson2dOperator.h @@ -43,6 +43,12 @@ #ifndef _POISSON2DOPERATOR_H_ #define _POISSON2DOPERATOR_H_ +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + class Epetra_MultiVector; class Epetra_CrsMatrix; class Epetra_Map; @@ -165,10 +171,3 @@ class Poisson2dOperator: public virtual Epetra_Operator { }; #endif /* _POISSON2DOPERATOR_H_ */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/epetraext/test/inout_LL/Poisson2dOperator.h b/packages/epetraext/test/inout_LL/Poisson2dOperator.h index 905950a69a9e..fdce21b22e84 100644 --- a/packages/epetraext/test/inout_LL/Poisson2dOperator.h +++ b/packages/epetraext/test/inout_LL/Poisson2dOperator.h @@ -43,6 +43,12 @@ #ifndef _POISSON2DOPERATOR_H_ #define _POISSON2DOPERATOR_H_ +#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The EpetraExt package is deprecated" +#endif +#endif + class Epetra_MultiVector; class Epetra_CrsMatrix; class Epetra_Map; @@ -164,10 +170,3 @@ class Poisson2dOperator: public virtual Epetra_Operator { }; #endif /* _POISSON2DOPERATOR_H_ */ - -#if defined(EpetraExt_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The EpetraExt package is deprecated" -#endif -#endif - diff --git a/packages/framework/pr_tools/PullRequestLinuxDriver.sh b/packages/framework/pr_tools/PullRequestLinuxDriver.sh index 9ad02d82228b..ab4b1fdf0fc9 100755 --- a/packages/framework/pr_tools/PullRequestLinuxDriver.sh +++ b/packages/framework/pr_tools/PullRequestLinuxDriver.sh @@ -170,7 +170,7 @@ sig_merge_old=$(get_md5sum ${REPO_ROOT:?}/packages/framework/pr_tools/PullReques if [[ ${on_kokkos_develop} == "1" ]]; then message_std "PRDriver> --kokkos-develop is set - setting kokkos and kokkos-kernels packages to current develop and pointing at them" "${SCRIPTPATH}"/SetKokkosDevelop.sh - extra_configure_args="\"-DKokkos_SOURCE_DIR_OVERRIDE:string=kokkos;-DKokkosKernels_SOURCE_DIR_OVERRIDE:string=kokkos-kernels\"${extra_configure_args:+;${extra_configure_args}}" + extra_configure_args="-DKokkos_SOURCE_DIR_OVERRIDE:string=kokkos;-DKokkosKernels_SOURCE_DIR_OVERRIDE:string=kokkos-kernels${extra_configure_args:+;${extra_configure_args}}" else print_banner "Merge Source into Target" message_std "PRDriver> " "TRILINOS_SOURCE_SHA: ${TRILINOS_SOURCE_SHA:?}" diff --git a/packages/framework/pr_tools/PullRequestLinuxDriverTest.py b/packages/framework/pr_tools/PullRequestLinuxDriverTest.py index 10a391f1cf18..73caa76a1c62 100755 --- a/packages/framework/pr_tools/PullRequestLinuxDriverTest.py +++ b/packages/framework/pr_tools/PullRequestLinuxDriverTest.py @@ -292,6 +292,7 @@ def parse_args(): print("| - [O] workspace-dir : {workspace_dir}".format(**vars(arguments))) print("| - [O] extra_configure_args : {extra_configure_args}".format(**vars(arguments))) print("| - [O] dashboard_build_name : {dashboard_build_name}".format(**vars(arguments))) + print("| - [O] use_explicit_cachefile : {use_explicit_cachefile}".format(**vars(arguments))) #print("| - [O] : {}".format(**vars(arguments))) print("+" + "="*78 + "+") diff --git a/packages/framework/pr_tools/trilinosprhelpers/TrilinosPRConfigurationStandard.py b/packages/framework/pr_tools/trilinosprhelpers/TrilinosPRConfigurationStandard.py index 1c44b18a2893..401824ea8b6d 100644 --- a/packages/framework/pr_tools/trilinosprhelpers/TrilinosPRConfigurationStandard.py +++ b/packages/framework/pr_tools/trilinosprhelpers/TrilinosPRConfigurationStandard.py @@ -77,7 +77,7 @@ def execute_test(self): f"-Dpackage_enables:FILEPATH={self.arg_filename_packageenables}", f"-Dsubprojects_file:FILEPATH={self.arg_filename_subprojects}", f"-DCTEST_DROP_SITE:STRING={self.arg_ctest_drop_site}", - "-DUSE_EXPLICIT_TRILINOS_CACHEFILE:BOOL=" + "ON" if self.arg_use_explicit_cachefile else "OFF", + "-DUSE_EXPLICIT_TRILINOS_CACHEFILE:BOOL=" + ("ON" if self.arg_use_explicit_cachefile else "OFF"), ] if self.arg_extra_configure_args: diff --git a/packages/galeri/src-pfem/Galeri_core_Object.h b/packages/galeri/src-pfem/Galeri_core_Object.h index e65e479b6987..7d78e7c5deb5 100644 --- a/packages/galeri/src-pfem/Galeri_core_Object.h +++ b/packages/galeri/src-pfem/Galeri_core_Object.h @@ -125,4 +125,3 @@ inline ostream& operator<<(ostream& os, const Object& obj) }; // namespace Galeri #endif - diff --git a/packages/galeri/src-pfem/Galeri_grid_Hex.h b/packages/galeri/src-pfem/Galeri_grid_Hex.h index 542ff574c3c5..3c2987e204ee 100644 --- a/packages/galeri/src-pfem/Galeri_grid_Hex.h +++ b/packages/galeri/src-pfem/Galeri_grid_Hex.h @@ -53,5 +53,3 @@ class Hex : public Element } // namespace grid } // namespace Galeri #endif - - diff --git a/packages/galeri/src-pfem/Galeri_grid_Tet.h b/packages/galeri/src-pfem/Galeri_grid_Tet.h index 444915b6974f..40b8ffb6f929 100644 --- a/packages/galeri/src-pfem/Galeri_grid_Tet.h +++ b/packages/galeri/src-pfem/Galeri_grid_Tet.h @@ -51,4 +51,3 @@ class Tet : public Element } // namespace grid } // namespace Galeri #endif - diff --git a/packages/galeri/src-pfem/Galeri_problem_ScalarLaplacian.h b/packages/galeri/src-pfem/Galeri_problem_ScalarLaplacian.h index 81d143bbe5b5..8580b0891ee0 100644 --- a/packages/galeri/src-pfem/Galeri_problem_ScalarLaplacian.h +++ b/packages/galeri/src-pfem/Galeri_problem_ScalarLaplacian.h @@ -420,4 +420,3 @@ class ScalarLaplacian : public Base } // namespace problem } // namespace Galeri #endif - diff --git a/packages/galeri/src-pfem/Galeri_problem_VectorLaplacian.h b/packages/galeri/src-pfem/Galeri_problem_VectorLaplacian.h index 52c9a460c935..e756152bbd00 100644 --- a/packages/galeri/src-pfem/Galeri_problem_VectorLaplacian.h +++ b/packages/galeri/src-pfem/Galeri_problem_VectorLaplacian.h @@ -523,4 +523,3 @@ class VectorLaplacian // FIXME????? : public Base } // namespace problem } // namespace Galeri #endif - diff --git a/packages/galeri/src-pfem/Galeri_quadrature_Hex.h b/packages/galeri/src-pfem/Galeri_quadrature_Hex.h index 526ee0ce207f..a9459b3e8830 100644 --- a/packages/galeri/src-pfem/Galeri_quadrature_Hex.h +++ b/packages/galeri/src-pfem/Galeri_quadrature_Hex.h @@ -204,5 +204,3 @@ class Hex : public Element } // namespace Galeri #endif - - diff --git a/packages/galeri/src-pfem/Galeri_quadrature_Quad.h b/packages/galeri/src-pfem/Galeri_quadrature_Quad.h index dc0f526e7061..2aea44d83271 100644 --- a/packages/galeri/src-pfem/Galeri_quadrature_Quad.h +++ b/packages/galeri/src-pfem/Galeri_quadrature_Quad.h @@ -194,4 +194,3 @@ class Quad : public Element } // namespace Galeri #endif - diff --git a/packages/galeri/src-pfem/Galeri_quadrature_Segment.h b/packages/galeri/src-pfem/Galeri_quadrature_Segment.h index 509dddbaf6eb..5de1b3382fae 100644 --- a/packages/galeri/src-pfem/Galeri_quadrature_Segment.h +++ b/packages/galeri/src-pfem/Galeri_quadrature_Segment.h @@ -158,4 +158,3 @@ class Segment : public Element } // namespace Galeri #endif - diff --git a/packages/galeri/src-pfem/Galeri_quadrature_Tet.h b/packages/galeri/src-pfem/Galeri_quadrature_Tet.h index b49101f9ca51..8d631895e788 100644 --- a/packages/galeri/src-pfem/Galeri_quadrature_Tet.h +++ b/packages/galeri/src-pfem/Galeri_quadrature_Tet.h @@ -170,6 +170,3 @@ class Tet : public Element } // namespace Galeri #endif - - - diff --git a/packages/ifpack/src/CMakeLists.txt b/packages/ifpack/src/CMakeLists.txt index 0d0f320f675b..b5d2da5d1347 100644 --- a/packages/ifpack/src/CMakeLists.txt +++ b/packages/ifpack/src/CMakeLists.txt @@ -16,9 +16,9 @@ TRIBITS_CONFIGURE_FILE(${PACKAGE_NAME}_config.h) # Parse the Hypre headers IF (${PACKAGE_NAME}_ENABLE_HYPRE) - IF (PYTHON_EXECUTABLE) + IF (Python3_EXECUTABLE) EXECUTE_PROCESS( - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/../utils/parseHypre.py ${HYPRE_INCLUDE_DIRS} Ifpack_HypreParameterMap.h + COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/../utils/parseHypre.py ${HYPRE_INCLUDE_DIRS} Ifpack_HypreParameterMap.h WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" RESULT_VARIABLE RETURN_VALUE OUTPUT_STRIP_TRAILING_WHITESPACE diff --git a/packages/ifpack/src/Ifpack.h b/packages/ifpack/src/Ifpack.h index 49d56ee155cd..5a8e31503f2b 100644 --- a/packages/ifpack/src/Ifpack.h +++ b/packages/ifpack/src/Ifpack.h @@ -43,6 +43,12 @@ #ifndef IFPACK_H #define IFPACK_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Preconditioner.h" @@ -284,10 +290,3 @@ TEUCHOS_ENUM_INPUT_STREAM_OPERATOR(Ifpack::EPrecType) #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_AMDReordering.h b/packages/ifpack/src/Ifpack_AMDReordering.h index 851311fb2116..cd6f79352087 100644 --- a/packages/ifpack/src/Ifpack_AMDReordering.h +++ b/packages/ifpack/src/Ifpack_AMDReordering.h @@ -43,6 +43,12 @@ #ifndef IFPACK_AMDREORDERING_H #define IFPACK_AMDREORDERING_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Reordering.h" @@ -128,10 +134,3 @@ class Ifpack_AMDReordering : public Ifpack_Reordering { }; #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_AdditiveSchwarz.h b/packages/ifpack/src/Ifpack_AdditiveSchwarz.h index 2c57231cdf61..4976d524a46c 100644 --- a/packages/ifpack/src/Ifpack_AdditiveSchwarz.h +++ b/packages/ifpack/src/Ifpack_AdditiveSchwarz.h @@ -44,6 +44,12 @@ #ifndef IFPACK_ADDITIVESCHWARZ_H #define IFPACK_ADDITIVESCHWARZ_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Preconditioner.h" #include "Ifpack_ConfigDefs.h" @@ -1233,10 +1239,3 @@ Condest(const Ifpack_CondestType CT, const int MaxIters, } #endif // IFPACK_ADDITIVESCHWARZ_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Amesos.h b/packages/ifpack/src/Ifpack_Amesos.h index b3c7bd61c1c3..8b2ba1c3d3b6 100644 --- a/packages/ifpack/src/Ifpack_Amesos.h +++ b/packages/ifpack/src/Ifpack_Amesos.h @@ -43,6 +43,12 @@ #ifndef IFPACK_AMESOS_H #define IFPACK_AMESOS_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Preconditioner.h" #include "Epetra_Operator.h" @@ -416,10 +422,3 @@ class Ifpack_Amesos : public Ifpack_Preconditioner { }; #endif // IFPACK_AMESOS_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_BlockRelaxation.h b/packages/ifpack/src/Ifpack_BlockRelaxation.h index 136f0da1863c..b65e2fe00aa1 100644 --- a/packages/ifpack/src/Ifpack_BlockRelaxation.h +++ b/packages/ifpack/src/Ifpack_BlockRelaxation.h @@ -44,6 +44,12 @@ #ifndef IFPACK_BLOCKPRECONDITIONER_H #define IFPACK_BLOCKPRECONDITIONER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Preconditioner.h" #include "Ifpack_Partitioner.h" @@ -1305,10 +1311,3 @@ int Ifpack_BlockRelaxation::Initialize() //============================================================================== #endif // IFPACK_BLOCKPRECONDITIONER_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Chebyshev.h b/packages/ifpack/src/Ifpack_Chebyshev.h index 3ed2d4605fde..053e55bc1cd1 100644 --- a/packages/ifpack/src/Ifpack_Chebyshev.h +++ b/packages/ifpack/src/Ifpack_Chebyshev.h @@ -43,6 +43,12 @@ #ifndef IFPACK_CHEBYSHEV_H #define IFPACK_CHEBYSHEV_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Preconditioner.h" #include "Teuchos_RefCountPtr.hpp" @@ -441,10 +447,3 @@ class Ifpack_Chebyshev : public Ifpack_Preconditioner { #endif // IFPACK_CHEBYSHEV_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Condest.h b/packages/ifpack/src/Ifpack_Condest.h index fed359feeee3..8ff3a8be5d9c 100644 --- a/packages/ifpack/src/Ifpack_Condest.h +++ b/packages/ifpack/src/Ifpack_Condest.h @@ -43,6 +43,12 @@ #ifndef IFPACK_CONDEST_H #define IFPACK_CONDEST_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_CondestType.h" class Ifpack_Preconditioner; @@ -55,10 +61,3 @@ double Ifpack_Condest(const Ifpack_Preconditioner& IFP, Epetra_RowMatrix* Matrix = 0); #endif // IFPACK_CONDEST_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_CondestType.h b/packages/ifpack/src/Ifpack_CondestType.h index 7b5c48f18dfa..f58013b5f3d1 100644 --- a/packages/ifpack/src/Ifpack_CondestType.h +++ b/packages/ifpack/src/Ifpack_CondestType.h @@ -43,6 +43,12 @@ #ifndef IFPACK_CONDESTTYPE_H #define IFPACK_CONDESTTYPE_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + //! Ifpack_CondestType: enum to define the type of condition number estimate. enum Ifpack_CondestType { @@ -52,10 +58,3 @@ enum Ifpack_CondestType { }; #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_ConfigDefs.h b/packages/ifpack/src/Ifpack_ConfigDefs.h index 5d62680bf38e..4935cc4f4f24 100644 --- a/packages/ifpack/src/Ifpack_ConfigDefs.h +++ b/packages/ifpack/src/Ifpack_ConfigDefs.h @@ -43,6 +43,12 @@ #ifndef _IFPACK_CONFIGDEFS_H_ #define _IFPACK_CONFIGDEFS_H_ +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + /* * The macros PACKAGE, PACKAGE_NAME, etc, get defined for each package and need to * be undef'd here to avoid warnings when this file is included from another package. @@ -162,10 +168,3 @@ #define IFPACK_ABS(x) (((x) > 0.0) ? (x) : (-x)) /* abs function */ #endif /*_IFPACK_CONFIGDEFS_H_*/ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Container.h b/packages/ifpack/src/Ifpack_Container.h index d1567a5bdddd..16e1e1458758 100644 --- a/packages/ifpack/src/Ifpack_Container.h +++ b/packages/ifpack/src/Ifpack_Container.h @@ -43,6 +43,12 @@ #ifndef IFPACK_CONTAINER_H #define IFPACK_CONTAINER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + class Epetra_RowMatrix; class Ifpack_Partitioner; namespace Teuchos { @@ -179,10 +185,3 @@ inline std::ostream& operator<<(std::ostream& os, const Ifpack_Container& obj) } #endif // IFPACK_CONTAINER_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_CrsGraph.h b/packages/ifpack/src/Ifpack_CrsGraph.h index 5502b409cdc6..746210f37f9a 100644 --- a/packages/ifpack/src/Ifpack_CrsGraph.h +++ b/packages/ifpack/src/Ifpack_CrsGraph.h @@ -43,6 +43,12 @@ #ifndef _IFPACK_CrsGRAPH_H_ #define _IFPACK_CrsGRAPH_H_ +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + class Ifpack_CrsGraph { public: @@ -57,10 +63,3 @@ class Ifpack_CrsGraph }; #endif // _IFPACK_CrsGRAPH_H_ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_CrsIlut.h b/packages/ifpack/src/Ifpack_CrsIlut.h index 52d935dd863a..d0f92a24fd80 100644 --- a/packages/ifpack/src/Ifpack_CrsIlut.h +++ b/packages/ifpack/src/Ifpack_CrsIlut.h @@ -43,6 +43,12 @@ #ifndef IFPACK_CRSILUT_H #define IFPACK_CRSILUT_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_ScalingType.h" #include "Ifpack_OverlapGraph.h" @@ -138,10 +144,3 @@ class Ifpack_CrsIlut: public Epetra_Object, public Epetra_CompObject, public Ifp }; #endif /* IFPACK_CRSILUT_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_CrsRick.h b/packages/ifpack/src/Ifpack_CrsRick.h index deb9a5adb513..2f40fe6a1d01 100644 --- a/packages/ifpack/src/Ifpack_CrsRick.h +++ b/packages/ifpack/src/Ifpack_CrsRick.h @@ -43,6 +43,12 @@ #ifndef _IFPACK_CRSRICK_H_ #define _IFPACK_CRSRICK_H_ +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ScalingType.h" #include "Ifpack_IlukGraph.h" #include "Epetra_CompObject.h" @@ -475,10 +481,3 @@ class Ifpack_CrsRick: public Epetra_Object, public Epetra_CompObject, public vir std::ostream& operator << (std::ostream& os, const Ifpack_CrsRick& A); #endif /* _IFPACK_CRSRICK_H_ */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_CrsRiluk.h b/packages/ifpack/src/Ifpack_CrsRiluk.h index 9dc4337ff2f0..4b18d11a4e7e 100644 --- a/packages/ifpack/src/Ifpack_CrsRiluk.h +++ b/packages/ifpack/src/Ifpack_CrsRiluk.h @@ -43,6 +43,12 @@ #ifndef _IFPACK_CRSRILUK_H_ #define _IFPACK_CRSRILUK_H_ +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_ScalingType.h" #include "Ifpack_IlukGraph.h" @@ -520,10 +526,3 @@ class Ifpack_CrsRiluk: public Epetra_Object, public Epetra_CompObject, public vi std::ostream& operator << (std::ostream& os, const Ifpack_CrsRiluk& A); #endif /* _IFPACK_CRSRILUK_H_ */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_DenseContainer.h b/packages/ifpack/src/Ifpack_DenseContainer.h index 44460d5c01f1..dd5307afe62e 100644 --- a/packages/ifpack/src/Ifpack_DenseContainer.h +++ b/packages/ifpack/src/Ifpack_DenseContainer.h @@ -43,6 +43,12 @@ #ifndef IFPACK_DENSECONTAINER_H #define IFPACK_DENSECONTAINER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Container.h" #include "Epetra_SerialDenseMatrix.h" @@ -378,10 +384,3 @@ class Ifpack_DenseContainer : public Ifpack_Container { }; #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_DiagPreconditioner.h b/packages/ifpack/src/Ifpack_DiagPreconditioner.h index f0887e4a246e..9bcbf4a560f6 100644 --- a/packages/ifpack/src/Ifpack_DiagPreconditioner.h +++ b/packages/ifpack/src/Ifpack_DiagPreconditioner.h @@ -43,6 +43,12 @@ #ifndef IFPACK_DIAG_PRECONDITIONER_H #define IFPACK_DIAG_PRECONDITIONER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Epetra_Operator.h" #include "Epetra_Vector.h" @@ -134,10 +140,3 @@ class Ifpack_DiagPreconditioner : public Epetra_Operator }; #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_DiagonalFilter.h b/packages/ifpack/src/Ifpack_DiagonalFilter.h index 2880f5155657..d70352072991 100644 --- a/packages/ifpack/src/Ifpack_DiagonalFilter.h +++ b/packages/ifpack/src/Ifpack_DiagonalFilter.h @@ -43,6 +43,12 @@ #ifndef IFPACK_DIAGONALFILTER_H #define IFPACK_DIAGONALFILTER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Epetra_ConfigDefs.h" #include "Epetra_RowMatrix.h" @@ -313,10 +319,3 @@ class Ifpack_DiagonalFilter : public virtual Epetra_RowMatrix { #endif /* IFPACK_DIAGONALFILTER_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_DropFilter.h b/packages/ifpack/src/Ifpack_DropFilter.h index 43f300e40718..83a5b1b5651d 100644 --- a/packages/ifpack/src/Ifpack_DropFilter.h +++ b/packages/ifpack/src/Ifpack_DropFilter.h @@ -43,6 +43,12 @@ #ifndef IFPACK_DROPFILTER_H #define IFPACK_DROPFILTER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Epetra_RowMatrix.h" #include "Teuchos_RefCountPtr.hpp" @@ -299,10 +305,3 @@ class Ifpack_DropFilter : public virtual Epetra_RowMatrix { #endif /* IFPACK_DROPFILTER_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_DynamicFactory.h b/packages/ifpack/src/Ifpack_DynamicFactory.h index 3143b1eb8fe1..29b5e0d44219 100644 --- a/packages/ifpack/src/Ifpack_DynamicFactory.h +++ b/packages/ifpack/src/Ifpack_DynamicFactory.h @@ -30,6 +30,12 @@ #ifndef IFPACK_DYNAMIC_FACTORY_H #define IFPACK_DYNAMIC_FACTORY_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include #include #include @@ -132,10 +138,3 @@ Ifpack_DynamicFactory::buildPreconditioner(Epetra_RowMatrix* Matrix, } #endif // IFPACK_DYNAMIC_FACTORY_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_EquationPartitioner.h b/packages/ifpack/src/Ifpack_EquationPartitioner.h index 9eaf3cdc897e..77ba6886c7cb 100644 --- a/packages/ifpack/src/Ifpack_EquationPartitioner.h +++ b/packages/ifpack/src/Ifpack_EquationPartitioner.h @@ -43,6 +43,12 @@ #ifndef IFPACK_EQUATIONPARTITIONER_H #define IFPACK_EQUATIONPARTITIONER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Partitioner.h" #include "Ifpack_OverlappingPartitioner.h" @@ -94,10 +100,3 @@ class Ifpack_EquationPartitioner : public Ifpack_OverlappingPartitioner { }; #endif // IFPACK_EQUATIONPARTITIONER_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Euclid.h b/packages/ifpack/src/Ifpack_Euclid.h index 87529fafadc7..29491b268bc9 100644 --- a/packages/ifpack/src/Ifpack_Euclid.h +++ b/packages/ifpack/src/Ifpack_Euclid.h @@ -43,6 +43,12 @@ #ifndef IFPACK_EUCLID_H #define IFPACK_EUCLID_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #ifdef HAVE_EUCLID @@ -349,10 +355,3 @@ std::ostream& operator << (std::ostream& os, const Ifpack_Euclid& A); #endif // HAVE_EUCLID #endif /* IFPACK_EUCLID_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Graph.h b/packages/ifpack/src/Ifpack_Graph.h index 0ada3bea72b7..ff1d195f2391 100644 --- a/packages/ifpack/src/Ifpack_Graph.h +++ b/packages/ifpack/src/Ifpack_Graph.h @@ -42,6 +42,12 @@ #ifndef IFPACK_GRAPH_H #define IFPACK_GRAPH_H + +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif class Epetra_Comm; //! Ifpack_Graph: a pure virtual class that defines graphs for IFPACK. @@ -139,10 +145,3 @@ inline std::ostream& operator<<(std::ostream& os, const Ifpack_Graph& obj) } #endif // iFPACK_GRAPH_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Graph_Epetra_CrsGraph.h b/packages/ifpack/src/Ifpack_Graph_Epetra_CrsGraph.h index e9ab75eeede4..227a2a05c9d1 100644 --- a/packages/ifpack/src/Ifpack_Graph_Epetra_CrsGraph.h +++ b/packages/ifpack/src/Ifpack_Graph_Epetra_CrsGraph.h @@ -42,6 +42,12 @@ #ifndef IFPACK_EPETRA_CRSGRAPH_H #define IFPACK_EPETRA_CRSGRAPH_H + +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif #include "Ifpack_ConfigDefs.h" #include "Ifpack_Graph.h" #include "Epetra_CrsGraph.h" @@ -178,10 +184,3 @@ class Ifpack_Graph_Epetra_CrsGraph : public Ifpack_Graph { }; #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Graph_Epetra_RowMatrix.h b/packages/ifpack/src/Ifpack_Graph_Epetra_RowMatrix.h index 65a495a50d14..646e1082f28c 100644 --- a/packages/ifpack/src/Ifpack_Graph_Epetra_RowMatrix.h +++ b/packages/ifpack/src/Ifpack_Graph_Epetra_RowMatrix.h @@ -43,6 +43,12 @@ #ifndef IFPACK_GRAPH_EPETRA_ROWMATRIX_H #define IFPACK_GRAPH_EPETRA_ROWMATRIX_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Graph.h" #include "Epetra_RowMatrix.h" @@ -184,10 +190,3 @@ class Ifpack_Graph_Epetra_RowMatrix : public Ifpack_Graph { }; #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_GreedyPartitioner.h b/packages/ifpack/src/Ifpack_GreedyPartitioner.h index 9474480246ae..2a825e53eae6 100644 --- a/packages/ifpack/src/Ifpack_GreedyPartitioner.h +++ b/packages/ifpack/src/Ifpack_GreedyPartitioner.h @@ -43,6 +43,12 @@ #ifndef IFPACK_GREEDYPARTITIONER_H #define IFPACK_GREEDYPARTITIONER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Partitioner.h" #include "Ifpack_OverlappingPartitioner.h" @@ -86,10 +92,3 @@ class Ifpack_GreedyPartitioner : public Ifpack_OverlappingPartitioner { }; // class Ifpack_GreedyPartitioner #endif // IFPACK_GREEDYPARTITIONER_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_HIPS.h b/packages/ifpack/src/Ifpack_HIPS.h index 929271c5e76d..07cc21c7b8a7 100644 --- a/packages/ifpack/src/Ifpack_HIPS.h +++ b/packages/ifpack/src/Ifpack_HIPS.h @@ -43,6 +43,12 @@ #ifndef IFPACK_HIPS_H #define IFPACK_HIPS_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #ifdef HAVE_IFPACK_HIPS @@ -369,10 +375,3 @@ class Ifpack_HIPS: public Ifpack_Preconditioner { #endif #endif /* IFPACK_HIPS_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_HashTable.h b/packages/ifpack/src/Ifpack_HashTable.h index 946dfda9a0f8..ec5d7fce571b 100644 --- a/packages/ifpack/src/Ifpack_HashTable.h +++ b/packages/ifpack/src/Ifpack_HashTable.h @@ -52,6 +52,12 @@ #ifndef IFPACK_HASHTABLE_H #define IFPACK_HASHTABLE_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" // ============================================================================ @@ -274,10 +280,3 @@ class Ifpack_HashTable64 : public TIfpack_HashTable }; #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Hypre.h b/packages/ifpack/src/Ifpack_Hypre.h index 82c030bd2a49..75366b1974ac 100644 --- a/packages/ifpack/src/Ifpack_Hypre.h +++ b/packages/ifpack/src/Ifpack_Hypre.h @@ -43,6 +43,12 @@ #ifndef IFPACK_HYPRE_H #define IFPACK_HYPRE_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #ifdef HAVE_HYPRE @@ -649,10 +655,3 @@ class Ifpack_Hypre: public Ifpack_Preconditioner { #endif // HAVE_HYPRE #endif /* IFPACK_HYPRE_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_IC.h b/packages/ifpack/src/Ifpack_IC.h index b56112bef9ad..c582b5f84d24 100644 --- a/packages/ifpack/src/Ifpack_IC.h +++ b/packages/ifpack/src/Ifpack_IC.h @@ -43,6 +43,12 @@ #ifndef IFPACK_IC_H #define IFPACK_IC_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_CondestType.h" #include "Ifpack_ScalingType.h" @@ -381,10 +387,3 @@ class Ifpack_IC: public Ifpack_Preconditioner { }; #endif /* IFPACK_IC_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_ICT.h b/packages/ifpack/src/Ifpack_ICT.h index 29b5570a4abc..0ac32835912f 100644 --- a/packages/ifpack/src/Ifpack_ICT.h +++ b/packages/ifpack/src/Ifpack_ICT.h @@ -43,6 +43,12 @@ #ifndef IFPACK_ICT_H #define IFPACK_ICT_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_CondestType.h" #include "Ifpack_ScalingType.h" @@ -399,10 +405,3 @@ class Ifpack_ICT: public Ifpack_Preconditioner { }; #endif /* IFPACK_ICT_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_IC_Utils.h b/packages/ifpack/src/Ifpack_IC_Utils.h index 0e9685ec1eef..a2bd178f8ad2 100644 --- a/packages/ifpack/src/Ifpack_IC_Utils.h +++ b/packages/ifpack/src/Ifpack_IC_Utils.h @@ -43,6 +43,12 @@ #ifndef IFPACK_IC_UTILS_H #define IFPACK_IC_UTILS_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + typedef struct { double *val; /* also known as A */ int *col; /* also known as JA; first column is column 0 */ @@ -73,10 +79,3 @@ void crout_ict( #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_IHSS.h b/packages/ifpack/src/Ifpack_IHSS.h index 09bbf80aca84..cbce03185a49 100644 --- a/packages/ifpack/src/Ifpack_IHSS.h +++ b/packages/ifpack/src/Ifpack_IHSS.h @@ -43,6 +43,12 @@ #ifndef IFPACK_IHSS_H #define IFPACK_IHSS_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Preconditioner.h" @@ -392,10 +398,3 @@ class Ifpack_IHSS: public Ifpack_Preconditioner { #endif #endif /* IFPACK_IHSS_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_IKLU.h b/packages/ifpack/src/Ifpack_IKLU.h index ae47a9cfc797..389794fcfcc1 100644 --- a/packages/ifpack/src/Ifpack_IKLU.h +++ b/packages/ifpack/src/Ifpack_IKLU.h @@ -43,6 +43,12 @@ #ifndef IFPACK_IKLU_H #define IFPACK_IKLU_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_CondestType.h" #include "Ifpack_ScalingType.h" @@ -396,10 +402,3 @@ class Ifpack_IKLU: public Ifpack_Preconditioner { }; // Ifpack_IKLU #endif /* IFPACK_IKLU_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_IKLU_Utils.h b/packages/ifpack/src/Ifpack_IKLU_Utils.h index 4ae6911c9e04..57503f07d170 100644 --- a/packages/ifpack/src/Ifpack_IKLU_Utils.h +++ b/packages/ifpack/src/Ifpack_IKLU_Utils.h @@ -43,6 +43,12 @@ #ifndef IFPACK_IKLU_UTILS_H #define IFPACK_IKLU_UTILS_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include #include #include @@ -162,10 +168,3 @@ int csr_fkeep (csr *A, int (*fkeep) (int, int, double, void *), void *other); #define CS_TRIPLET(A) (A && (A->nz >= 0)) #endif // IFPACK_IKLU_UTILS_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_ILU.h b/packages/ifpack/src/Ifpack_ILU.h index e98a490daff9..a7c4f6a8d0fc 100644 --- a/packages/ifpack/src/Ifpack_ILU.h +++ b/packages/ifpack/src/Ifpack_ILU.h @@ -43,6 +43,12 @@ #ifndef IFPACK_ILU_H #define IFPACK_ILU_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Preconditioner.h" #include "Ifpack_Condest.h" @@ -449,10 +455,3 @@ class Ifpack_ILU: public Ifpack_Preconditioner { }; #endif /* IFPACK_ILU_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_ILUT.h b/packages/ifpack/src/Ifpack_ILUT.h index 367e979fd624..c7f21941a459 100644 --- a/packages/ifpack/src/Ifpack_ILUT.h +++ b/packages/ifpack/src/Ifpack_ILUT.h @@ -43,6 +43,12 @@ #ifndef IFPACK_ILUT_H #define IFPACK_ILUT_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_CondestType.h" #include "Ifpack_ScalingType.h" @@ -391,10 +397,3 @@ class Ifpack_ILUT: public Ifpack_Preconditioner { }; // Ifpack_ILUT #endif /* IFPACK_ILUT_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_IlukGraph.h b/packages/ifpack/src/Ifpack_IlukGraph.h index 4be9d8496f1d..61d63f1cfac4 100644 --- a/packages/ifpack/src/Ifpack_IlukGraph.h +++ b/packages/ifpack/src/Ifpack_IlukGraph.h @@ -43,6 +43,12 @@ #ifndef _IFPACK_ILUK_GRAPH_H_ #define _IFPACK_ILUK_GRAPH_H_ +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Epetra_Object.h" #include "Epetra_CrsGraph.h" @@ -292,10 +298,3 @@ class Ifpack_IlukGraph { std::ostream& operator << (std::ostream& os, const Ifpack_IlukGraph& A); #endif /* _IFPACK_ILUK_GRAPH_H_ */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Krylov.h b/packages/ifpack/src/Ifpack_Krylov.h index 44b12bdb58fe..27518b41cb06 100644 --- a/packages/ifpack/src/Ifpack_Krylov.h +++ b/packages/ifpack/src/Ifpack_Krylov.h @@ -43,6 +43,12 @@ #ifndef IFPACK_KRYLOV_H #define IFPACK_KRYLOV_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Preconditioner.h" #include "Teuchos_RefCountPtr.hpp" @@ -372,10 +378,3 @@ class Ifpack_Krylov : public Ifpack_Preconditioner { #endif // IFPACK_KRYLOV_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_LinePartitioner.h b/packages/ifpack/src/Ifpack_LinePartitioner.h index 0019e95cca4b..8f8ba6888420 100644 --- a/packages/ifpack/src/Ifpack_LinePartitioner.h +++ b/packages/ifpack/src/Ifpack_LinePartitioner.h @@ -43,6 +43,12 @@ #ifndef IFPACK_LINEPARTITIONER_H #define IFPACK_LINEPARTITIONER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Partitioner.h" #include "Ifpack_OverlappingPartitioner.h" @@ -180,10 +186,3 @@ class Ifpack_LinePartitioner : public Ifpack_OverlappingPartitioner { }; #endif // IFPACK_LINEPARTITIONER_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_LinearPartitioner.h b/packages/ifpack/src/Ifpack_LinearPartitioner.h index 000720d3bbef..b0ba5a1be065 100644 --- a/packages/ifpack/src/Ifpack_LinearPartitioner.h +++ b/packages/ifpack/src/Ifpack_LinearPartitioner.h @@ -43,6 +43,12 @@ #ifndef IFPACK_LINEARPARTITIONER_H #define IFPACK_LINEARPARTITIONER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Partitioner.h" #include "Ifpack_OverlappingPartitioner.h" @@ -79,10 +85,3 @@ class Ifpack_LinearPartitioner : public Ifpack_OverlappingPartitioner { }; #endif // IFPACK_LINEARPARTITIONER_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_LocalFilter.h b/packages/ifpack/src/Ifpack_LocalFilter.h index 12183e43391c..2fe5e98c9b4b 100644 --- a/packages/ifpack/src/Ifpack_LocalFilter.h +++ b/packages/ifpack/src/Ifpack_LocalFilter.h @@ -43,6 +43,12 @@ #ifndef IFPACK_LOCALFILTER_H #define IFPACK_LOCALFILTER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #ifdef HAVE_MPI #include "Epetra_MpiComm.h" @@ -443,10 +449,3 @@ const char* Label() const{ }; #endif /* IFPACK_LOCALFILTER_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_METISPartitioner.h b/packages/ifpack/src/Ifpack_METISPartitioner.h index f8a1c309e226..e58397bd2432 100644 --- a/packages/ifpack/src/Ifpack_METISPartitioner.h +++ b/packages/ifpack/src/Ifpack_METISPartitioner.h @@ -43,6 +43,12 @@ #ifndef IFPACK_METISPARTITIONER_H #define IFPACK_METISPARTITIONER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Partitioner.h" #include "Ifpack_OverlappingPartitioner.h" @@ -98,10 +104,3 @@ class Ifpack_METISPartitioner : public Ifpack_OverlappingPartitioner { }; // class Ifpack_METISPartitioner #endif // IFPACK_METISPARTITIONER_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_METISReordering.h b/packages/ifpack/src/Ifpack_METISReordering.h index e78fc97ffbd9..d6f1e86d1208 100644 --- a/packages/ifpack/src/Ifpack_METISReordering.h +++ b/packages/ifpack/src/Ifpack_METISReordering.h @@ -43,6 +43,12 @@ #ifndef IFPACK_METISREORDERING_H #define IFPACK_METISREORDERING_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Reordering.h" #include "Epetra_RowMatrix.h" @@ -134,10 +140,3 @@ class Ifpack_METISReordering : public Ifpack_Reordering { }; // class Ifpack_METISReordering #endif // IFPACK_METISREORDERING_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_NodeFilter.h b/packages/ifpack/src/Ifpack_NodeFilter.h index 963d866f4a30..b24c65f8c3b1 100644 --- a/packages/ifpack/src/Ifpack_NodeFilter.h +++ b/packages/ifpack/src/Ifpack_NodeFilter.h @@ -43,6 +43,12 @@ #ifndef IFPACK_NODEFILTER_H #define IFPACK_NODEFILTER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #ifdef IFPACK_NODE_AWARE_CODE #include "Ifpack_ConfigDefs.h" @@ -464,10 +470,3 @@ const char* Label() const{ }; #endif //ifdef IFPACK_NODE_AWARE_CODE #endif /* IFPACK_NODEFILTER_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_OverlapFactorObject.h b/packages/ifpack/src/Ifpack_OverlapFactorObject.h index 653e786ac852..39b7c207b285 100644 --- a/packages/ifpack/src/Ifpack_OverlapFactorObject.h +++ b/packages/ifpack/src/Ifpack_OverlapFactorObject.h @@ -43,6 +43,12 @@ #ifndef IFPACK_OVERLAPFACTOROBJECT_H #define IFPACK_OVERLAPFACTOROBJECT_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + //! Ifpack_OverlapFactorObject: Supports functionality common to Ifpack overlap factorization classes. class Ifpack_OverlapFactorObject { @@ -130,10 +136,3 @@ class Ifpack_OverlapFactorObject { Epetra_RowMatrix * UserMatrix_; }; #endif // IFPACK_OVERLAPFACTOROBJECT_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_OverlapGraph.h b/packages/ifpack/src/Ifpack_OverlapGraph.h index 84bd64435a74..71f570c919f0 100644 --- a/packages/ifpack/src/Ifpack_OverlapGraph.h +++ b/packages/ifpack/src/Ifpack_OverlapGraph.h @@ -43,6 +43,12 @@ #ifndef IFPACK_OVERLAPGRAPH_H #define IFPACK_OVERLAPGRAPH_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Epetra_Object.h" #include "Epetra_CrsGraph.h" @@ -143,10 +149,3 @@ class Ifpack_OverlapGraph: public Epetra_Object { bool IsOverlapped_; }; #endif // IFPACK_OVERLAPGRAPH_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_OverlapSolveObject.h b/packages/ifpack/src/Ifpack_OverlapSolveObject.h index 60fe8b41f665..f6620fce4ca4 100644 --- a/packages/ifpack/src/Ifpack_OverlapSolveObject.h +++ b/packages/ifpack/src/Ifpack_OverlapSolveObject.h @@ -43,6 +43,12 @@ #ifndef IFPACK_SOLVEOBJECT_H #define IFPACK_SOLVEOBJECT_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Epetra_Operator.h" #include "Epetra_CrsMatrix.h" #include "Epetra_Vector.h" @@ -235,10 +241,3 @@ class Ifpack_OverlapSolveObject: public virtual Epetra_Operator { }; #endif // IFPACK_SOLVEOBJECT_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_OverlappingPartitioner.h b/packages/ifpack/src/Ifpack_OverlappingPartitioner.h index 11e23ccee800..3f41d2a8ef1c 100644 --- a/packages/ifpack/src/Ifpack_OverlappingPartitioner.h +++ b/packages/ifpack/src/Ifpack_OverlappingPartitioner.h @@ -43,6 +43,12 @@ #ifndef IFPACK_OVERLAPPINGPARTITIONER_H #define IFPACK_OVERLAPPINGPARTITIONER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Partitioner.h" #include "Teuchos_ParameterList.hpp" @@ -214,10 +220,3 @@ class Ifpack_OverlappingPartitioner : public Ifpack_Partitioner { }; // class Ifpack_Partitioner #endif // IFPACK_OVERLAPPINGPARTITIONER_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_OverlappingRowMatrix.h b/packages/ifpack/src/Ifpack_OverlappingRowMatrix.h index 0a94ff80ad27..f06354d8941e 100644 --- a/packages/ifpack/src/Ifpack_OverlappingRowMatrix.h +++ b/packages/ifpack/src/Ifpack_OverlappingRowMatrix.h @@ -44,6 +44,12 @@ #ifndef IFPACK_OVERLAPPINGROWMATRIX_H #define IFPACK_OVERLAPPINGROWMATRIX_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Epetra_RowMatrix.h" #include "Epetra_CombineMode.h" @@ -478,10 +484,3 @@ int ExportMultiVector(const Epetra_MultiVector& OvX, }; // class Ifpack_OverlappingRowMatrix #endif // IFPACK_OVERLAPPINGROWMATRIX_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Partitioner.h b/packages/ifpack/src/Ifpack_Partitioner.h index abc7b786fa12..5144340b929b 100644 --- a/packages/ifpack/src/Ifpack_Partitioner.h +++ b/packages/ifpack/src/Ifpack_Partitioner.h @@ -44,6 +44,12 @@ #ifndef IFPACK_PARTITIONER_H #define IFPACK_PARTITIONER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Teuchos_ParameterList.hpp" class Epetra_Comm; @@ -214,10 +220,3 @@ inline std::ostream& operator<<(std::ostream& os, const Ifpack_Partitioner& obj) } #endif // IFPACK_PARTITIONER_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_PerturbedMatrix.h b/packages/ifpack/src/Ifpack_PerturbedMatrix.h index 45029a267aba..be84c93cdea9 100644 --- a/packages/ifpack/src/Ifpack_PerturbedMatrix.h +++ b/packages/ifpack/src/Ifpack_PerturbedMatrix.h @@ -43,6 +43,12 @@ #ifndef IFPACK_PERTURBEDMATRIX_H #define IFPACK_PERTURBEDMATRIX_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Epetra_CrsGraph.h" #include "Epetra_Object.h" @@ -83,10 +89,3 @@ class Ifpack_PerturbedMatrix: public Epetra_Object { //@} #endif // IFPACK_PERTURBEDMATRIX_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_PointRelaxation.h b/packages/ifpack/src/Ifpack_PointRelaxation.h index 0c417552e698..f0c9dc55c98f 100644 --- a/packages/ifpack/src/Ifpack_PointRelaxation.h +++ b/packages/ifpack/src/Ifpack_PointRelaxation.h @@ -43,6 +43,12 @@ #ifndef IFPACK_POINTRELAXATION_H #define IFPACK_POINTRELAXATION_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Preconditioner.h" @@ -479,10 +485,3 @@ class Ifpack_PointRelaxation : public Ifpack_Preconditioner { }; #endif // IFPACK_POINTRELAXATION_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Polynomial.h b/packages/ifpack/src/Ifpack_Polynomial.h index 02286f98eb5b..b7472f75664f 100644 --- a/packages/ifpack/src/Ifpack_Polynomial.h +++ b/packages/ifpack/src/Ifpack_Polynomial.h @@ -43,6 +43,12 @@ #ifndef IFPACK_POLYNOMIAL_H #define IFPACK_POLYNOMIAL_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Preconditioner.h" #include "Teuchos_RefCountPtr.hpp" @@ -442,10 +448,3 @@ class Ifpack_Polynomial : public Ifpack_Preconditioner { #endif // IFPACK_POLYNOMIAL_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Preconditioner.h b/packages/ifpack/src/Ifpack_Preconditioner.h index 14029455058f..14fd19d90986 100644 --- a/packages/ifpack/src/Ifpack_Preconditioner.h +++ b/packages/ifpack/src/Ifpack_Preconditioner.h @@ -43,6 +43,12 @@ #ifndef IFPACK_PRECONDITIONER_H #define IFPACK_PRECONDITIONER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_CondestType.h" #include "Epetra_Object.h" @@ -206,10 +212,3 @@ inline std::ostream& operator<<(std::ostream& os, const Ifpack_Preconditioner& o } #endif // IFPACK_PRECONDITIONER_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_RCMReordering.h b/packages/ifpack/src/Ifpack_RCMReordering.h index ea3d6c694392..d885c7b621ed 100644 --- a/packages/ifpack/src/Ifpack_RCMReordering.h +++ b/packages/ifpack/src/Ifpack_RCMReordering.h @@ -43,6 +43,12 @@ #ifndef IFPACK_RCMREORDERING_H #define IFPACK_RCMREORDERING_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Reordering.h" @@ -136,10 +142,3 @@ class Ifpack_RCMReordering : public Ifpack_Reordering { }; #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_ReorderFilter.h b/packages/ifpack/src/Ifpack_ReorderFilter.h index 60d8cf3b8555..dccb84601d70 100644 --- a/packages/ifpack/src/Ifpack_ReorderFilter.h +++ b/packages/ifpack/src/Ifpack_ReorderFilter.h @@ -43,6 +43,12 @@ #ifndef IFPACK_REORDERFILTER_H #define IFPACK_REORDERFILTER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Epetra_RowMatrix.h" #include "Teuchos_RefCountPtr.hpp" @@ -354,10 +360,3 @@ class Ifpack_ReorderFilter : public virtual Epetra_RowMatrix { #endif /* IFPACK_DROPFILTER_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Reordering.h b/packages/ifpack/src/Ifpack_Reordering.h index 1ea5ec175273..72eb573c34ad 100644 --- a/packages/ifpack/src/Ifpack_Reordering.h +++ b/packages/ifpack/src/Ifpack_Reordering.h @@ -43,6 +43,12 @@ #ifndef IFPACK_REORDERING_H #define IFPACK_REORDERING_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" namespace Teuchos { @@ -148,10 +154,3 @@ inline std::ostream& operator<<(std::ostream& os, const Ifpack_Reordering& obj) } #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_SILU.h b/packages/ifpack/src/Ifpack_SILU.h index 1d82f0286af1..7804ccf938c3 100644 --- a/packages/ifpack/src/Ifpack_SILU.h +++ b/packages/ifpack/src/Ifpack_SILU.h @@ -43,6 +43,12 @@ #ifndef IFPACK_SILU_H #define IFPACK_SILU_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #ifdef HAVE_IFPACK_SUPERLU @@ -449,10 +455,3 @@ class Ifpack_SILU: public Ifpack_Preconditioner { #endif /* HAVE_IFPACK_SUPERLU */ #endif /* IFPACK_ILU_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_SORa.h b/packages/ifpack/src/Ifpack_SORa.h index 315534fe7e23..28dbfca6dff4 100644 --- a/packages/ifpack/src/Ifpack_SORa.h +++ b/packages/ifpack/src/Ifpack_SORa.h @@ -43,6 +43,12 @@ #ifndef IFPACK_SORA_H #define IFPACK_SORA_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Preconditioner.h" @@ -400,10 +406,3 @@ class Ifpack_SORa: public Ifpack_Preconditioner { #else #endif #endif /* IFPACK_SORa_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_SPARSKIT.h b/packages/ifpack/src/Ifpack_SPARSKIT.h index 72c70799bc81..3d0056b667c0 100644 --- a/packages/ifpack/src/Ifpack_SPARSKIT.h +++ b/packages/ifpack/src/Ifpack_SPARSKIT.h @@ -43,6 +43,12 @@ #ifndef IFPACK_SPARSKIT_H #define IFPACK_SPARSKIT_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #ifdef HAVE_IFPACK_SPARSKIT #include "Ifpack_CondestType.h" @@ -303,10 +309,3 @@ class Ifpack_SPARSKIT: public Ifpack_Preconditioner { #endif // HAVE_IFPACK_SPARSKIT #endif /* IFPACK_SPARSKIT_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_ScalingType.h b/packages/ifpack/src/Ifpack_ScalingType.h index 6e2f8ecf7f4b..9682bdc68506 100644 --- a/packages/ifpack/src/Ifpack_ScalingType.h +++ b/packages/ifpack/src/Ifpack_ScalingType.h @@ -42,6 +42,12 @@ #ifndef _IFPACK_SCALINGTYPE_H_ #define _IFPACK_SCALINGTYPE_H_ + +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif /*! \file Ifpack_ScalingType.h \brief Ifpack_ScalingType enumerable type */ @@ -54,10 +60,3 @@ enum Ifpack_ScalingType {None, LeftDiagonal, RightDiagonal, RowAndColSum}; #endif /* _IFPACK_SCALINGTYPE_H_ */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_SerialTriDiMatrix.h b/packages/ifpack/src/Ifpack_SerialTriDiMatrix.h index 87a6bab2dd1e..ee2d129a763f 100644 --- a/packages/ifpack/src/Ifpack_SerialTriDiMatrix.h +++ b/packages/ifpack/src/Ifpack_SerialTriDiMatrix.h @@ -44,6 +44,12 @@ #ifndef IFPACK_SERIALTRIDIMATRIX_H #define IFPACK_SERIALTRIDIMATRIX_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Epetra_ConfigDefs.h" #include "Epetra_Object.h" #include "Epetra_CompObject.h" @@ -526,10 +532,3 @@ inline const double& Ifpack_SerialTriDiMatrix::operator () (int RowIndex, int Co #endif /* EPETRA_SERIALTRIDIMATRIX_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_SerialTriDiSolver.h b/packages/ifpack/src/Ifpack_SerialTriDiSolver.h index b913a390e9fb..ddb0b675ab5f 100644 --- a/packages/ifpack/src/Ifpack_SerialTriDiSolver.h +++ b/packages/ifpack/src/Ifpack_SerialTriDiSolver.h @@ -43,6 +43,12 @@ #ifndef IFPACK_SERIALTRIDISOLVER_H #define IFPACK_SERIALTRIDISOLVER_H + +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif class Ifpack_SerialTriDiMatrix; //class Epetra_SerialDenseVector; class Epetra_SerialDenseMatrix; @@ -389,10 +395,3 @@ class Ifpack_SerialTriDiSolver : }; #endif /* EPETRA_SERIALTRIDISOLVER_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_SingletonFilter.h b/packages/ifpack/src/Ifpack_SingletonFilter.h index 15adc9956ef1..fba70b732c2b 100644 --- a/packages/ifpack/src/Ifpack_SingletonFilter.h +++ b/packages/ifpack/src/Ifpack_SingletonFilter.h @@ -43,6 +43,12 @@ #ifndef IFPACK_SINGLETONFILTER_H #define IFPACK_SINGLETONFILTER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Epetra_RowMatrix.h" #include "Teuchos_RefCountPtr.hpp" @@ -296,10 +302,3 @@ class Ifpack_SingletonFilter : public virtual Epetra_RowMatrix { }; #endif /* IFPACK_SINGLETONFILTER_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_SparseContainer.h b/packages/ifpack/src/Ifpack_SparseContainer.h index 6cf8a0583237..f1c7bc7c65ab 100644 --- a/packages/ifpack/src/Ifpack_SparseContainer.h +++ b/packages/ifpack/src/Ifpack_SparseContainer.h @@ -43,6 +43,12 @@ #ifndef IFPACK_SPARSECONTAINER_H #define IFPACK_SPARSECONTAINER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_Container.h" #include "Epetra_IntSerialDenseVector.h" #include "Epetra_MultiVector.h" @@ -633,10 +639,3 @@ std::ostream& Ifpack_SparseContainer::Print(std::ostream & os) const return(os); } #endif // IFPACK_SPARSECONTAINER_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_SparsityFilter.h b/packages/ifpack/src/Ifpack_SparsityFilter.h index d2355af76cd0..af7cb61d5622 100644 --- a/packages/ifpack/src/Ifpack_SparsityFilter.h +++ b/packages/ifpack/src/Ifpack_SparsityFilter.h @@ -43,6 +43,12 @@ #ifndef IFPACK_SPARSITYFILTER_H #define IFPACK_SPARSITYFILTER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Epetra_RowMatrix.h" #include "Teuchos_RefCountPtr.hpp" @@ -283,10 +289,3 @@ class Ifpack_SparsityFilter : public virtual Epetra_RowMatrix { #endif /* IFPACK_SPARSITYFILTER_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_SubdomainFilter.h b/packages/ifpack/src/Ifpack_SubdomainFilter.h index 08dbc046c794..0faace9abf00 100644 --- a/packages/ifpack/src/Ifpack_SubdomainFilter.h +++ b/packages/ifpack/src/Ifpack_SubdomainFilter.h @@ -38,6 +38,12 @@ #ifndef IFPACK_SUBDOMAINFILTER_H #define IFPACK_SUBDOMAINFILTER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #ifdef HAVE_IFPACK_PARALLEL_SUBDOMAIN_SOLVERS @@ -460,10 +466,3 @@ const char* Label() const{ }; #endif //ifdef HAVE_IFPACK_PARALLEL_SUBDOMAIN_SOLVERS #endif /* IFPACK_SUBDOMAINFILTER_H */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_TriDiContainer.h b/packages/ifpack/src/Ifpack_TriDiContainer.h index dd80b0aaff4a..495c120f3f2e 100644 --- a/packages/ifpack/src/Ifpack_TriDiContainer.h +++ b/packages/ifpack/src/Ifpack_TriDiContainer.h @@ -43,6 +43,12 @@ #ifndef IFPACK_TRIDICONTAINER_H #define IFPACK_TRIDICONTAINER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Container.h" #include "Ifpack_SerialTriDiMatrix.h" @@ -379,10 +385,3 @@ class Ifpack_TriDiContainer : public Ifpack_Container { }; #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_UserPartitioner.h b/packages/ifpack/src/Ifpack_UserPartitioner.h index a34f48efb845..3aabcc65e388 100644 --- a/packages/ifpack/src/Ifpack_UserPartitioner.h +++ b/packages/ifpack/src/Ifpack_UserPartitioner.h @@ -43,6 +43,12 @@ #ifndef IFPACK_USERPARTITIONER_H #define IFPACK_USERPARTITIONER_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Partitioner.h" #include "Ifpack_OverlappingPartitioner.h" @@ -89,10 +95,3 @@ class Ifpack_UserPartitioner : public Ifpack_OverlappingPartitioner { }; #endif // IFPACK_USERPARTITIONER_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Utils.h b/packages/ifpack/src/Ifpack_Utils.h index c731cd15cadc..e933eb1fbe05 100644 --- a/packages/ifpack/src/Ifpack_Utils.h +++ b/packages/ifpack/src/Ifpack_Utils.h @@ -43,6 +43,12 @@ #ifndef IFPACK_UTILS_H #define IFPACK_UTILS_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Epetra_Comm.h" #if !( defined(_WIN32) ) @@ -187,10 +193,3 @@ class Ifpack_Element { }; #endif // IFPACK_UTILS_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_ValidParameters.h b/packages/ifpack/src/Ifpack_ValidParameters.h index 7bb7476e7494..b7e3abcfdb13 100644 --- a/packages/ifpack/src/Ifpack_ValidParameters.h +++ b/packages/ifpack/src/Ifpack_ValidParameters.h @@ -43,6 +43,12 @@ #ifndef IFPACK_VALIDPARAMETERS_H #define IFPACK_VALIDPARAMETERS_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Teuchos_ParameterList.hpp" @@ -50,10 +56,3 @@ Teuchos::ParameterList Ifpack_GetValidParameters(); #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/Ifpack_Version.h b/packages/ifpack/src/Ifpack_Version.h index c7036721a162..6bc2e287e268 100644 --- a/packages/ifpack/src/Ifpack_Version.h +++ b/packages/ifpack/src/Ifpack_Version.h @@ -53,4 +53,3 @@ std::string Ifpack_Version() { #warning "The Ifpack package is deprecated" #endif #endif - diff --git a/packages/ifpack/src/az_ifpack.h b/packages/ifpack/src/az_ifpack.h index 88c3ca227ac7..bc5bb62280cb 100644 --- a/packages/ifpack/src/az_ifpack.h +++ b/packages/ifpack/src/az_ifpack.h @@ -81,4 +81,3 @@ void az2ifp_blockmatrix (void **bmat, AZ_MATRIX *Amat); #warning "The Ifpack package is deprecated" #endif #endif - diff --git a/packages/ifpack/src/euclid/Euclid_dh.h b/packages/ifpack/src/euclid/Euclid_dh.h index 8cbe95b6e982..8becd4bae49c 100644 --- a/packages/ifpack/src/euclid/Euclid_dh.h +++ b/packages/ifpack/src/euclid/Euclid_dh.h @@ -43,6 +43,12 @@ #ifndef EUCLID_MPI_INTERFACE_DH #define EUCLID_MPI_INTERFACE_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #define DEFAULT_DROP_TOL 0.01 #include "euclid_common.h" @@ -200,10 +206,3 @@ extern "C" } #endif #endif /* #ifndef EUCLID_MPI_INTERFACE_DH */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/ExternalRows_dh.h b/packages/ifpack/src/euclid/ExternalRows_dh.h index acae6efe1a6b..b9cd2790be9f 100644 --- a/packages/ifpack/src/euclid/ExternalRows_dh.h +++ b/packages/ifpack/src/euclid/ExternalRows_dh.h @@ -43,6 +43,12 @@ #ifndef EXTERNAL_ROWS_DH_H #define EXTERNAL_ROWS_DH_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #ifdef __cplusplus extern "C" @@ -110,10 +116,3 @@ extern "C" #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/Factor_dh.h b/packages/ifpack/src/euclid/Factor_dh.h index 7868c7cc7727..3791177d7f13 100644 --- a/packages/ifpack/src/euclid/Factor_dh.h +++ b/packages/ifpack/src/euclid/Factor_dh.h @@ -43,6 +43,12 @@ #ifndef FACTOR_DH #define FACTOR_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #ifdef __cplusplus @@ -136,10 +142,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/Hash_dh.h b/packages/ifpack/src/euclid/Hash_dh.h index 3aa4a71990f5..dd63d3251a6c 100644 --- a/packages/ifpack/src/euclid/Hash_dh.h +++ b/packages/ifpack/src/euclid/Hash_dh.h @@ -43,6 +43,12 @@ #ifndef HASH_D_DH #define HASH_D_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + /* todo: rehash should be implemented in Hash_dhInsert(); as of now, an error is set if the table overflows. */ @@ -105,10 +111,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/Hash_i_dh.h b/packages/ifpack/src/euclid/Hash_i_dh.h index c38e73a43821..2171e43ea8be 100644 --- a/packages/ifpack/src/euclid/Hash_i_dh.h +++ b/packages/ifpack/src/euclid/Hash_i_dh.h @@ -49,6 +49,12 @@ #ifndef HASH_I_DH #define HASH_I_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" @@ -86,10 +92,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/MatGenFD.h b/packages/ifpack/src/euclid/MatGenFD.h index e6e4298a9793..140f8c64460a 100644 --- a/packages/ifpack/src/euclid/MatGenFD.h +++ b/packages/ifpack/src/euclid/MatGenFD.h @@ -43,6 +43,12 @@ #ifndef MATGENFD_DH_DH #define MATGENFD_DH_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + /*===================================================================== option summary: --------------- @@ -182,10 +188,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/Mat_dh.h b/packages/ifpack/src/euclid/Mat_dh.h index 279a0268be4d..cdc030e8faa4 100644 --- a/packages/ifpack/src/euclid/Mat_dh.h +++ b/packages/ifpack/src/euclid/Mat_dh.h @@ -43,6 +43,12 @@ #ifndef MAT_DH_DH #define MAT_DH_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" /* this stuff for experimental internal timing */ @@ -200,10 +206,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/Mem_dh.h b/packages/ifpack/src/euclid/Mem_dh.h index 59adc16cf26f..45c65cf00661 100644 --- a/packages/ifpack/src/euclid/Mem_dh.h +++ b/packages/ifpack/src/euclid/Mem_dh.h @@ -43,6 +43,12 @@ #ifndef MEM_DH_DH #define MEM_DH_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #ifdef __cplusplus extern "C" @@ -67,10 +73,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/Numbering_dh.h b/packages/ifpack/src/euclid/Numbering_dh.h index 25ca6783a078..ad420c01074e 100644 --- a/packages/ifpack/src/euclid/Numbering_dh.h +++ b/packages/ifpack/src/euclid/Numbering_dh.h @@ -43,6 +43,12 @@ #ifndef NUMBERING_DH_H #define NUMBERING_DH_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + /* code and algorithms in this class adopted from Edmond Chow's ParaSails @@ -94,10 +100,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/Parser_dh.h b/packages/ifpack/src/euclid/Parser_dh.h index aaceb9bda3f7..3e3e50e1afa2 100644 --- a/packages/ifpack/src/euclid/Parser_dh.h +++ b/packages/ifpack/src/euclid/Parser_dh.h @@ -43,6 +43,12 @@ #ifndef PARSER_DH_DH #define PARSER_DH_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #ifdef __cplusplus @@ -110,10 +116,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/SortedList_dh.h b/packages/ifpack/src/euclid/SortedList_dh.h index 06dac20cb151..7b67ecebf593 100644 --- a/packages/ifpack/src/euclid/SortedList_dh.h +++ b/packages/ifpack/src/euclid/SortedList_dh.h @@ -43,6 +43,12 @@ #ifndef SORTEDLIST_DH_H #define SORTEDLIST_DH_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + /* for private use by mpi factorization algorithms */ #include "euclid_common.h" @@ -128,10 +134,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/SortedSet_dh.h b/packages/ifpack/src/euclid/SortedSet_dh.h index 130771cc908a..d0718615af8d 100644 --- a/packages/ifpack/src/euclid/SortedSet_dh.h +++ b/packages/ifpack/src/euclid/SortedSet_dh.h @@ -43,6 +43,12 @@ #ifndef SORTED_SET_DH #define SORTED_SET_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #ifdef __cplusplus @@ -67,10 +73,3 @@ extern "C" #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/SubdomainGraph_dh.h b/packages/ifpack/src/euclid/SubdomainGraph_dh.h index 43d5da0fabe4..4289dbbf1a2a 100644 --- a/packages/ifpack/src/euclid/SubdomainGraph_dh.h +++ b/packages/ifpack/src/euclid/SubdomainGraph_dh.h @@ -43,6 +43,12 @@ #ifndef SUBDOMAIN_GRAPH_DH #define SUBDOMAIN_GRAPH_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #ifdef __cplusplus @@ -165,10 +171,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/TimeLog_dh.h b/packages/ifpack/src/euclid/TimeLog_dh.h index 6b35e6800d4a..c71d8b1246b7 100644 --- a/packages/ifpack/src/euclid/TimeLog_dh.h +++ b/packages/ifpack/src/euclid/TimeLog_dh.h @@ -51,6 +51,12 @@ #ifndef TIMELOG_DH_DH #define TIMELOG_DH_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #ifdef __cplusplus extern "C" @@ -69,10 +75,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/Timer_dh.h b/packages/ifpack/src/euclid/Timer_dh.h index b3a9e8933044..a72ae774f81a 100644 --- a/packages/ifpack/src/euclid/Timer_dh.h +++ b/packages/ifpack/src/euclid/Timer_dh.h @@ -43,6 +43,12 @@ #ifndef TIMER_DH_H #define TIMER_DH_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" /*--------------------------------------------------------------*/ @@ -133,10 +139,3 @@ extern "C" #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/Vec_dh.h b/packages/ifpack/src/euclid/Vec_dh.h index a3de4e4d2c07..5875ce0250d7 100644 --- a/packages/ifpack/src/euclid/Vec_dh.h +++ b/packages/ifpack/src/euclid/Vec_dh.h @@ -43,6 +43,12 @@ #ifndef VEC_DH_H #define VEC_DH_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #ifdef __cplusplus extern "C" @@ -83,10 +89,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/blas_dh.h b/packages/ifpack/src/euclid/blas_dh.h index 2bcae26c3ab0..d357fa74b405 100644 --- a/packages/ifpack/src/euclid/blas_dh.h +++ b/packages/ifpack/src/euclid/blas_dh.h @@ -43,6 +43,12 @@ #ifndef THREADED_BLAS_DH #define THREADED_BLAS_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + /* notes: 1. for mpi MatVec, see "Mat_dhMatvec()" in Mat_dh.h 2. MPI calls use MPI_COMM_WORLD for the communicator, where applicable. @@ -73,10 +79,3 @@ extern "C" #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/call_epetra.h b/packages/ifpack/src/euclid/call_epetra.h index e05e8ad51755..0b07460f12e5 100644 --- a/packages/ifpack/src/euclid/call_epetra.h +++ b/packages/ifpack/src/euclid/call_epetra.h @@ -43,6 +43,12 @@ #ifndef CALL_EPETRA_H #define CALL_EPETRA_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + /* This is a true C header file to be used to call Epetra functions from the Euclid solver. They all pass the matrix as a void-pointer. */ @@ -69,10 +75,3 @@ extern "C" #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/euclid.h b/packages/ifpack/src/euclid/euclid.h index f463f264cafd..4d1cddc636fc 100644 --- a/packages/ifpack/src/euclid/euclid.h +++ b/packages/ifpack/src/euclid/euclid.h @@ -43,6 +43,12 @@ #ifndef EUCLID_USER_INTERFAACE #define EUCLID_USER_INTERFAACE +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + /* collection of everthing that should be included for user apps */ #include "Euclid_dh.h" @@ -61,10 +67,3 @@ #include "mat_dh_private.h" #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/euclid_common.h b/packages/ifpack/src/euclid/euclid_common.h index f1327fa10140..54f7c1bd980e 100644 --- a/packages/ifpack/src/euclid/euclid_common.h +++ b/packages/ifpack/src/euclid/euclid_common.h @@ -43,6 +43,12 @@ #ifndef COMMON_DH #define COMMON_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include #include #include @@ -193,10 +199,3 @@ extern "C" #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/euclid_config.h b/packages/ifpack/src/euclid/euclid_config.h index 3f44ebc2b1f5..f5861d0b9bfa 100644 --- a/packages/ifpack/src/euclid/euclid_config.h +++ b/packages/ifpack/src/euclid/euclid_config.h @@ -44,6 +44,12 @@ #ifndef EUCLID_CONF_DH #define EUCLID_CONF_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #define MAX_MPI_TASKS 50000 /* for use in printTriples functions */ @@ -140,10 +146,3 @@ you need to write EUCLID_GET_ROW() functions: see src/getRow.c */ #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/getRow_dh.h b/packages/ifpack/src/euclid/getRow_dh.h index d2b811576f87..4ecc1b4df1fe 100644 --- a/packages/ifpack/src/euclid/getRow_dh.h +++ b/packages/ifpack/src/euclid/getRow_dh.h @@ -43,6 +43,12 @@ #ifndef GET_ROW_DH #define GET_ROW_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #include "call_epetra.h" @@ -70,10 +76,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/guards_dh.h b/packages/ifpack/src/euclid/guards_dh.h index 811e4660e38e..ba4524d117d1 100644 --- a/packages/ifpack/src/euclid/guards_dh.h +++ b/packages/ifpack/src/euclid/guards_dh.h @@ -43,6 +43,12 @@ #ifndef GUARDS_DH #define GUARDS_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" @@ -69,10 +75,3 @@ #endif /* #ifndef GUARDS_DH */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/ilu_dh.h b/packages/ifpack/src/euclid/ilu_dh.h index b476c998c013..14bd3cbba78f 100644 --- a/packages/ifpack/src/euclid/ilu_dh.h +++ b/packages/ifpack/src/euclid/ilu_dh.h @@ -43,6 +43,12 @@ #ifndef ILU_MPI_DH #define ILU_MPI_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #ifdef __cplusplus @@ -83,10 +89,3 @@ extern "C" #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/io_dh.h b/packages/ifpack/src/euclid/io_dh.h index 7bc8672fff89..398ce68d1ad0 100644 --- a/packages/ifpack/src/euclid/io_dh.h +++ b/packages/ifpack/src/euclid/io_dh.h @@ -52,6 +52,12 @@ #ifndef IO_DH #define IO_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #ifdef __cplusplus @@ -94,10 +100,3 @@ extern "C" #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/krylov_dh.h b/packages/ifpack/src/euclid/krylov_dh.h index 778195942b61..90c41bccf483 100644 --- a/packages/ifpack/src/euclid/krylov_dh.h +++ b/packages/ifpack/src/euclid/krylov_dh.h @@ -43,6 +43,12 @@ #ifndef THREADED_KRYLOV_H #define THREADED_KRYLOV_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "blas_dh.h" #ifdef __cplusplus @@ -60,10 +66,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/macros_dh.h b/packages/ifpack/src/euclid/macros_dh.h index 9c2b21756c73..87ff848d38c3 100644 --- a/packages/ifpack/src/euclid/macros_dh.h +++ b/packages/ifpack/src/euclid/macros_dh.h @@ -43,6 +43,12 @@ #ifndef MACROS_DH #define MACROS_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #ifndef FMAX #define FMAX(a,b) ((FABS(a)) > (FABS(b)) ? (FABS(a)) : (FABS(b))) #endif @@ -223,10 +229,3 @@ #endif #endif /* #ifndef MACROS_DH */ - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/mat_dh_private.h b/packages/ifpack/src/euclid/mat_dh_private.h index 1e58ef97f099..599c2698c783 100644 --- a/packages/ifpack/src/euclid/mat_dh_private.h +++ b/packages/ifpack/src/euclid/mat_dh_private.h @@ -43,6 +43,12 @@ #ifndef MAT_DH_PRIVATE #define MAT_DH_PRIVATE +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + /* Functions called by Mat_dh, Factor_dh, and possibly others. Also, a few handy functions for dealing with permutations, etc. @@ -172,10 +178,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/shellSort_dh.h b/packages/ifpack/src/euclid/shellSort_dh.h index af05b591ec48..7cc72c44dc53 100644 --- a/packages/ifpack/src/euclid/shellSort_dh.h +++ b/packages/ifpack/src/euclid/shellSort_dh.h @@ -43,6 +43,12 @@ #ifndef SUPPORT_DH #define SUPPORT_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #ifdef __cplusplus @@ -62,10 +68,3 @@ extern void shellSort_int_int_float(int n, int *x, int *y, double *v); } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/euclid/sig_dh.h b/packages/ifpack/src/euclid/sig_dh.h index 072cf92e2a9a..e3c000f309b5 100644 --- a/packages/ifpack/src/euclid/sig_dh.h +++ b/packages/ifpack/src/euclid/sig_dh.h @@ -43,6 +43,12 @@ #ifndef MY_SIG_DH #define MY_SIG_DH +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "euclid_common.h" #include @@ -95,10 +101,3 @@ extern "C" } #endif #endif - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/ifp_parameters.h b/packages/ifpack/src/ifp_parameters.h index 5d4211d81453..46e9f99743f0 100644 --- a/packages/ifpack/src/ifp_parameters.h +++ b/packages/ifpack/src/ifp_parameters.h @@ -43,6 +43,12 @@ #ifndef _ifp_parameters_h_ #define _ifp_parameters_h_ +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_config.h" #include @@ -105,11 +111,3 @@ void set_parameters(const Teuchos::ParameterList& parameterlist, }//namespace Ifpack #endif //_ifp_parameters_h_ - - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack/src/supportgraph/Ifpack_SupportGraph.h b/packages/ifpack/src/supportgraph/Ifpack_SupportGraph.h index 0175f266b710..d83c1219a12d 100644 --- a/packages/ifpack/src/supportgraph/Ifpack_SupportGraph.h +++ b/packages/ifpack/src/supportgraph/Ifpack_SupportGraph.h @@ -43,6 +43,12 @@ #ifndef IFPACK_SUPPORTGRAPH_H #define IFPACK_SUPPORTGRAPH_H +#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Ifpack package is deprecated" +#endif +#endif + #include "Ifpack_ConfigDefs.h" #include "Ifpack_Condest.h" #include "Ifpack_Preconditioner.h" @@ -790,10 +796,3 @@ Condest(const Ifpack_CondestType CT, const int MaxIters, } #endif // IFPACK_SUPPORTGRAPH_H - -#if defined(Ifpack_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Ifpack package is deprecated" -#endif -#endif - diff --git a/packages/ifpack2/src/CMakeLists.txt b/packages/ifpack2/src/CMakeLists.txt index 283a027ca150..ef185ddce833 100644 --- a/packages/ifpack2/src/CMakeLists.txt +++ b/packages/ifpack2/src/CMakeLists.txt @@ -2,9 +2,9 @@ INCLUDE(TrilinosCreateClientTemplateHeaders) # Parse the Hypre headers IF (${PACKAGE_NAME}_ENABLE_HYPRE) - IF (PYTHON_EXECUTABLE) + IF (Python3_EXECUTABLE) EXECUTE_PROCESS( - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/../utils/parseHypre.py ${HYPRE_INCLUDE_DIRS} Ifpack2_HypreParameterMap.hpp + COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/../utils/parseHypre.py ${HYPRE_INCLUDE_DIRS} Ifpack2_HypreParameterMap.hpp WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" RESULT_VARIABLE RETURN_VALUE OUTPUT_STRIP_TRAILING_WHITESPACE diff --git a/packages/kokkos-kernels/sparse/impl/KokkosSparse_sptrsv_solve_impl.hpp b/packages/kokkos-kernels/sparse/impl/KokkosSparse_sptrsv_solve_impl.hpp index 6dbc3039da40..77d790e288dc 100644 --- a/packages/kokkos-kernels/sparse/impl/KokkosSparse_sptrsv_solve_impl.hpp +++ b/packages/kokkos-kernels/sparse/impl/KokkosSparse_sptrsv_solve_impl.hpp @@ -79,7 +79,7 @@ struct SptrsvWrap { using range_type = Kokkos::pair; // Tag structs - struct UnsortedTag {}; // This doesn't appear to be supported + struct UnsortedTag {}; struct LargerCutoffTag {}; struct UnsortedLargerCutoffTag {}; @@ -115,7 +115,9 @@ struct SptrsvWrap { RHSType rhs; entries_t nodes_grouped_by_level; - using reftype = scalar_t &; + using reftype = scalar_t &; + using ArrayType = reftype; + using SumArray = reftype; struct SBlock { template @@ -141,6 +143,16 @@ struct SptrsvWrap { KOKKOS_INLINE_FUNCTION size_type get_block_size() const { return 0; } + // multiply_subtract. C -= A * B + KOKKOS_INLINE_FUNCTION + static void multiply_subtract(const scalar_t &a, const scalar_t &b, scalar_t &c) { c -= a * b; } + + KOKKOS_INLINE_FUNCTION + static void copy(const member_type &, scalar_t &, const scalar_t &) {} + + KOKKOS_INLINE_FUNCTION + static void copy(scalar_t &, const scalar_t &) {} + // lget KOKKOS_INLINE_FUNCTION scalar_t &lget(const size_type row) const { return lhs(row); } @@ -195,6 +207,60 @@ struct SptrsvWrap { using reftype = Vector; + struct ArrayType { + scalar_t m_data[MAX_VEC_SIZE]; + + KOKKOS_INLINE_FUNCTION + ArrayType() { init(); } + + KOKKOS_INLINE_FUNCTION + ArrayType(const ArrayType &rhs_) { + for (size_type i = 0; i < MAX_VEC_SIZE; ++i) m_data[i] = rhs_.m_data[i]; + } + + KOKKOS_INLINE_FUNCTION + ArrayType(const Vector &) { init(); } + + KOKKOS_INLINE_FUNCTION + void init() { + for (size_type i = 0; i < MAX_VEC_SIZE; ++i) m_data[i] = 0; + } + + KOKKOS_INLINE_FUNCTION + ArrayType &operator+=(const ArrayType &rhs_) { + for (size_type i = 0; i < MAX_VEC_SIZE; ++i) m_data[i] += rhs_.m_data[i]; + return *this; + } + }; + + struct SumArray { + using reducer = SumArray; + using value_type = ArrayType; + using result_view_type = Kokkos::View; + + private: + value_type &m_value; + + public: + KOKKOS_INLINE_FUNCTION + SumArray(value_type &value) : m_value(value) {} + + KOKKOS_INLINE_FUNCTION + void join(value_type &dest, const value_type &src) const { dest += src; } + + KOKKOS_INLINE_FUNCTION + void init(value_type &val) const { val.init(); } + + KOKKOS_INLINE_FUNCTION + value_type &reference() const { return m_value; } + + KOKKOS_INLINE_FUNCTION + result_view_type view() const { return result_view_type(&m_value, 1); } + + KOKKOS_INLINE_FUNCTION + bool reference_scalar() const { return true; } + }; + RowMapType row_map; EntriesType entries; ValuesType values; @@ -215,6 +281,7 @@ struct SptrsvWrap { block_size(block_size_), block_items(block_size * block_size) { KK_REQUIRE_MSG(block_size > 0, "Tried to use block_size=0 with the blocked Common?"); + KK_REQUIRE_MSG(block_size <= MAX_VEC_SIZE, "Max supported block size is " << MAX_VEC_SIZE); } KOKKOS_INLINE_FUNCTION @@ -257,17 +324,17 @@ struct SptrsvWrap { team.team_barrier(); KokkosBatched::TeamLU::invoke(team, LU); - // A = LU - // A^-1 = U^-1 * L^-1 - // b = (b * U^-1) * L^-1, so do U trsv first + // Ax = LUx = Lz = b, we use the change of variable z = U*x + // z = L^-1 * b, first we solve for z, storing the result back into b + // x = U^-1 * z, second we solve for x, again storing the result back into b + team.team_barrier(); + KokkosBatched::TeamTrsv::invoke(team, 1.0, LU, b); + team.team_barrier(); KokkosBatched::TeamTrsv::invoke(team, 1.0, LU, b); - - team.team_barrier(); - KokkosBatched::TeamTrsv::invoke(team, 1.0, LU, b); } // serial divide. b /= A (b = b * A^-1) @@ -278,21 +345,44 @@ struct SptrsvWrap { // Need a temp block to do LU of A const auto block_size_ = b.size(); - KK_KERNEL_REQUIRE_MSG(block_size_ <= MAX_VEC_SIZE, - "Max supported block size for range-policy is 16. Use team-policy alg if you need more."); - Block LU(&buff[0], block_size_, block_size_); assign(LU, A); KokkosBatched::SerialLU::invoke(LU); - // A = LU - // A^-1 = U^-1 * L^-1 - // b = (b * U^-1) * L^-1, so do U trsv first + // Ax = LUx = Lz = b, we use the change of variable z = U*x + // z = L^-1 * b, first we solve for z, storing the result back into b + // x = U^-1 * z, second we solve for x, again storing the result back into b + KokkosBatched::SerialTrsv::invoke(1.0, LU, b); + KokkosBatched::SerialTrsv::invoke(1.0, LU, b); + } - KokkosBatched::SerialTrsv::invoke(1.0, LU, b); + // multiply_subtract. C -= A * B + KOKKOS_INLINE_FUNCTION + static void multiply_subtract(const CBlock &A, const CVector &b, ArrayType &ca) { + Vector c(&ca.m_data[0], b.size()); + multiply_subtract(A, b, c); + } + + KOKKOS_INLINE_FUNCTION + static void multiply_subtract(const CBlock &A, const CVector &b, Vector &c) { + // Use gemv. alpha is hardcoded to -1, beta hardcoded to 1 + KokkosBlas::SerialGemv::invoke(-1.0, A, b, 1.0, + c); + } + + KOKKOS_INLINE_FUNCTION + static void copy(const member_type &team, const Vector &lhs_, ArrayType &rhsa) { + CVector rhs_(&rhsa.m_data[0], lhs_.size()); + assign(team, lhs_, rhs_); + } + + KOKKOS_INLINE_FUNCTION + static void copy(const Vector &lhs_, ArrayType &rhsa) { + CVector rhs_(&rhsa.m_data[0], lhs_.size()); + assign(lhs_, rhs_); } // lget @@ -331,58 +421,69 @@ struct SptrsvWrap { */ template struct Intermediate : public Common { - using Base = Common; + using Base = Common; + using accum_t = std::conditional_t; Intermediate(const RowMapType &row_map_, const EntriesType &entries_, const ValuesType &values_, LHSType &lhs_, const RHSType &rhs_, const entries_t &nodes_grouped_by_level_, const size_type block_size_ = 0) : Base(row_map_, entries_, values_, lhs_, rhs_, nodes_grouped_by_level_, block_size_) {} - struct ReduceFunctorBasic { + struct ReduceSumFunctor { const Base *m_obj; + const lno_t rowid; + lno_t diag; KOKKOS_INLINE_FUNCTION - ReduceFunctorBasic(const Base *obj, const lno_t = 0) : m_obj(obj) {} - - KOKKOS_INLINE_FUNCTION - static void multiply_subtract(const scalar_t &val, const scalar_t &lhs_col_val, scalar_t &accum) { - accum -= val * lhs_col_val; - } - - KOKKOS_INLINE_FUNCTION - void operator()(size_type i, scalar_t &accum) const { + void operator()(size_type i, accum_t &accum) const { const auto colid = m_obj->entries(i); - multiply_subtract(m_obj->vget(i), m_obj->lget(colid), accum); + auto val = m_obj->vget(i); + auto lhs_colid = m_obj->lget(colid); + // accum -= val * lhs_colid; + if constexpr (BlockEnabled) { + accum_t temp; + Base::multiply_subtract(val, lhs_colid, temp); + accum += temp; + } else { + Base::multiply_subtract(val, lhs_colid, accum); + } + KK_KERNEL_ASSERT_MSG(colid != rowid, "Should not have hit diag"); } }; - struct ReduceFunctorBlock : public ReduceFunctorBasic { - using P = ReduceFunctorBasic; - - const size_type block_size; - const size_type b; - - KOKKOS_INLINE_FUNCTION - ReduceFunctorBlock(const Base *obj, const size_type block_size_, const size_type b_, const lno_t = 0) - : P(obj), block_size(block_size_), b(b_) {} + struct ReduceSumDiagFunctor { + const Base *m_obj; + const lno_t rowid; + mutable lno_t diag; KOKKOS_INLINE_FUNCTION - void operator()(size_type i, scalar_t &accum) const { - const auto idx = i / block_size; - const auto colid = P::m_obj->entries(idx); - P::multiply_subtract(P::m_obj->vget(idx)(b, i % block_size), P::m_obj->lget(colid)(b), accum); + void operator()(size_type i, accum_t &accum) const { + const auto colid = m_obj->entries(i); + if (colid != rowid) { + auto val = m_obj->vget(i); + auto lhs_colid = m_obj->lget(colid); + // accum -= val * lhs_colid; + if constexpr (BlockEnabled) { + accum_t temp; + Base::multiply_subtract(val, lhs_colid, temp); + accum += temp; + } else { + Base::multiply_subtract(val, lhs_colid, accum); + } + } else { + diag = i; + } } }; - /** - * If we want to support Unsorted, we'll need a Functor that returns the ptr - * of the diag item (colid == rowid). Possibly via multi-reduce? The UnsortedTag - * is defined above but no policies actually use it. - */ - template KOKKOS_INLINE_FUNCTION void solve_impl(const member_type *team, const int my_rank, const long node_count) const { + using reduce_item_t = typename Base::ArrayType; + using reducer_t = typename Base::SumArray; + using functor_t = std::conditional_t; + + static_assert(!((!IsSerial && BlockEnabled) && UseThreadVec), + "ThreadVectorRanges are not yet supported for block-enabled"); static_assert(!(IsSerial && UseThreadVec), "Requested thread vector range in serial?"); - static_assert(IsSorted, "Unsorted is not yet supported."); const auto rowid = Base::nodes_grouped_by_level(my_rank + node_count); const auto soffset = Base::row_map(rowid); @@ -394,76 +495,58 @@ struct SptrsvWrap { const auto itr_e = eoffset - (IsSorted ? (IsLower ? 1 : 0) : 0); // We don't need the reducer to find the diag item if sorted + functor_t rf{this, rowid, -1}; typename Base::reftype lhs_val = Base::lget(rowid); - - const auto block_size_ = BlockEnabled ? Base::get_block_size() : 1; - (void)block_size_; // Some settings do not use this var + reduce_item_t reduce = lhs_val; if constexpr (IsSerial) { KK_KERNEL_ASSERT_MSG(my_rank == 0, "Non zero rank in serial"); KK_KERNEL_ASSERT_MSG(team == nullptr, "Team provided in serial?"); - if constexpr (BlockEnabled) { - for (size_type b = 0; b < block_size_; ++b) { - ReduceFunctorBlock rf(this, block_size_, b, rowid); - for (size_type i = itr_b * block_size_; i < itr_e * block_size_; ++i) { - rf(i, lhs_val(b)); - } - } - } else { - ReduceFunctorBasic rf(this, rowid); - for (size_type i = itr_b; i < itr_e; ++i) { - rf(i, lhs_val); - } + for (auto ptr = itr_b; ptr < itr_e; ++ptr) { + rf(ptr, reduce); } + Base::copy(lhs_val, reduce); } else { KK_KERNEL_ASSERT_MSG(team != nullptr, "Cannot do team operations without team"); if constexpr (!UseThreadVec) { - if constexpr (BlockEnabled) { - Kokkos::parallel_for(Kokkos::TeamThreadRange(*team, block_size_), [&](size_type b) { - ReduceFunctorBlock rf(this, block_size_, b, rowid); - Kokkos::parallel_reduce(Kokkos::ThreadVectorRange(*team, itr_b * block_size_, itr_e * block_size_), rf, - lhs_val(b)); - }); - } else { - ReduceFunctorBasic rf(this, rowid); - Kokkos::parallel_reduce(Kokkos::TeamThreadRange(*team, itr_b, itr_e), rf, lhs_val); - } + Kokkos::parallel_reduce(Kokkos::TeamThreadRange(*team, itr_b, itr_e), rf, reducer_t(reduce)); + team->team_barrier(); + Base::copy(*team, lhs_val, reduce); team->team_barrier(); } else { - if constexpr (BlockEnabled) { - Kokkos::parallel_for(Kokkos::ThreadVectorRange(*team, block_size_), [&](size_type b) { - ReduceFunctorBlock rf(this, block_size_, b, rowid); - for (size_type i = itr_b * block_size_; i < itr_e * block_size_; ++i) { - rf(i, lhs_val(b)); - } - }); - } else { - ReduceFunctorBasic rf(this, rowid); - Kokkos::parallel_reduce(Kokkos::ThreadVectorRange(*team, itr_b, itr_e), rf, lhs_val); - } + Kokkos::parallel_reduce(Kokkos::ThreadVectorRange(*team, itr_b, itr_e), rf, reducer_t(reduce)); + Base::copy(lhs_val, reduce); } } // If sorted, we already know the diag. Otherwise, get it from the reducer - const lno_t diag = IsLower ? eoffset - 1 : soffset; + rf.diag = IsSorted ? (IsLower ? eoffset - 1 : soffset) : rf.diag; // At end, handle the diag element. We need to be careful to avoid race // conditions here. if constexpr (IsSerial) { // Serial case is easy, there's only 1 thread so just do the // add_and_divide - KK_KERNEL_ASSERT_MSG(diag != -1, "Serial should always know diag"); - Base::add_and_divide(lhs_val, rhs_val, Base::vget(diag)); + KK_KERNEL_ASSERT_MSG(rf.diag != -1, "Serial should always know diag"); + Base::add_and_divide(lhs_val, rhs_val, Base::vget(rf.diag)); } else { - // Parallel sorted case is complex. All threads know what the diag is. - // If we have a team sharing the work, we need to ensure only one - // thread performs the add_and_divide (except in BlockEnabled, then - // we can use team operations). - KK_KERNEL_ASSERT_MSG(diag != -1, "Sorted should always know diag"); - if constexpr (!UseThreadVec) { - Base::add_and_divide(*team, lhs_val, rhs_val, Base::vget(diag)); + if constexpr (IsSorted) { + // Parallel sorted case is complex. All threads know what the diag is. + // If we have a team sharing the work, we need to ensure only one + // thread performs the add_and_divide (except in BlockEnabled, then + // we can use team operations). + KK_KERNEL_ASSERT_MSG(rf.diag != -1, "Sorted should always know diag"); + if constexpr (!UseThreadVec) { + Base::add_and_divide(*team, lhs_val, rhs_val, Base::vget(rf.diag)); + } else { + Base::add_and_divide(lhs_val, rhs_val, Base::vget(rf.diag)); + } } else { - Base::add_and_divide(lhs_val, rhs_val, Base::vget(diag)); + // Parallel unsorted case. Only one thread should know what the diag + // item is. We have that one do the add_and_divide. + if (rf.diag != -1) { + Base::add_and_divide(lhs_val, rhs_val, Base::vget(rf.diag)); + } } } } diff --git a/packages/kokkos-kernels/sparse/src/KokkosSparse_sptrsv_handle.hpp b/packages/kokkos-kernels/sparse/src/KokkosSparse_sptrsv_handle.hpp index b6ca3dacfd3f..37feace62e9d 100644 --- a/packages/kokkos-kernels/sparse/src/KokkosSparse_sptrsv_handle.hpp +++ b/packages/kokkos-kernels/sparse/src/KokkosSparse_sptrsv_handle.hpp @@ -471,6 +471,14 @@ class SPTRSVHandle { #endif } +#if defined(__clang__) && defined(KOKKOS_ENABLE_CUDA) + if (algm == SPTRSVAlgorithm::SEQLVLSCHD_TP1 && Kokkos::ArithTraits::isComplex && + std::is_same_v && block_size_ != 0) { + throw(std::runtime_error( + "sptrsv handle: SPTRSV may not work with blocks+clang+cuda+complex due to a compiler bug")); + } +#endif + #ifdef KOKKOSKERNELS_ENABLE_SUPERNODAL_SPTRSV if (lower_tri) { // lower-triangular is stored in CSC diff --git a/packages/kokkos-kernels/sparse/unit_test/Test_Sparse_sptrsv.hpp b/packages/kokkos-kernels/sparse/unit_test/Test_Sparse_sptrsv.hpp index 385367bca2df..a3f3f4ab7aee 100644 --- a/packages/kokkos-kernels/sparse/unit_test/Test_Sparse_sptrsv.hpp +++ b/packages/kokkos-kernels/sparse/unit_test/Test_Sparse_sptrsv.hpp @@ -179,6 +179,15 @@ struct SptrsvTest { const size_type nrows = row_map.size() - 1; for (auto alg : algs) { + // FIXME CUDA+Clang+Complex seems to expose a compiler bug +#if defined(__clang__) && defined(KOKKOS_ENABLE_CUDA) + if (alg == SPTRSVAlgorithm::SEQLVLSCHD_TP1 && Kokkos::ArithTraits::isComplex && + std::is_same_v && block_size != 0) { + std::cerr << "Skipping TP1 alg test for blocked mtx. There's a compiler bug " + << "for clang+CUDA+complex" << std::endl; + continue; + } +#endif KernelHandle kh; kh.create_sptrsv_handle(alg, nrows, is_lower, block_size); if (alg == SPTRSVAlgorithm::SEQLVLSCHD_TP1CHAIN) { diff --git a/packages/minitensor/src/MiniTensor_Geometry.i.h b/packages/minitensor/src/MiniTensor_Geometry.i.h index a17b80b21976..798c0d24dad8 100644 --- a/packages/minitensor/src/MiniTensor_Geometry.i.h +++ b/packages/minitensor/src/MiniTensor_Geometry.i.h @@ -593,4 +593,3 @@ ParametricGrid::traverse(Visitor & visitor) const } // namespace minitensor #endif // MiniTensor_Geometry_i_h - diff --git a/packages/minitensor/src/MiniTensor_Mechanics.t.h b/packages/minitensor/src/MiniTensor_Mechanics.t.h index 3f718cd4f6ad..321f91f9b697 100644 --- a/packages/minitensor/src/MiniTensor_Mechanics.t.h +++ b/packages/minitensor/src/MiniTensor_Mechanics.t.h @@ -654,7 +654,3 @@ check_strong_ellipticity(Tensor4 const & A) } // namespace minitensor #endif // MiniTensor_Mechanics_t_h - - - - diff --git a/packages/minitensor/src/MiniTensor_version.h b/packages/minitensor/src/MiniTensor_version.h index a1ce28f09dfe..331e9370e142 100644 --- a/packages/minitensor/src/MiniTensor_version.h +++ b/packages/minitensor/src/MiniTensor_version.h @@ -22,4 +22,3 @@ std::string version(); } // namespace minitensor #endif // MINITENSOR_VERSION_H - diff --git a/packages/ml/src/Coarsen/ml_agg_METIS.h b/packages/ml/src/Coarsen/ml_agg_METIS.h index 15b904129e83..b9187915dd19 100644 --- a/packages/ml/src/Coarsen/ml_agg_METIS.h +++ b/packages/ml/src/Coarsen/ml_agg_METIS.h @@ -10,6 +10,12 @@ #ifndef __MLAGGMETIS__ #define __MLAGGMETIS__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*MS*/ #define ML_AGGREGATE_OPTIONS_ID 13579 @@ -69,10 +75,3 @@ extern "C" { #endif #endif /* #ifndef __MLAGGMETIS__ */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_agg_ParMETIS.h b/packages/ml/src/Coarsen/ml_agg_ParMETIS.h index adc11111f327..f678c24002b5 100644 --- a/packages/ml/src/Coarsen/ml_agg_ParMETIS.h +++ b/packages/ml/src/Coarsen/ml_agg_ParMETIS.h @@ -10,6 +10,12 @@ #ifndef __MLAGGPARMETIS__ #define __MLAGGPARMETIS__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_comm.h" #ifndef ML_CPP @@ -54,10 +60,3 @@ extern "C" { #endif #endif /* #ifndef __MLAGGPARMETIS__ */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_agg_VBMETIS.h b/packages/ml/src/Coarsen/ml_agg_VBMETIS.h index e7d212e1e73c..502ae9c1356b 100644 --- a/packages/ml/src/Coarsen/ml_agg_VBMETIS.h +++ b/packages/ml/src/Coarsen/ml_agg_VBMETIS.h @@ -10,6 +10,12 @@ #ifndef __MLAGGVBMETIS__ #define __MLAGGVBMETIS__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* ------------------------------------------------------------------------ */ /*! @@ -96,10 +102,3 @@ int ML_amalg_drop_getrow_VBlocks(ML_Operator *data, int N_requested_rows, #endif #endif /* #ifndef __MLAGGVBMETIS__ */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_agg_Zoltan.h b/packages/ml/src/Coarsen/ml_agg_Zoltan.h index 6a3da7f04746..d6e67944396a 100644 --- a/packages/ml/src/Coarsen/ml_agg_Zoltan.h +++ b/packages/ml/src/Coarsen/ml_agg_Zoltan.h @@ -10,6 +10,12 @@ #ifndef ML_AGG_ZOLTAN_H #define ML_AGG_ZOLTAN_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_comm.h" #ifndef ML_CPP @@ -43,10 +49,3 @@ extern "C" { #endif #endif /* #ifndef ML_AGG_ZOLTAN_H */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_agg_genP.h b/packages/ml/src/Coarsen/ml_agg_genP.h index bb61560d21b2..fc79b0d948fb 100644 --- a/packages/ml/src/Coarsen/ml_agg_genP.h +++ b/packages/ml/src/Coarsen/ml_agg_genP.h @@ -13,6 +13,12 @@ #ifndef __MLGENP__ #define __MLGENP__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_operator.h" #include "ml_aggregate.h" @@ -150,11 +156,3 @@ extern int ML_compute_line_info(int LayerId[], int VertLineId[], #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_agg_min_energy.h b/packages/ml/src/Coarsen/ml_agg_min_energy.h index bd8d128fe971..7d8112647b38 100644 --- a/packages/ml/src/Coarsen/ml_agg_min_energy.h +++ b/packages/ml/src/Coarsen/ml_agg_min_energy.h @@ -5,6 +5,12 @@ #ifndef ML_AGG_MIN_ENERGY #define ML_AGG_MIN_ENERGY +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_include.h" @@ -47,10 +53,3 @@ int ML_AGG_Gen_Prolongator_MandelMinEnergy(ML *ml,int level, int clevel, void *d #endif #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_agg_reitzinger.h b/packages/ml/src/Coarsen/ml_agg_reitzinger.h index ef58842c3672..7bbec6a2d399 100644 --- a/packages/ml/src/Coarsen/ml_agg_reitzinger.h +++ b/packages/ml/src/Coarsen/ml_agg_reitzinger.h @@ -14,6 +14,12 @@ #ifndef __MLAGGREITZINGER__ #define __MLAGGREITZINGER__ + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif #include "ml_common.h" #include "ml_defs.h" #include "ml_mat_formats.h" @@ -93,14 +99,3 @@ void ML_Reitzinger_CheckCommutingProperty(ML *ml_nodes, ML *ml_edges, #endif #endif - - - - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_agg_user.h b/packages/ml/src/Coarsen/ml_agg_user.h index 418404faa5e0..c3bb1c76be41 100644 --- a/packages/ml/src/Coarsen/ml_agg_user.h +++ b/packages/ml/src/Coarsen/ml_agg_user.h @@ -5,6 +5,12 @@ #ifndef ML_AGG_USER_H #define ML_AGG_USER_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #ifndef ML_CPP #ifdef __cplusplus extern "C" { @@ -31,10 +37,3 @@ extern int ML_Aggregate_CoarsenUser( ML_Aggregate *ml_ag, #endif #endif /* #ifndef ML_AGG_USER_H */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_aggregate.h b/packages/ml/src/Coarsen/ml_aggregate.h index f372ea74846d..5bd34a6885fd 100644 --- a/packages/ml/src/Coarsen/ml_aggregate.h +++ b/packages/ml/src/Coarsen/ml_aggregate.h @@ -13,6 +13,12 @@ #ifndef __MLAGGH__ #define __MLAGGH__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include /* #include */ @@ -452,11 +458,3 @@ extern int ML_Aggregate_VizAndStats_Clean( ML *ml); #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_amg.h b/packages/ml/src/Coarsen/ml_amg.h index 23e4e6e5aa3e..1af6fcba6ca9 100644 --- a/packages/ml/src/Coarsen/ml_amg.h +++ b/packages/ml/src/Coarsen/ml_amg.h @@ -13,6 +13,12 @@ #ifndef __MLAMGH__ #define __MLAMGH__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include /* #include */ #include "ml_common.h" @@ -221,11 +227,3 @@ int ML_AMG_Identity_Getrows(ML_Operator *data, int N_requested_rows, #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_amg_genP.h b/packages/ml/src/Coarsen/ml_amg_genP.h index afa028d6be79..210c96cac029 100644 --- a/packages/ml/src/Coarsen/ml_amg_genP.h +++ b/packages/ml/src/Coarsen/ml_amg_genP.h @@ -13,6 +13,12 @@ #ifndef __MLAMGGENP__ #define __MLAMGGENP__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_amg.h" #include "ml_operator.h" @@ -56,11 +62,3 @@ extern int ML_AMG_Identity_Getrows(ML_Operator *data, int N_requested_rows, #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_check.h b/packages/ml/src/Coarsen/ml_check.h index 9c598ffb3545..be17a7c0d149 100644 --- a/packages/ml/src/Coarsen/ml_check.h +++ b/packages/ml/src/Coarsen/ml_check.h @@ -6,6 +6,12 @@ #ifndef __MLCHECK__ #define __MLCHECK__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #ifndef ML_CPP #ifdef __cplusplus extern "C" { @@ -28,11 +34,3 @@ extern int ML_Reitzinger_Check_Hierarchy(ML *ml, ML_Operator **Tmat_array, int i #endif #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_ggraph.h b/packages/ml/src/Coarsen/ml_ggraph.h index 8f269cab1778..ca6e152288d8 100644 --- a/packages/ml/src/Coarsen/ml_ggraph.h +++ b/packages/ml/src/Coarsen/ml_ggraph.h @@ -13,6 +13,12 @@ #ifndef __MLGRIDG__ #define __MLGRIDG__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include /* #include */ @@ -76,11 +82,3 @@ extern int ML_GGraph_LabelVertices(int, int *, int, char *, char *, int, #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_parmetis_constants.h b/packages/ml/src/Coarsen/ml_parmetis_constants.h index 9aaaf54b0d9a..8be7a7a2fae2 100644 --- a/packages/ml/src/Coarsen/ml_parmetis_constants.h +++ b/packages/ml/src/Coarsen/ml_parmetis_constants.h @@ -6,6 +6,12 @@ #ifndef ML_PARMETIS_CONSTANTS_H #define ML_PARMETIS_CONSTANTS_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* This header defines types used in ML's (Par)METIS interfaces and must be included whenever (Par)METIS data types are used. This is necessary because (Par)METIS does not maintain backwards compatibility between major versions. @@ -39,10 +45,3 @@ #endif #endif /*ifndef ML_PARMETIS_CONSTANTS_H*/ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Coarsen/ml_qr_fix.h b/packages/ml/src/Coarsen/ml_qr_fix.h index d4e8b2597b6a..48bd7c910a0f 100644 --- a/packages/ml/src/Coarsen/ml_qr_fix.h +++ b/packages/ml/src/Coarsen/ml_qr_fix.h @@ -4,6 +4,12 @@ /* ******************************************************************** */ #ifndef ML_QR_FIX_H #define ML_QR_FIX_H + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif /* This header allows ML to handle cases where an aggregate is not large enough to support the given number of nullspace vectors. Take the following *scalar* @@ -80,10 +86,3 @@ extern "C" { #endif #endif /*ifndef ML_QR_FIX_H*/ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Comm/ml_comm.h b/packages/ml/src/Comm/ml_comm.h index c2b570f33c82..f6d3725fcb26 100644 --- a/packages/ml/src/Comm/ml_comm.h +++ b/packages/ml/src/Comm/ml_comm.h @@ -13,6 +13,12 @@ #ifndef _MLCOMM_ #define _MLCOMM_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include #include "ml_common.h" #include "ml_defs.h" @@ -154,11 +160,3 @@ extern void ML_Comm_ErrorHandler(USR_COMM*, int*,...); #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Comm/ml_comminfoagx.h b/packages/ml/src/Comm/ml_comminfoagx.h index 0dbdc7f14b1d..b6bac1d399b3 100644 --- a/packages/ml/src/Comm/ml_comminfoagx.h +++ b/packages/ml/src/Comm/ml_comminfoagx.h @@ -14,6 +14,12 @@ #ifndef _MLCOMMINFOAGX_ #define _MLCOMMINFOAGX_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include #include "ml_common.h" #include "ml_defs.h" @@ -81,11 +87,3 @@ extern int ML_CommInfoAGX_Print(ML_CommInfoAGX *); #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Comm/ml_comminfoop.h b/packages/ml/src/Comm/ml_comminfoop.h index fb19e3682043..65060d547a10 100644 --- a/packages/ml/src/Comm/ml_comminfoop.h +++ b/packages/ml/src/Comm/ml_comminfoop.h @@ -13,6 +13,12 @@ #ifndef __MLCOMMINFOOP__ #define __MLCOMMINFOOP__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_comm.h" @@ -164,11 +170,3 @@ extern int ML_Comm_Envelope_Increment_Tag(ML_Comm_Envelope*); #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/FEGrid/ml_bdrypts.h b/packages/ml/src/FEGrid/ml_bdrypts.h index c648458f92f4..7d37fe7c81af 100644 --- a/packages/ml/src/FEGrid/ml_bdrypts.h +++ b/packages/ml/src/FEGrid/ml_bdrypts.h @@ -13,6 +13,12 @@ #ifndef __MLBDRYPTSH__ #define __MLBDRYPTSH__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_defs.h" #include "ml_memory.h" @@ -70,11 +76,3 @@ extern int ML_BdryPts_ApplyZero_Dirichlet_Eqn(ML_BdryPts *, double *); #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/FEGrid/ml_elementagx.h b/packages/ml/src/FEGrid/ml_elementagx.h index 34e5f10e0d13..71f52293dd6f 100644 --- a/packages/ml/src/FEGrid/ml_elementagx.h +++ b/packages/ml/src/FEGrid/ml_elementagx.h @@ -14,6 +14,12 @@ #ifndef _MLELMNTAGX_ #define _MLELMNTAGX_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include /* #include */ @@ -65,11 +71,3 @@ extern int ML_ElementAGX_ComposeCandidates #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/FEGrid/ml_grid.h b/packages/ml/src/FEGrid/ml_grid.h index bb21cbb2ef18..8fa9c5cd022a 100644 --- a/packages/ml/src/FEGrid/ml_grid.h +++ b/packages/ml/src/FEGrid/ml_grid.h @@ -13,6 +13,12 @@ #ifndef __MLGRID__ #define __MLGRID__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_defs.h" #include "ml_memory.h" @@ -59,11 +65,3 @@ extern int ML_Grid_Create_GridFunc( ML_Grid * ); #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/FEGrid/ml_gridagx.h b/packages/ml/src/FEGrid/ml_gridagx.h index 73ffd174c264..e9e28f26f68c 100644 --- a/packages/ml/src/FEGrid/ml_gridagx.h +++ b/packages/ml/src/FEGrid/ml_gridagx.h @@ -14,6 +14,12 @@ #ifndef __MLGRIDAGX__ #define __MLGRIDAGX__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include /* #include */ #include "ml_common.h" @@ -94,11 +100,3 @@ extern int ML_GridAGX_Load_AllVertCoordinates(ML_GridAGX*,int,double*); #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/FEGrid/ml_gridfunc.h b/packages/ml/src/FEGrid/ml_gridfunc.h index 37d4883c8dba..420e6b7e4bf6 100644 --- a/packages/ml/src/FEGrid/ml_gridfunc.h +++ b/packages/ml/src/FEGrid/ml_gridfunc.h @@ -13,6 +13,12 @@ #ifndef __MLGRIDFUNC__ #define __MLGRIDFUNC__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_defs.h" #include "ml_memory.h" @@ -90,11 +96,3 @@ int ML_compute_basis_coefficients2D(void *grid, double *coord, #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/FEGrid/ml_mapper.h b/packages/ml/src/FEGrid/ml_mapper.h index 001d7140d4d4..2efdc2923e68 100644 --- a/packages/ml/src/FEGrid/ml_mapper.h +++ b/packages/ml/src/FEGrid/ml_mapper.h @@ -13,6 +13,12 @@ #ifndef __MLMAPPERH__ #define __MLMAPPERH__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_defs.h" #include "ml_memory.h" @@ -74,11 +80,3 @@ extern int ML_Mapper_Apply(ML_Mapper *, Epetra_MultiVector & , Epetra_MultiVecto #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/FEGrid/ml_pde.h b/packages/ml/src/FEGrid/ml_pde.h index 847d96e5d4d1..4bf2dcd92bc5 100644 --- a/packages/ml/src/FEGrid/ml_pde.h +++ b/packages/ml/src/FEGrid/ml_pde.h @@ -13,6 +13,12 @@ #ifndef _MLPDE__ #define _MLPDE__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "mli_solver.h" @@ -31,11 +37,3 @@ extern int ML_PDE_GenMat(MLI_Solver*,int); #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/FEGrid/ml_setup.h b/packages/ml/src/FEGrid/ml_setup.h index f0702c46e558..577b27d0e64f 100644 --- a/packages/ml/src/FEGrid/ml_setup.h +++ b/packages/ml/src/FEGrid/ml_setup.h @@ -5,6 +5,12 @@ #ifndef __MLSETUP__ #define __MLSETUP__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* ******************************************************************** */ /* variable to pass to the local compute_basis_coefficients function */ @@ -71,10 +77,3 @@ void ML_construct_RP1( void *fgrid, #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Include/ml_common.h b/packages/ml/src/Include/ml_common.h index 2bc7f96848f0..8c155b6a1add 100644 --- a/packages/ml/src/Include/ml_common.h +++ b/packages/ml/src/Include/ml_common.h @@ -13,6 +13,12 @@ #ifndef __MLCOMMON__ #define __MLCOMMON__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* this avoids the classic build system from picking up a spurious * macro from other packages that may have been autotooled */ #ifdef ML_CLASSIC_BUILD @@ -183,10 +189,3 @@ #endif /*ifndef TRILINOS_NO_CONFIG_H*/ #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Include/ml_defs.h b/packages/ml/src/Include/ml_defs.h index e34eac0ee6e6..b09790f0d4dd 100644 --- a/packages/ml/src/Include/ml_defs.h +++ b/packages/ml/src/Include/ml_defs.h @@ -5,6 +5,12 @@ #ifndef __MLDEFS__ #define __MLDEFS__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" /* @@ -194,10 +200,3 @@ typedef ML_BIG_INT ml_big_int; #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Include/ml_include.h b/packages/ml/src/Include/ml_include.h index 7a9e2d637b2e..1f40adc10f7b 100644 --- a/packages/ml/src/Include/ml_include.h +++ b/packages/ml/src/Include/ml_include.h @@ -13,6 +13,12 @@ #ifndef _MLINCLUDE_ #define _MLINCLUDE_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_defs.h" #include "ml_struct.h" @@ -49,11 +55,3 @@ #include "ml_agg_ParMETIS.h" #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Krylov/ml_bicgstabl.h b/packages/ml/src/Krylov/ml_bicgstabl.h index f89ca92e9d6d..e52540192d8b 100644 --- a/packages/ml/src/Krylov/ml_bicgstabl.h +++ b/packages/ml/src/Krylov/ml_bicgstabl.h @@ -16,6 +16,12 @@ #ifndef __MLCGSTABL__ #define __MLCGSTABL__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #ifndef ML_CPP #ifdef __cplusplus extern "C" { @@ -31,11 +37,3 @@ extern int ML_BICGSTABL_Solve(ML_Krylov *,int,double *rhs,double *sol); #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Krylov/ml_cg.h b/packages/ml/src/Krylov/ml_cg.h index 6f61b36f1fd3..6d4746f2f120 100644 --- a/packages/ml/src/Krylov/ml_cg.h +++ b/packages/ml/src/Krylov/ml_cg.h @@ -13,6 +13,12 @@ #ifndef __MLCG__ #define __MLCG__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_krylov.h" @@ -36,11 +42,3 @@ extern int ML_SubspaceIteration_ComputeEigenvalues(ML_Krylov *data, #endif #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Krylov/ml_gmres.h b/packages/ml/src/Krylov/ml_gmres.h index ec5805010777..ba4636c53635 100644 --- a/packages/ml/src/Krylov/ml_gmres.h +++ b/packages/ml/src/Krylov/ml_gmres.h @@ -13,6 +13,12 @@ #ifndef __MLGMRES__ #define __MLGMRES__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_krylov.h" @@ -30,11 +36,3 @@ extern int ML_GMRES_Solve(ML_Krylov *,int length,double *rhs,double *sol); #endif #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Krylov/ml_krylov.h b/packages/ml/src/Krylov/ml_krylov.h index b330bed21b34..dca4fdbf9d61 100644 --- a/packages/ml/src/Krylov/ml_krylov.h +++ b/packages/ml/src/Krylov/ml_krylov.h @@ -12,6 +12,12 @@ #ifndef __MLKRYLOVDATA_ #define __MLKRYLOVDATA_ + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif #define ML_CG 0 #define ML_GMRES 1 @@ -104,12 +110,3 @@ extern int ML_DiagScale_Wrapper(void *, int, double *, int, double*); #endif #endif - - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/LevelWrap/ml_LevelWrap.h b/packages/ml/src/LevelWrap/ml_LevelWrap.h index 259a016d3445..b7d1b4267a10 100644 --- a/packages/ml/src/LevelWrap/ml_LevelWrap.h +++ b/packages/ml/src/LevelWrap/ml_LevelWrap.h @@ -15,6 +15,12 @@ #ifndef ML_LEVELWRAP_H #define ML_LEVELWRAP_H + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif #include "ml_common.h" #if defined(HAVE_ML_EPETRA) && defined(HAVE_ML_TEUCHOS) && defined(HAVE_ML_IFPACK) @@ -199,10 +205,3 @@ namespace ML_Epetra #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI.h b/packages/ml/src/MLAPI/MLAPI.h index be5cdf915152..589fd38f5e8a 100644 --- a/packages/ml/src/MLAPI/MLAPI.h +++ b/packages/ml/src/MLAPI/MLAPI.h @@ -32,4 +32,3 @@ #warning "The ML package is deprecated" #endif #endif - diff --git a/packages/ml/src/MLAPI/MLAPI_Aggregation.h b/packages/ml/src/MLAPI/MLAPI_Aggregation.h index f958c51aa477..086d783bc44d 100644 --- a/packages/ml/src/MLAPI/MLAPI_Aggregation.h +++ b/packages/ml/src/MLAPI/MLAPI_Aggregation.h @@ -1,6 +1,12 @@ #ifndef MLAPI_AGGREGATION_H #define MLAPI_AGGREGATION_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" /*! @@ -129,10 +135,3 @@ int GetGlobalAggregates(Epetra_RowMatrix& A, Teuchos::ParameterList& List, } // namespace MLAPI #endif // MLAPI_AGGREGATION_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_BaseLinearCombination.h b/packages/ml/src/MLAPI/MLAPI_BaseLinearCombination.h index d247ad034480..d2846239ea25 100644 --- a/packages/ml/src/MLAPI/MLAPI_BaseLinearCombination.h +++ b/packages/ml/src/MLAPI/MLAPI_BaseLinearCombination.h @@ -1,6 +1,12 @@ #ifndef ML_BASELINEARCOMBINATION_H #define ML_BASELINEARCOMBINATION_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_BaseLinearCombination.h @@ -37,10 +43,3 @@ class BaseLinearCombination } // namespace MLAPI #endif // ifdef ML_BASELINEARCOMBINATION_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_BaseObject.h b/packages/ml/src/MLAPI/MLAPI_BaseObject.h index f0fac281fdd9..bf891719399b 100644 --- a/packages/ml/src/MLAPI/MLAPI_BaseObject.h +++ b/packages/ml/src/MLAPI/MLAPI_BaseObject.h @@ -1,6 +1,12 @@ #ifndef MLAPI_BASEOBJECT_H #define MLAPI_BASEOBJECT_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_BaseObject.h @@ -81,10 +87,3 @@ std::ostream& operator<< (std::ostream& os, const BaseObject& obj); } // namespace MLAPI #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_BaseOperator.h b/packages/ml/src/MLAPI/MLAPI_BaseOperator.h index 51c2c93a7ea4..35dab09e3820 100644 --- a/packages/ml/src/MLAPI/MLAPI_BaseOperator.h +++ b/packages/ml/src/MLAPI/MLAPI_BaseOperator.h @@ -1,6 +1,12 @@ #ifndef MLAPI_PRECONDITIONER_H #define MLAPI_PRECONDITIONER_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_BaseOperator.h @@ -53,10 +59,3 @@ class BaseOperator : public BaseObject { } // namespace MLAPI #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_CompObject.h b/packages/ml/src/MLAPI/MLAPI_CompObject.h index 5bafdcf021ca..86e6f75572cc 100644 --- a/packages/ml/src/MLAPI/MLAPI_CompObject.h +++ b/packages/ml/src/MLAPI/MLAPI_CompObject.h @@ -1,6 +1,12 @@ #ifndef MLAPI_COMPOBJECT_H #define MLAPI_COMPOBJECT_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_CompObject.h @@ -68,10 +74,3 @@ class CompObject { } // namespace MLPI #endif // MLAPI_COMPOBJECT_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_Defaults.h b/packages/ml/src/MLAPI/MLAPI_Defaults.h index 9e07d22fe3b5..8371486767a8 100644 --- a/packages/ml/src/MLAPI/MLAPI_Defaults.h +++ b/packages/ml/src/MLAPI/MLAPI_Defaults.h @@ -1,6 +1,12 @@ #ifndef MLAPI_DEFAULTS_H #define MLAPI_DEFAULTS_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_Defaults.h @@ -30,10 +36,3 @@ void SetDefaults(Teuchos::ParameterList& List); } // namespace MLAPI #endif // MLAPI_DEFAULTS_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_DistributedMatrix.h b/packages/ml/src/MLAPI/MLAPI_DistributedMatrix.h index 980ae384a29b..85a3fbf881bb 100644 --- a/packages/ml/src/MLAPI/MLAPI_DistributedMatrix.h +++ b/packages/ml/src/MLAPI/MLAPI_DistributedMatrix.h @@ -1,6 +1,12 @@ #ifndef MLAPI_DISTRIBUTEDMATRIX_H #define MLAPI_DISTRIBUTEDMATRIX_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_DistributedMatrix.h @@ -375,10 +381,3 @@ class DistributedMatrix : public Epetra_RowMatrix, public Operator { } // namespace MLAPI #endif // ifndef MLAPI_DISTRIBUTEDMATRIX_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_Eig.h b/packages/ml/src/MLAPI/MLAPI_Eig.h index 8fd115565888..6b1a7d662646 100644 --- a/packages/ml/src/MLAPI/MLAPI_Eig.h +++ b/packages/ml/src/MLAPI/MLAPI_Eig.h @@ -1,6 +1,12 @@ #ifndef MLAPI_EIG_H #define MLAPI_EIG_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_Eig.h @@ -43,10 +49,3 @@ void Eigs(const Operator& A, int NumEigenvalues, } // namespace MLAPI #endif // MLAPI_EIG_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_EpetraBaseOperator.h b/packages/ml/src/MLAPI/MLAPI_EpetraBaseOperator.h index 68010375894c..ac31605356ca 100644 --- a/packages/ml/src/MLAPI/MLAPI_EpetraBaseOperator.h +++ b/packages/ml/src/MLAPI/MLAPI_EpetraBaseOperator.h @@ -1,6 +1,12 @@ #ifndef MLAPI_EPETRAPRECONDITIONER_H #define MLAPI_EPETRAPRECONDITIONER_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_EpetraBaseOperator.h @@ -178,10 +184,3 @@ class EpetraBaseOperator : public Epetra_Operator { } // namespace MLAPI #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_Error.h b/packages/ml/src/MLAPI/MLAPI_Error.h index 7268756786e7..16db0e279f9b 100644 --- a/packages/ml/src/MLAPI/MLAPI_Error.h +++ b/packages/ml/src/MLAPI/MLAPI_Error.h @@ -5,6 +5,12 @@ #ifndef MLAPI_ERROR_H #define MLAPI_ERROR_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include #include @@ -63,10 +69,3 @@ inline void StackPrint() {std::cout << "Compile with -DMLAPI_CHECK to get the fu #endif // ndef ML_THROW #endif // MLAPI_ERROR_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_Expressions.h b/packages/ml/src/MLAPI/MLAPI_Expressions.h index fb04dd7a4b7e..3dfd9c85a0b8 100644 --- a/packages/ml/src/MLAPI/MLAPI_Expressions.h +++ b/packages/ml/src/MLAPI/MLAPI_Expressions.h @@ -1,6 +1,12 @@ #ifndef ML_EXPRESSIONS_H #define ML_EXPRESSIONS_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "MLAPI_LinearCombinations.h" namespace MLAPI { @@ -265,10 +271,3 @@ double operator* (const BaseLinearCombination& x, const BaseLinearCombination& y } // namespace MLAPI #endif // if ML_EXPRESSIONS_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_Gallery.h b/packages/ml/src/MLAPI/MLAPI_Gallery.h index db59c5424198..742d2f02fbc3 100644 --- a/packages/ml/src/MLAPI/MLAPI_Gallery.h +++ b/packages/ml/src/MLAPI/MLAPI_Gallery.h @@ -1,6 +1,12 @@ #ifndef MLAPI_GALLERY_H #define MLAPI_GALLERY_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_Gallery.h @@ -81,10 +87,3 @@ namespace MLAPI { } #endif // MLAPI_GALLERY_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_InverseOperator.h b/packages/ml/src/MLAPI/MLAPI_InverseOperator.h index f133ccc79b95..9fcb8cf73117 100644 --- a/packages/ml/src/MLAPI/MLAPI_InverseOperator.h +++ b/packages/ml/src/MLAPI/MLAPI_InverseOperator.h @@ -1,6 +1,12 @@ #ifndef ML_INVERSEOPERATOR_H #define ML_INVERSEOPERATOR_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_InverseOperator.h @@ -166,10 +172,3 @@ class InverseOperator : public BaseOperator, public CompObject, public TimeObjec } // namespace MLAPI #endif // ML_INVERSEOPERATOR_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_Krylov.h b/packages/ml/src/MLAPI/MLAPI_Krylov.h index becccf1e55ed..f07932422d02 100644 --- a/packages/ml/src/MLAPI/MLAPI_Krylov.h +++ b/packages/ml/src/MLAPI/MLAPI_Krylov.h @@ -1,6 +1,12 @@ #ifndef MLAPI_KRYLOV #define MLAPI_KRYLOV +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_Krylov.h @@ -44,10 +50,3 @@ void Krylov(const Operator& A, const MultiVector& LHS, } // namespace MLAPI #endif // ifdef MLAPI_KRYLOV - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_LinearCombinations.h b/packages/ml/src/MLAPI/MLAPI_LinearCombinations.h index de25ca6bdd48..0204d7814aed 100644 --- a/packages/ml/src/MLAPI/MLAPI_LinearCombinations.h +++ b/packages/ml/src/MLAPI/MLAPI_LinearCombinations.h @@ -1,6 +1,12 @@ #ifndef ML_LINEARCOMBINATION_H #define ML_LINEARCOMBINATION_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_LinearCombination.h @@ -243,10 +249,3 @@ class Residual : public BaseLinearCombination } // namespace MLAPI #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_LoadBalanceInverseOperator.h b/packages/ml/src/MLAPI/MLAPI_LoadBalanceInverseOperator.h index 936071984602..4bf7c168646f 100644 --- a/packages/ml/src/MLAPI/MLAPI_LoadBalanceInverseOperator.h +++ b/packages/ml/src/MLAPI/MLAPI_LoadBalanceInverseOperator.h @@ -1,6 +1,12 @@ #ifndef ML_LOADBALANCEINVERSEOPERATOR_H #define ML_LOADBALANCEINVERSEOPERATOR_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_LoadBalanceInverseOperator.h @@ -149,10 +155,3 @@ class LoadBalanceInverseOperator : public InverseOperator { } // namespace MLAPI #endif // ML_INVERSEOPERATOR_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_LoadBalanceOperator.h b/packages/ml/src/MLAPI/MLAPI_LoadBalanceOperator.h index 169549bf58f8..7ebc3d2a320b 100644 --- a/packages/ml/src/MLAPI/MLAPI_LoadBalanceOperator.h +++ b/packages/ml/src/MLAPI/MLAPI_LoadBalanceOperator.h @@ -1,6 +1,12 @@ #ifndef ML_LBOPERATOR_H #define ML_LBOPERATOR_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_LoadBalanceOperator.h @@ -556,10 +562,3 @@ class LoadBalanceOperator : public Operator { } // namespace MLAPI #endif // ML_OPERATOR_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_MATLABStream.h b/packages/ml/src/MLAPI/MLAPI_MATLABStream.h index 39c406974050..bd6995afd775 100644 --- a/packages/ml/src/MLAPI/MLAPI_MATLABStream.h +++ b/packages/ml/src/MLAPI/MLAPI_MATLABStream.h @@ -1,6 +1,12 @@ #ifndef MLAPI_MATLABSTREAM_H #define MLAPI_MATLABSTREAM_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_MATLABStream.h @@ -273,10 +279,3 @@ class MATLABStream } // namespace MLAPI #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_MultiLevelAdaptiveSA.h b/packages/ml/src/MLAPI/MLAPI_MultiLevelAdaptiveSA.h index a6cbfa7dd0d4..d6afd51240a7 100644 --- a/packages/ml/src/MLAPI/MLAPI_MultiLevelAdaptiveSA.h +++ b/packages/ml/src/MLAPI/MLAPI_MultiLevelAdaptiveSA.h @@ -1,6 +1,12 @@ #ifndef MLAPI_MULTILEVELADAPTIVESA_H #define MLAPI_MULTILEVELADAPTIVESA_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_MultiLevelAdaptiveSA.h @@ -929,10 +935,3 @@ class MultiLevelAdaptiveSA : public BaseOperator, public CompObject, public Time } // namespace MLAPI #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_MultiLevelSA.h b/packages/ml/src/MLAPI/MLAPI_MultiLevelSA.h index f47dd8cf28a0..3689d97b7b44 100644 --- a/packages/ml/src/MLAPI/MLAPI_MultiLevelSA.h +++ b/packages/ml/src/MLAPI/MLAPI_MultiLevelSA.h @@ -1,6 +1,12 @@ #ifndef MLAPI_MULTILEVEL_H #define MLAPI_MULTILEVEL_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_MultiLevelSA.h @@ -397,10 +403,3 @@ class MultiLevelSA : public BaseOperator, public CompObject, public TimeObject { } // namespace MLAPI #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_MultiVector.h b/packages/ml/src/MLAPI/MLAPI_MultiVector.h index 0d83bd753024..874ce658f989 100644 --- a/packages/ml/src/MLAPI/MLAPI_MultiVector.h +++ b/packages/ml/src/MLAPI/MLAPI_MultiVector.h @@ -1,6 +1,12 @@ #ifndef ML_MULTIVECTOR_H #define ML_MULTIVECTOR_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_MultiVector.h @@ -985,10 +991,3 @@ class MultiVector : public BaseObject, public CompObject, public TimeObject { } // namespace MLAPI #endif // if ML_MULTIVECTOR_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_MultiVector_Utils.h b/packages/ml/src/MLAPI/MLAPI_MultiVector_Utils.h index d93621d2fbe8..60977bc9ef1c 100644 --- a/packages/ml/src/MLAPI/MLAPI_MultiVector_Utils.h +++ b/packages/ml/src/MLAPI/MLAPI_MultiVector_Utils.h @@ -1,6 +1,12 @@ #ifndef MLAPI_DOUBLEVECTOR_UTILS_H #define MLAPI_DOUBLEVECTOR_UTILS_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_Operator_Utils.h @@ -45,10 +51,3 @@ MultiVector Redistribute(const MultiVector& y, const int NumEquations); } // namespace MLAPI #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_Operator.h b/packages/ml/src/MLAPI/MLAPI_Operator.h index 73e0e55daaf6..459175052c5e 100644 --- a/packages/ml/src/MLAPI/MLAPI_Operator.h +++ b/packages/ml/src/MLAPI/MLAPI_Operator.h @@ -1,6 +1,12 @@ #ifndef ML_OPERATOR_H #define ML_OPERATOR_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_Operator.h @@ -499,10 +505,3 @@ class Operator : public BaseOperator, public CompObject, public TimeObject { } // namespace MLAPI #endif // ML_OPERATOR_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_Operator_Box.h b/packages/ml/src/MLAPI/MLAPI_Operator_Box.h index 453127320a88..683561d0ac92 100644 --- a/packages/ml/src/MLAPI/MLAPI_Operator_Box.h +++ b/packages/ml/src/MLAPI/MLAPI_Operator_Box.h @@ -1,6 +1,12 @@ #ifndef MLAPI_OPERATOR_BOX_H #define MLAPI_OPERATOR_BOX_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_Operator_Box.h @@ -64,10 +70,3 @@ class ML_Operator_Box { } // namespace MLAPI #endif // MLAPI_OPERATOR_BOX_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_Operator_Utils.h b/packages/ml/src/MLAPI/MLAPI_Operator_Utils.h index c78314bcb0fc..14f43a47b265 100644 --- a/packages/ml/src/MLAPI/MLAPI_Operator_Utils.h +++ b/packages/ml/src/MLAPI/MLAPI_Operator_Utils.h @@ -1,5 +1,11 @@ #ifndef ML_OPERATOR_UTILS_H #define ML_OPERATOR_UTILS_H + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif /*! \file MLAPI_Operator_Utils @@ -82,10 +88,3 @@ Operator Duplicate(const Operator& A); } // namespace MLAPI #endif // ML_OPERATOR_UTILS_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_SAMIS.h b/packages/ml/src/MLAPI/MLAPI_SAMIS.h index 3c36df0c1253..2bb61f71d234 100644 --- a/packages/ml/src/MLAPI/MLAPI_SAMIS.h +++ b/packages/ml/src/MLAPI/MLAPI_SAMIS.h @@ -1,5 +1,11 @@ #ifndef MLAPI_SAMIS_H #define MLAPI_SAMIS_H + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif /*! \file MLAPI_SAMIS @@ -41,10 +47,3 @@ class Operator; } // namespace MLAPI #endif // MLAPI_SAMIS_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_SerialMatrix.h b/packages/ml/src/MLAPI/MLAPI_SerialMatrix.h index 855f86c1ae0d..52fc23371891 100644 --- a/packages/ml/src/MLAPI/MLAPI_SerialMatrix.h +++ b/packages/ml/src/MLAPI/MLAPI_SerialMatrix.h @@ -1,6 +1,12 @@ #ifndef MLAPI_SERIALMATRIX_H #define MLAPI_SERIALMATRIX_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_SerialMatrix.h @@ -435,10 +441,3 @@ class SerialMatrix : public Operator } // namespace MLAPI #endif // ifndef MLAPI_SERIALMATRIX_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_Space.h b/packages/ml/src/MLAPI/MLAPI_Space.h index 34cc81e0a4e7..637bc39084c3 100644 --- a/packages/ml/src/MLAPI/MLAPI_Space.h +++ b/packages/ml/src/MLAPI/MLAPI_Space.h @@ -1,6 +1,12 @@ #ifndef ML_SPACE_H #define ML_SPACE_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_Space.h @@ -352,10 +358,3 @@ class Space : public BaseObject { } // namespace MLAPI #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_TimeObject.h b/packages/ml/src/MLAPI/MLAPI_TimeObject.h index 40f0e4dc36c8..492606d8b6e1 100644 --- a/packages/ml/src/MLAPI/MLAPI_TimeObject.h +++ b/packages/ml/src/MLAPI/MLAPI_TimeObject.h @@ -5,6 +5,12 @@ #ifndef MLAPI_TIMEOBJECT_H #define MLAPI_TIMEOBJECT_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "MLAPI_Error.h" #include "MLAPI_Workspace.h" #include "Epetra_Time.h" @@ -73,10 +79,3 @@ class TimeObject { } // namespace MLPI #endif // MLAPI_TIMEOBJECT_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MLAPI/MLAPI_Workspace.h b/packages/ml/src/MLAPI/MLAPI_Workspace.h index 0adbe07793ed..7539afa85aeb 100644 --- a/packages/ml/src/MLAPI/MLAPI_Workspace.h +++ b/packages/ml/src/MLAPI/MLAPI_Workspace.h @@ -1,6 +1,12 @@ #ifndef MLAPI_WORKSPACE_H #define MLAPI_WORKSPACE_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file MLAPI_Workspace.h @@ -74,10 +80,3 @@ int GetMatrixType(); } // namespace MLAPI #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Main/ml_1level.h b/packages/ml/src/Main/ml_1level.h index bf0fb7bdf0bf..d30e243b3f29 100644 --- a/packages/ml/src/Main/ml_1level.h +++ b/packages/ml/src/Main/ml_1level.h @@ -13,6 +13,12 @@ #ifndef __ML1LEVEL__ #define __ML1LEVEL__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* ******************************************************************** */ /* data structure type definition */ /* ******************************************************************** */ @@ -59,11 +65,3 @@ struct ML_1Level_Struct }; #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Main/ml_ggb.h b/packages/ml/src/Main/ml_ggb.h index c6a903d5de10..44828aa65189 100644 --- a/packages/ml/src/Main/ml_ggb.h +++ b/packages/ml/src/Main/ml_ggb.h @@ -5,6 +5,12 @@ #ifndef __MLGGB_ #define __MLGGB_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #define SHIFTS 0 @@ -99,10 +105,3 @@ void PREFIX PDNAUPD_F77(int *, int *, char *, int *, char *, int *, double *, do #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Main/ml_seg_precond.h b/packages/ml/src/Main/ml_seg_precond.h index 29f9833ad58b..8bb01672efc4 100644 --- a/packages/ml/src/Main/ml_seg_precond.h +++ b/packages/ml/src/Main/ml_seg_precond.h @@ -12,6 +12,12 @@ #ifndef __SEGSTRUCT__ #define __SEGSTRUCT__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* ******************************************************************** */ /* local include files */ /* ******************************************************************** */ @@ -222,12 +228,3 @@ extern double ML_Cycle_MGV(ML_1Level *curr, double *sol, double *rhs, #endif #endif #endif - - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Main/ml_struct.h b/packages/ml/src/Main/ml_struct.h index aa09b0774655..3f7cdc3d236c 100755 --- a/packages/ml/src/Main/ml_struct.h +++ b/packages/ml/src/Main/ml_struct.h @@ -13,6 +13,12 @@ #ifndef __MLSTRUCT__ #define __MLSTRUCT__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* ******************************************************************** */ /* data structure type definition */ /* ******************************************************************** */ @@ -422,13 +428,3 @@ extern int ML_Get_Label( ML *ml, char *label); #endif - - - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Main/ml_viz_stats.h b/packages/ml/src/Main/ml_viz_stats.h index 084628438011..636764eac534 100644 --- a/packages/ml/src/Main/ml_viz_stats.h +++ b/packages/ml/src/Main/ml_viz_stats.h @@ -6,6 +6,12 @@ #ifndef __MLVIZSTATS__ #define __MLVIZSTATS__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*MS*/ #define ML_AGGREGATE_VIZ_STATS_ID 24680 @@ -35,10 +41,3 @@ typedef struct ML_Aggregate_Viz_Stats_Struct /*ms*/ #endif /* #ifndef __MLAGGMETIS__ */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Main/mli_solver.h b/packages/ml/src/Main/mli_solver.h index f0e265c8d0f4..ccd6abbf3c48 100644 --- a/packages/ml/src/Main/mli_solver.h +++ b/packages/ml/src/Main/mli_solver.h @@ -13,6 +13,12 @@ #ifndef _MLSOLVERIFACE_ #define _MLSOLVERIFACE_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_comm.h" #include "ml_aggregate.h" @@ -134,11 +140,3 @@ extern int MLI_Solver_Construct_LocalCSRMatrix(int nrows, int *mat_ia, #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MatrixFree/ml_ElementByElement_SingleElement.h b/packages/ml/src/MatrixFree/ml_ElementByElement_SingleElement.h index 366198dcee6c..15441590956a 100644 --- a/packages/ml/src/MatrixFree/ml_ElementByElement_SingleElement.h +++ b/packages/ml/src/MatrixFree/ml_ElementByElement_SingleElement.h @@ -5,6 +5,12 @@ #ifndef ML_ELEMENT_BY_ELEMENT_SINGLE_ELEMENT_H #define ML_ELEMENT_BY_ELEMENT_SINGLE_ELEMENT_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" #ifdef HAVE_ML_EPETRA #ifdef HAVE_MPI @@ -293,10 +299,3 @@ class ElementByElement_SingleElement: public Epetra_Operator #endif // HAVE_ML_EPETRA #endif // ML_ELEMENT_BY_ELEMENT_SINGLE_ELEMENT_H - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/MatrixFree/ml_MatrixFreePreconditioner.h b/packages/ml/src/MatrixFree/ml_MatrixFreePreconditioner.h index e069b574816f..a785f575d5ce 100644 --- a/packages/ml/src/MatrixFree/ml_MatrixFreePreconditioner.h +++ b/packages/ml/src/MatrixFree/ml_MatrixFreePreconditioner.h @@ -5,6 +5,12 @@ #ifndef ML_MATRIX_FREE_PRECONDITIONER #define ML_MATRIX_FREE_PRECONDITIONER +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! * \file ml_MatrixFreePreconditioner.h * @@ -316,10 +322,3 @@ class MatrixFreePreconditioner : public Epetra_Operator #endif // HAVE_ML_EPETRA #endif // ML_MATRIX_FREE_PRECONDITIONER - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Operator/ml_mat_formats.h b/packages/ml/src/Operator/ml_mat_formats.h index fee19fde7c6c..8ebeff2c5eea 100644 --- a/packages/ml/src/Operator/ml_mat_formats.h +++ b/packages/ml/src/Operator/ml_mat_formats.h @@ -13,6 +13,12 @@ #ifndef _MLMATFORMATS_ #define _MLMATFORMATS_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* ******************************************************************** */ /* Structure used for ML_MSR_getrows and ML_CSR_getrows */ @@ -160,11 +166,3 @@ extern int ML_Matrix_DCSR_Matvec(ML_Operator *,int,double*,int,double*); #endif #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Operator/ml_op_utils.h b/packages/ml/src/Operator/ml_op_utils.h index 9f11b2b49968..3bae97af1324 100644 --- a/packages/ml/src/Operator/ml_op_utils.h +++ b/packages/ml/src/Operator/ml_op_utils.h @@ -13,6 +13,12 @@ #ifndef __MLMATRIX__ #define __MLMATRIX__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" /************************************************************************/ @@ -150,10 +156,3 @@ extern void ML_Operator_Copy_Statistics(ML_Operator *source, ML_Operator *target #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Operator/ml_operator.h b/packages/ml/src/Operator/ml_operator.h index e357e089bb0e..46ab3054c443 100644 --- a/packages/ml/src/Operator/ml_operator.h +++ b/packages/ml/src/Operator/ml_operator.h @@ -13,6 +13,12 @@ #ifndef __MLOPERATOR__ #define __MLOPERATOR__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* ******************************************************************** */ /* data structure type definition */ /* ******************************************************************** */ @@ -387,10 +393,3 @@ extern int ML_Epetra_CRSinsert(ML_Operator *, int, int *, double *, int); #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Operator/ml_operator_blockmat.h b/packages/ml/src/Operator/ml_operator_blockmat.h index e01bf4ec7379..fd10cb37fde3 100644 --- a/packages/ml/src/Operator/ml_operator_blockmat.h +++ b/packages/ml/src/Operator/ml_operator_blockmat.h @@ -6,6 +6,12 @@ #ifndef __MLOPERATOR_BLOCKMAT__ #define __MLOPERATOR_BLOCKMAT__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_operator.h" /*****************************************************************************/ @@ -61,10 +67,3 @@ extern int ML_Operator_blockmat_set_M_mat_destroy(ML_Operator *blockmat, #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Operator/ml_operatoragx.h b/packages/ml/src/Operator/ml_operatoragx.h index bdf1a3d86d1f..6b30c2cddfb5 100644 --- a/packages/ml/src/Operator/ml_operatoragx.h +++ b/packages/ml/src/Operator/ml_operatoragx.h @@ -13,6 +13,12 @@ #ifndef _MLOPERATORAGX_ #define _MLOPERATORAGX_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* ******************************************************************** */ /* these include are for (1) memory allocation, (2) communication */ /* buffer access, and (3) communication (recv, send) */ @@ -88,11 +94,3 @@ extern int ML_OperatorAGX_Gen_ComminfoOp(ML_OperatorAGX *vop, ML_Operator *Rmat, #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Operator/ml_rap.h b/packages/ml/src/Operator/ml_rap.h index 06035ee8a559..c76763207373 100644 --- a/packages/ml/src/Operator/ml_rap.h +++ b/packages/ml/src/Operator/ml_rap.h @@ -13,6 +13,12 @@ #ifndef _MLRAP_ #define _MLRAP_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_defs.h" #include "ml_struct.h" @@ -138,10 +144,3 @@ extern int ML_determine_Bblkrows(int start, int *end, ML_Operator *Amatrix, #define ML_TRUE 1 #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/RefMaxwell/ml_EdgeMatrixFreePreconditioner.h b/packages/ml/src/RefMaxwell/ml_EdgeMatrixFreePreconditioner.h index a98dbee92090..b06cea0303c5 100644 --- a/packages/ml/src/RefMaxwell/ml_EdgeMatrixFreePreconditioner.h +++ b/packages/ml/src/RefMaxwell/ml_EdgeMatrixFreePreconditioner.h @@ -15,6 +15,12 @@ #ifndef ML_EDGE_MATRIX_FREE_PRECONDITIONER_H #define ML_EDGE_MATRIX_FREE_PRECONDITIONER_H + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif #if defined(HAVE_ML_EPETRA) && defined(HAVE_ML_TEUCHOS) #include "Epetra_Comm.h" #include "Epetra_Map.h" @@ -233,10 +239,3 @@ namespace ML_Epetra #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/RefMaxwell/ml_FaceMatrixFreePreconditioner.h b/packages/ml/src/RefMaxwell/ml_FaceMatrixFreePreconditioner.h index 40dda475f6a0..18c9a562da0c 100644 --- a/packages/ml/src/RefMaxwell/ml_FaceMatrixFreePreconditioner.h +++ b/packages/ml/src/RefMaxwell/ml_FaceMatrixFreePreconditioner.h @@ -15,6 +15,12 @@ #ifndef ML_FACE_MATRIX_FREE_PRECONDITIONER_H #define ML_FACE_MATRIX_FREE_PRECONDITIONER_H + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif #if defined(HAVE_ML_EPETRA) && defined(HAVE_ML_TEUCHOS) #include "Epetra_Comm.h" #include "Epetra_Map.h" @@ -233,10 +239,3 @@ namespace ML_Epetra #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/RefMaxwell/ml_GradDiv.h b/packages/ml/src/RefMaxwell/ml_GradDiv.h index c34a75d0ac80..d3e00ad50d51 100644 --- a/packages/ml/src/RefMaxwell/ml_GradDiv.h +++ b/packages/ml/src/RefMaxwell/ml_GradDiv.h @@ -16,6 +16,12 @@ #ifndef ML_GRADDIV_H #define ML_GRADDIV_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + // Some compilers think this name is too long... #define GradDivPreconditioner GDP @@ -245,10 +251,3 @@ namespace ML_Epetra #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/RefMaxwell/ml_RefMaxwell.h b/packages/ml/src/RefMaxwell/ml_RefMaxwell.h index 1ddf924c9bd2..8d5502de9307 100644 --- a/packages/ml/src/RefMaxwell/ml_RefMaxwell.h +++ b/packages/ml/src/RefMaxwell/ml_RefMaxwell.h @@ -16,6 +16,12 @@ #ifndef ML_REFMAXWELL_H #define ML_REFMAXWELL_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + // Some compilers think this name is too long... #define RefMaxwellPreconditioner ML_RMP @@ -316,10 +322,3 @@ namespace ML_Epetra #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/RefMaxwell/ml_RefMaxwell_11_Operator.h b/packages/ml/src/RefMaxwell/ml_RefMaxwell_11_Operator.h index c6d828b103fc..a4ce37dc4b89 100644 --- a/packages/ml/src/RefMaxwell/ml_RefMaxwell_11_Operator.h +++ b/packages/ml/src/RefMaxwell/ml_RefMaxwell_11_Operator.h @@ -18,6 +18,12 @@ #ifndef ML_REFMAXWELL_11_OPERATOR_H #define ML_REFMAXWELL_11_OPERATOR_H + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif #if defined(HAVE_ML_EPETRA) && defined (HAVE_ML_EPETRAEXT) #include "Epetra_Comm.h" #include "Epetra_Map.h" @@ -164,10 +170,3 @@ class ML_RefMaxwell_11_Operator: public Epetra_Operator_With_MatMat{ }//end namespace #endif #endif /*ML_REFMAXWELL_11_OPERATOR_H*/ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/RefMaxwell/ml_RefMaxwell_Utils.h b/packages/ml/src/RefMaxwell/ml_RefMaxwell_Utils.h index 54dcde01a8dc..d4a28f15d716 100644 --- a/packages/ml/src/RefMaxwell/ml_RefMaxwell_Utils.h +++ b/packages/ml/src/RefMaxwell/ml_RefMaxwell_Utils.h @@ -1,6 +1,12 @@ #ifndef ML_REFMAXWELL_UTILS_H #define ML_REFMAXWELL_UTILS_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #if defined(HAVE_ML_EPETRA) && defined(HAVE_ML_TEUCHOS) #include "Epetra_Comm.h" #include "Epetra_Map.h" @@ -50,10 +56,3 @@ namespace ML_Epetra #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Smoother/ml_csolve.h b/packages/ml/src/Smoother/ml_csolve.h index a5b45fcb4b51..9c5194e9a3a1 100644 --- a/packages/ml/src/Smoother/ml_csolve.h +++ b/packages/ml/src/Smoother/ml_csolve.h @@ -13,6 +13,12 @@ #ifndef __MLCSOLVE__ #define __MLCSOLVE__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* ******************************************************************** */ /* data structure type definition */ /* ******************************************************************** */ @@ -96,10 +102,3 @@ extern int ML_CSolve_Clean_Aggr(void *, ML_CSolveFunc *); #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Smoother/ml_mls.h b/packages/ml/src/Smoother/ml_mls.h index 47579e3bbcc0..14b2f66c3573 100644 --- a/packages/ml/src/Smoother/ml_mls.h +++ b/packages/ml/src/Smoother/ml_mls.h @@ -5,6 +5,12 @@ #ifndef __MLMLS__ #define __MLMLS__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #define MLS_MAX_DEG 5 /* max. degree of MLS smoother */ @@ -61,10 +67,3 @@ int ML_MLS_SPrime_Apply(void *sm,int inlen,double x[],int outlen, double rhs[]); #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Smoother/ml_smoother.h b/packages/ml/src/Smoother/ml_smoother.h index db029647bc0f..9b88b6b4678a 100644 --- a/packages/ml/src/Smoother/ml_smoother.h +++ b/packages/ml/src/Smoother/ml_smoother.h @@ -13,6 +13,12 @@ #ifndef __MLSMOOTHER__ #define __MLSMOOTHER__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* ******************************************************************** */ /* data structure type definition */ /* ******************************************************************** */ @@ -398,11 +404,3 @@ extern int DinvA(ML_Operator *data, int in, double p[], int out, double ap[]); #endif #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Smoother/ml_solver.h b/packages/ml/src/Smoother/ml_solver.h index f03704ddff78..ebe9e1b634a7 100644 --- a/packages/ml/src/Smoother/ml_solver.h +++ b/packages/ml/src/Smoother/ml_solver.h @@ -13,6 +13,12 @@ #ifndef _MLSOLVER_ #define _MLSOLVER_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* #include */ #include "ml_common.h" #include "ml_defs.h" @@ -66,10 +72,3 @@ int ML_Solver_Check( ML_Solver *sol ); } #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Smoother/ml_superlu.h b/packages/ml/src/Smoother/ml_superlu.h index a2ff691edbb9..7a355bc953ba 100644 --- a/packages/ml/src/Smoother/ml_superlu.h +++ b/packages/ml/src/Smoother/ml_superlu.h @@ -12,6 +12,12 @@ #ifndef __MLSUPERLU__ #define __MLSUPERLU__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_solver.h" @@ -71,10 +77,3 @@ extern void ML_SuperLU_Set_Tile( int nprocs, int* tsz, int* stile, #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Smoother/ml_xxt.h b/packages/ml/src/Smoother/ml_xxt.h index 8567a3e097b3..a06ab41f5247 100644 --- a/packages/ml/src/Smoother/ml_xxt.h +++ b/packages/ml/src/Smoother/ml_xxt.h @@ -4,6 +4,12 @@ /* ******************************************************************** */ #ifndef __MLXYT__ #define __MLXYT__ + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif #include "ml_common.h" extern void setup_henry_xxt(ML *my_ml, int grid0, int **imapper, int **separator, int **sep_size, int *Nseparators, int *Nlocal, int *Nghost, @@ -20,10 +26,3 @@ extern void ML_subexchange_bdry(double x[], ML_CommInfoOP *comm_info, int start_location, int total_send, ML_Comm *comm, int mask); #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Smoother/ml_xyt.h b/packages/ml/src/Smoother/ml_xyt.h index cc178d8e3b23..f639f163121d 100644 --- a/packages/ml/src/Smoother/ml_xyt.h +++ b/packages/ml/src/Smoother/ml_xyt.h @@ -5,6 +5,12 @@ #ifndef __MLXYT__ #define __MLXYT__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_operator.h" @@ -49,10 +55,3 @@ extern int ML_Comm_subGappendInt(ML_Comm *com_ptr, int *vals, int *cur_length, #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/Epetra_Multi_CrsMatrix.h b/packages/ml/src/Utils/Epetra_Multi_CrsMatrix.h index 92827ff428d5..b3806aca4fd6 100644 --- a/packages/ml/src/Utils/Epetra_Multi_CrsMatrix.h +++ b/packages/ml/src/Utils/Epetra_Multi_CrsMatrix.h @@ -17,6 +17,12 @@ #ifndef ML_EPETRA_MULTI_CRS_MATRIX_H #define ML_EPETRA_MULTI_CRS_MATRIX_H + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif #if defined(HAVE_ML_EPETRA) #include "Epetra_Comm.h" #include "Epetra_Map.h" @@ -149,10 +155,3 @@ class Epetra_Multi_CrsMatrix: public Epetra_Operator_With_MatMat{ #endif #endif /*ML_EPETRA_MULTI_CRS_MATRIX_H*/ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/Epetra_Operator_With_MatMat.h b/packages/ml/src/Utils/Epetra_Operator_With_MatMat.h index 93227033dcf3..eba182a6f459 100644 --- a/packages/ml/src/Utils/Epetra_Operator_With_MatMat.h +++ b/packages/ml/src/Utils/Epetra_Operator_With_MatMat.h @@ -16,6 +16,12 @@ /* ******************************************************************** */ #ifndef EPETRA_OPERATOR_WITH_MATMAT_H #define EPETRA_OPERATOR_WITH_MATMAT_H + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif #if defined(HAVE_ML_EPETRA) #include "Epetra_Operator.h" #include "Epetra_CrsMatrix.h" @@ -53,10 +59,3 @@ class Epetra_Operator_With_MatMat: public Epetra_Operator { #endif #endif /* EPETRA_OPERATOR_WITH_MATMAT_H */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/jostle.h b/packages/ml/src/Utils/jostle.h index 0e981a82229b..5e240d3472cc 100644 --- a/packages/ml/src/Utils/jostle.h +++ b/packages/ml/src/Utils/jostle.h @@ -1,5 +1,11 @@ #ifndef __MLJOSTLEH__ #define __MLJOSTLEH__ + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif extern void jostle_env(char*); extern void jostle_wrkspc_input(int*,char*); @@ -16,10 +22,3 @@ extern int jostle_cut(void); extern double jostle_bal(void); extern double jostle_tim(void); #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_DD_prec.h b/packages/ml/src/Utils/ml_DD_prec.h index eb5f1419b888..046d1414866d 100644 --- a/packages/ml/src/Utils/ml_DD_prec.h +++ b/packages/ml/src/Utils/ml_DD_prec.h @@ -5,6 +5,12 @@ #ifndef ML_DD_PREC_H #define ML_DD_PREC_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_struct.h" #include "ml_smoother.h" @@ -39,12 +45,3 @@ int ML_Aggregate_Stats_ComputeCoordinates( ML *ml, ML_Aggregate *ag, #endif #endif /* ifdef ML_DD_PREC_H */ - - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_FilterType.h b/packages/ml/src/Utils/ml_FilterType.h index d44ba2de1a8e..191c154ad4dc 100644 --- a/packages/ml/src/Utils/ml_FilterType.h +++ b/packages/ml/src/Utils/ml_FilterType.h @@ -1,6 +1,12 @@ #ifndef ML_FILTERTYPE_H #define ML_FILTERTYPE_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* \file ml_FilterType.h * * \brief Enum for filtering. @@ -32,10 +38,3 @@ enum FilterType { } // namespace ML_Epetra #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_Ifpack_ML.h b/packages/ml/src/Utils/ml_Ifpack_ML.h index f5e788f08dec..8136dd587457 100644 --- a/packages/ml/src/Utils/ml_Ifpack_ML.h +++ b/packages/ml/src/Utils/ml_Ifpack_ML.h @@ -18,6 +18,12 @@ #ifndef ML_IFPACK_ML_H #define ML_IFPACK_ML_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" #if defined(HAVE_ML_EPETRA) && defined(HAVE_ML_TEUCHOS) && defined(HAVE_ML_IFPACK) @@ -262,10 +268,3 @@ class Ifpack_ML : public Ifpack_Preconditioner { #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_MultiLevelOperator.h b/packages/ml/src/Utils/ml_MultiLevelOperator.h index c4557ae5fdcb..ebe065c143e3 100644 --- a/packages/ml/src/Utils/ml_MultiLevelOperator.h +++ b/packages/ml/src/Utils/ml_MultiLevelOperator.h @@ -32,6 +32,12 @@ #ifndef ML_MULTILEVELOPERATOR_H #define ML_MULTILEVELOPERATOR_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + class Epetra_MultiVector; class Epetra_BlockMap; class Epetra_Comm; @@ -208,11 +214,3 @@ class MultiLevelOperator: public virtual Epetra_Operator { } #endif /* ML_MULTILEVELOPERATOR_H */ - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_MultiLevelPreconditioner.h b/packages/ml/src/Utils/ml_MultiLevelPreconditioner.h index 0a9a7c07f481..04cf20122b86 100644 --- a/packages/ml/src/Utils/ml_MultiLevelPreconditioner.h +++ b/packages/ml/src/Utils/ml_MultiLevelPreconditioner.h @@ -21,6 +21,12 @@ #ifndef ML_MULTILEVELPRECONDITIONER_H #define ML_MULTILEVELPRECONDITIONER_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" #if defined(HAVE_ML_EPETRA) && defined(HAVE_ML_TEUCHOS) @@ -1350,10 +1356,3 @@ extern int buildCompressedA(MLVec& inputRowPtr, MLVec& inputCols, #endif /* defined HAVE_ML_EPETRA and HAVE_ML_TEUCHOS */ #endif /* define ML_MULTILEVELPRECONDITIONER_H */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_Preconditioner.h b/packages/ml/src/Utils/ml_Preconditioner.h index 5fedb50d5888..50950b74a787 100644 --- a/packages/ml/src/Utils/ml_Preconditioner.h +++ b/packages/ml/src/Utils/ml_Preconditioner.h @@ -16,6 +16,12 @@ #ifndef ML_PRECONDITIONER_H #define ML_PRECONDITIONER_H + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif #if defined(HAVE_ML_EPETRA) && defined(HAVE_ML_TEUCHOS) #include "Epetra_Comm.h" #include "Epetra_Map.h" @@ -165,10 +171,3 @@ namespace ML_Epetra #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_RowMatrix.h b/packages/ml/src/Utils/ml_RowMatrix.h index 928187589d35..230cd78e09f6 100644 --- a/packages/ml/src/Utils/ml_RowMatrix.h +++ b/packages/ml/src/Utils/ml_RowMatrix.h @@ -5,6 +5,12 @@ #ifndef ML_ROWMATRIX_H #define ML_ROWMATRIX_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /*! \file ml_RowMatrix.h * \brief Wrapper from ML_Operator to Epetra_RowMatrix */ @@ -389,10 +395,3 @@ class RowMatrix : public virtual Epetra_RowMatrix { #endif /* HAVE_ML_EPETRA */ #endif /* ML_ROWMATRIX_H */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_ValidateParameters.h b/packages/ml/src/Utils/ml_ValidateParameters.h index f5008ad8bb73..9a0839dbb90e 100644 --- a/packages/ml/src/Utils/ml_ValidateParameters.h +++ b/packages/ml/src/Utils/ml_ValidateParameters.h @@ -19,6 +19,12 @@ #ifndef ML_VALIDATEPARAMETERS_H #define ML_VALIDATEPARAMETERS_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" #if defined(HAVE_ML_EPETRA) && defined(HAVE_ML_TEUCHOS) @@ -48,10 +54,3 @@ namespace ML_Epetra } #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_agg_info.h b/packages/ml/src/Utils/ml_agg_info.h index 3a5d4490a382..bdbeca01d8d3 100644 --- a/packages/ml/src/Utils/ml_agg_info.h +++ b/packages/ml/src/Utils/ml_agg_info.h @@ -10,6 +10,12 @@ #ifndef __MLAGGINFO__ #define __MLAGGINFO__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #ifndef ML_CPP #ifdef __cplusplus @@ -79,10 +85,3 @@ extern "C" { #endif #endif /* #ifndef __MLAGGMETIS__ */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_amesos.h b/packages/ml/src/Utils/ml_amesos.h index a7189a722be6..7387652f9838 100644 --- a/packages/ml/src/Utils/ml_amesos.h +++ b/packages/ml/src/Utils/ml_amesos.h @@ -6,6 +6,12 @@ #ifndef __ML_AMESOS_H__ #define __ML_AMESOS_H__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include #include #include "ml_struct.h" @@ -72,10 +78,3 @@ int ML_Gen_Smoother_Amesos(ML *ml, int nl, int AmesosSolver, #endif #endif /* #ifndef __ML_AMESOS_H__ */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_amesos_wrap.h b/packages/ml/src/Utils/ml_amesos_wrap.h index b74655283a95..19e9be08d6dc 100644 --- a/packages/ml/src/Utils/ml_amesos_wrap.h +++ b/packages/ml/src/Utils/ml_amesos_wrap.h @@ -44,6 +44,12 @@ #ifndef _MLAMESOSWRAP_ #define _MLAMESOSWRAP_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" #ifndef ML_CPP @@ -99,10 +105,3 @@ extern "C" { #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_anasazi.h b/packages/ml/src/Utils/ml_anasazi.h index efffcdb13ced..061d3b699e37 100644 --- a/packages/ml/src/Utils/ml_anasazi.h +++ b/packages/ml/src/Utils/ml_anasazi.h @@ -24,6 +24,12 @@ #ifndef _ML_ANASAZI_H_ #define _ML_ANASAZI_H_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" #include "ml_struct.h" #include "ml_smoother.h" @@ -130,10 +136,3 @@ extern "C" #endif #endif /* #ifndef _ML_ANASAZI_H_ */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_aztec_lapack.h b/packages/ml/src/Utils/ml_aztec_lapack.h index f11f8552d447..280816bb27a3 100644 --- a/packages/ml/src/Utils/ml_aztec_lapack.h +++ b/packages/ml/src/Utils/ml_aztec_lapack.h @@ -10,6 +10,12 @@ #ifndef __MLAZTECLAPACK__ #define __MLAZTECLAPACK__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #ifdef AZTEC @@ -51,10 +57,3 @@ #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_aztec_utils.h b/packages/ml/src/Utils/ml_aztec_utils.h index cec1809d44d4..91c0d771bef2 100644 --- a/packages/ml/src/Utils/ml_aztec_utils.h +++ b/packages/ml/src/Utils/ml_aztec_utils.h @@ -10,6 +10,12 @@ #ifndef __MLAZUTILS__ #define __MLAZUTILS__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #ifndef ML_CPP #ifdef __cplusplus @@ -299,11 +305,3 @@ void AZ_ML_Build_NodalCoordinates( int N, int N_update, int N_external, /*********************************************************************/ #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_eigf2c.h b/packages/ml/src/Utils/ml_eigf2c.h index a1b93b2a4a00..2a294f5abb45 100644 --- a/packages/ml/src/Utils/ml_eigf2c.h +++ b/packages/ml/src/Utils/ml_eigf2c.h @@ -5,6 +5,12 @@ #ifndef __MLEIGF2C__ #define __MLEIGF2C__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_lapack.h" #include "ml_memory.h" @@ -74,12 +80,3 @@ extern void PREFIX PDNEUPD_F77(int *, #endif - - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_epetra.h b/packages/ml/src/Utils/ml_epetra.h index 897257cc810e..5c5f35cbb6f4 100644 --- a/packages/ml/src/Utils/ml_epetra.h +++ b/packages/ml/src/Utils/ml_epetra.h @@ -5,6 +5,12 @@ #ifndef ML_EPETRA_H #define ML_EPETRA_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + // prints out an error message if variable is not zero, // and return this value. This macro always returns. #define ML_RETURN(ml_err) \ @@ -36,10 +42,3 @@ exit(ml_err); } #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_epetra_operator.h b/packages/ml/src/Utils/ml_epetra_operator.h index c0f94149a224..2c75d4c7d6fa 100644 --- a/packages/ml/src/Utils/ml_epetra_operator.h +++ b/packages/ml/src/Utils/ml_epetra_operator.h @@ -5,6 +5,12 @@ #ifndef ML_EPETRA_OPERATOR_H #define ML_EPETRA_OPERATOR_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* simply recall the other header. This is for compatibility * reasons: file "ml_MultiLevelOperator.h" was previously * called "ml_epetra_operator.h". @@ -13,10 +19,3 @@ #include "ml_MultiLevelOperator.h" #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_epetra_preconditioner.h b/packages/ml/src/Utils/ml_epetra_preconditioner.h index 15bcb96b4a2d..01952db0fa9c 100644 --- a/packages/ml/src/Utils/ml_epetra_preconditioner.h +++ b/packages/ml/src/Utils/ml_epetra_preconditioner.h @@ -5,6 +5,12 @@ #ifndef ML_EPETRA_PRECONDITIONER_H #define ML_EPETRA_PRECONDITIONER_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* simply recall the other header. This is for compatibility * reasons: file "ml_MultiLevelPreconditioner.h" was previously * called "ml_epetra_preconditioner.h". @@ -13,10 +19,3 @@ #include "ml_MultiLevelPreconditioner.h" #endif /* _ML_EPETRA_PRECONDITIONER_H_ */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_epetra_utils.h b/packages/ml/src/Utils/ml_epetra_utils.h index 3c3705b5edfc..97a4c3a33df0 100644 --- a/packages/ml/src/Utils/ml_epetra_utils.h +++ b/packages/ml/src/Utils/ml_epetra_utils.h @@ -15,6 +15,12 @@ #ifndef _ML_EPETRA_UTILS_H_ #define _ML_EPETRA_UTILS_H_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + class Epetra_Comm; class Epetra_BlockMap; class Epetra_MultiVector; @@ -374,10 +380,3 @@ bool Epetra_ML_writegidviz(char* filename, int label, void ML_BreakForDebugger(const Epetra_Comm& comm); #endif /* _ML_EPETRA_UTILS_H_ */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_ifpack.h b/packages/ml/src/Utils/ml_ifpack.h index e76517d3a220..416e21d81c7a 100644 --- a/packages/ml/src/Utils/ml_ifpack.h +++ b/packages/ml/src/Utils/ml_ifpack.h @@ -6,6 +6,12 @@ #ifndef ML_IFPACK_H #define ML_IFPACK_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" typedef struct Ifpack_Handle_Struct Ifpack_Handle_Type; @@ -43,10 +49,3 @@ void ML_Ifpack_Destroy(void * Ifpack_Handle); #endif #endif /* #ifndef ML_IFPACK_H */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_ifpack_epetra_wrap.h b/packages/ml/src/Utils/ml_ifpack_epetra_wrap.h index aaf85c532325..019a28ce2c92 100644 --- a/packages/ml/src/Utils/ml_ifpack_epetra_wrap.h +++ b/packages/ml/src/Utils/ml_ifpack_epetra_wrap.h @@ -18,6 +18,12 @@ #ifndef ML_IFPACK_EPETRA_WRAP #define ML_IFPACK_EPETRA_WRAP +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" #if defined(HAVE_ML_EPETRA) && defined(HAVE_ML_TEUCHOS) && defined(HAVE_ML_IFPACK) @@ -33,10 +39,3 @@ namespace ML_Epetra { } #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_ifpack_wrap.h b/packages/ml/src/Utils/ml_ifpack_wrap.h index f146c179d502..e968462c69a6 100644 --- a/packages/ml/src/Utils/ml_ifpack_wrap.h +++ b/packages/ml/src/Utils/ml_ifpack_wrap.h @@ -16,6 +16,12 @@ #ifndef ML_IFPACK_WRAP #define ML_IFPACK_WRAP +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" #if defined(HAVE_ML_EPETRA) && defined(HAVE_ML_TEUCHOS) && defined(HAVE_ML_IFPACK) @@ -46,10 +52,3 @@ int ML_Gen_Smoother_Ifpack(ML *ml, const char* Type, int Overlap, #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_intlist.h b/packages/ml/src/Utils/ml_intlist.h index 58f066733e4b..a2ba91e513f2 100644 --- a/packages/ml/src/Utils/ml_intlist.h +++ b/packages/ml/src/Utils/ml_intlist.h @@ -14,6 +14,12 @@ #ifndef _MLINTLIST_ #define _MLINTLIST_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include #include "ml_common.h" #include "ml_defs.h" @@ -60,11 +66,3 @@ extern int ML_IntList_Print(ML_IntList *); #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_lapack.h b/packages/ml/src/Utils/ml_lapack.h index 3f442bc8cb25..2cdcee54776e 100644 --- a/packages/ml/src/Utils/ml_lapack.h +++ b/packages/ml/src/Utils/ml_lapack.h @@ -5,6 +5,12 @@ #ifndef ML_BLAS_LAPACK_WRAPPERS_H #define ML_BLAS_LAPACK_WRAPPERS_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + /* Wrappers for blas & lapack routines. This file is the result of merging * Epetra_BLAS_wrappers.h & Epetra_LAPACK_wrappers.h and a few cosmetic * changes. */ @@ -679,10 +685,3 @@ void PREFIX XERBLA_F77(ml_fcd, int *info); #endif #endif /* ML_BLAS_LAPACK_WRAPPERS_H */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_memory.h b/packages/ml/src/Utils/ml_memory.h index d3105aaa62ad..1dd3d292cb20 100644 --- a/packages/ml/src/Utils/ml_memory.h +++ b/packages/ml/src/Utils/ml_memory.h @@ -13,6 +13,12 @@ #ifndef __MLMEM__ #define __MLMEM__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include #include #include "ml_common.h" @@ -88,11 +94,3 @@ extern int ML_MaxMemorySize(); #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_petsc.h b/packages/ml/src/Utils/ml_petsc.h index 374e940b2e9a..ebfbcda4b0ba 100644 --- a/packages/ml/src/Utils/ml_petsc.h +++ b/packages/ml/src/Utils/ml_petsc.h @@ -18,6 +18,12 @@ #ifndef ML_PETSC_H #define ML_PETSC_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #ifdef HAVE_ML_PETSC #include "petscksp.h" @@ -29,10 +35,3 @@ typedef KSP ML_PetscKSP; #endif /*ifdef HAVE_ML_PETSC*/ #endif /* define ML_PETSC_H */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_rbm.h b/packages/ml/src/Utils/ml_rbm.h index 51e3f54685cf..6348e192c6a7 100644 --- a/packages/ml/src/Utils/ml_rbm.h +++ b/packages/ml/src/Utils/ml_rbm.h @@ -13,6 +13,12 @@ #ifndef __MLRBMH__ #define __MLRBMH__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #ifndef ML_CPP @@ -32,11 +38,3 @@ extern int ML_Coord2RBM(int Nnodes, double x[], double y[], double z[], double r #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_read_utils.h b/packages/ml/src/Utils/ml_read_utils.h index 318ffde317ca..071ada80e06b 100644 --- a/packages/ml/src/Utils/ml_read_utils.h +++ b/packages/ml/src/Utils/ml_read_utils.h @@ -6,6 +6,12 @@ #ifndef _MLREADER_ #define _MLREADER_ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include #include "ml_common.h" #include "ml_memory.h" @@ -61,10 +67,3 @@ extern int ML_strcmp(char *input, char *string); #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_self.h b/packages/ml/src/Utils/ml_self.h index fec04997a824..dd5c251a0d8a 100644 --- a/packages/ml/src/Utils/ml_self.h +++ b/packages/ml/src/Utils/ml_self.h @@ -6,6 +6,12 @@ #ifndef ML_SELF_H #define ML_SELF_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" #ifndef ML_CPP @@ -34,10 +40,3 @@ extern void ML_Self_Destroy(void * Self_Handle); #endif #endif /* #ifndef ML_SELF_H */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_self_wrap.h b/packages/ml/src/Utils/ml_self_wrap.h index f3c0952f820f..01fb4236e908 100644 --- a/packages/ml/src/Utils/ml_self_wrap.h +++ b/packages/ml/src/Utils/ml_self_wrap.h @@ -5,6 +5,12 @@ #ifndef ML_SELF_WRAP #define ML_SELF_WRAP +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" #if defined(HAVE_ML_EPETRA) && defined(HAVE_ML_TEUCHOS) && defined(HAVE_ML_IFPACK) @@ -36,10 +42,3 @@ int ML_Gen_Smoother_Self(ML *ml, int Overlap, int nl, int pre_or_post, #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_superlu_lapack.h b/packages/ml/src/Utils/ml_superlu_lapack.h index fe473b4392f7..d0f2b3df0793 100644 --- a/packages/ml/src/Utils/ml_superlu_lapack.h +++ b/packages/ml/src/Utils/ml_superlu_lapack.h @@ -4,6 +4,12 @@ /* ******************************************************************** */ #ifndef __MLSUPERLULAPACKH__ #define __MLSUPERLULAPACKH__ + +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif #if defined(SUPERLU) #include "ml_common.h" @@ -18,10 +24,3 @@ #endif #endif #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_twogrid_analysis.h b/packages/ml/src/Utils/ml_twogrid_analysis.h index 7e050d932b38..b872514e2810 100644 --- a/packages/ml/src/Utils/ml_twogrid_analysis.h +++ b/packages/ml/src/Utils/ml_twogrid_analysis.h @@ -13,6 +13,12 @@ #ifndef __MLTWOGRID__ #define __MLTWOGRID__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include "ml_defs.h" #include "ml_struct.h" @@ -47,11 +53,3 @@ double ML_GetTwoLevelConvergenceFactor(ML *ml, double *approx_soln, #endif #endif /*ifdef __MLTWOGRID__*/ - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_utils.h b/packages/ml/src/Utils/ml_utils.h index a54f3dd2dc29..3aea5297a773 100644 --- a/packages/ml/src/Utils/ml_utils.h +++ b/packages/ml/src/Utils/ml_utils.h @@ -13,6 +13,12 @@ #ifndef __MLUTILH__ #define __MLUTILH__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #ifndef __cplusplus #if defined(ICL) || defined(_MSC_VER) #include @@ -247,11 +253,3 @@ std::cout << "--- Leaving: #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_vampir.h b/packages/ml/src/Utils/ml_vampir.h index 0fbc812f971a..efe64450b26e 100644 --- a/packages/ml/src/Utils/ml_vampir.h +++ b/packages/ml/src/Utils/ml_vampir.h @@ -5,6 +5,12 @@ #ifndef __MLVAMPIREH__ #define __MLVAMPIREH__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_common.h" #include #include @@ -41,10 +47,3 @@ extern void ML_Vampir_Setup(void); #endif /*ifdef ML_VAMPIR*/ #endif - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_vec.h b/packages/ml/src/Utils/ml_vec.h index d649bebeffc3..3ae40011fd0a 100644 --- a/packages/ml/src/Utils/ml_vec.h +++ b/packages/ml/src/Utils/ml_vec.h @@ -13,6 +13,12 @@ #ifndef __MLVEC__ #define __MLVEC__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include /* #include */ #include "ml_common.h" @@ -72,11 +78,3 @@ extern int ML_DVector_Print(int length, double *data, char *label, ML_Comm *comm #endif #endif - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_viz_opendx.h b/packages/ml/src/Utils/ml_viz_opendx.h index b27af0c5e65d..7a61fcd309df 100644 --- a/packages/ml/src/Utils/ml_viz_opendx.h +++ b/packages/ml/src/Utils/ml_viz_opendx.h @@ -10,6 +10,12 @@ #ifndef __MLVIZOPENDX__ #define __MLVIZOPENDX__ +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_viz_stats.h" #ifndef ML_CPP @@ -33,10 +39,3 @@ extern "C" { #endif #endif /* #ifndef __MLVIZOPENDX__ */ - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_viz_vtk.h b/packages/ml/src/Utils/ml_viz_vtk.h index d304fdc032f8..3f6fe3e8c3d5 100644 --- a/packages/ml/src/Utils/ml_viz_vtk.h +++ b/packages/ml/src/Utils/ml_viz_vtk.h @@ -5,6 +5,12 @@ #ifndef ML_VIZ_VTK_H #define ML_VIZ_VTK_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" #include "ml_viz_stats.h" @@ -27,11 +33,3 @@ int ML_PlotVTK(int Npoints, double* x, double* y, double* z, #endif #endif /* #ifndef ML_VIZ_VTK_H */ - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/src/Utils/ml_viz_xyz.h b/packages/ml/src/Utils/ml_viz_xyz.h index 6a06c3606f41..f1caf124e521 100644 --- a/packages/ml/src/Utils/ml_viz_xyz.h +++ b/packages/ml/src/Utils/ml_viz_xyz.h @@ -5,6 +5,12 @@ #ifndef ML_VIZ_XYZ_H #define ML_VIZ_XYZ_H +#if defined(ML_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ML package is deprecated" +#endif +#endif + #include "ml_include.h" #include "ml_viz_stats.h" @@ -30,11 +36,3 @@ int ML_PlotXYZ(int Npoints, double* x, double* y, double* z, #endif #endif /* #ifndef ML_VIZ_XYZ_H */ - - -#if defined(ML_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ML package is deprecated" -#endif -#endif - diff --git a/packages/ml/test/ValidateParams/CMakeLists.txt b/packages/ml/test/ValidateParams/CMakeLists.txt index 41a2529966d4..2f451907e4b2 100644 --- a/packages/ml/test/ValidateParams/CMakeLists.txt +++ b/packages/ml/test/ValidateParams/CMakeLists.txt @@ -9,15 +9,15 @@ IF(ML_ENABLE_AztecOO AND ML_ENABLE_Amesos) COMM serial mpi ) - ASSERT_DEFINED(PYTHONINTERP_FOUND) - IF (PYTHONINTERP_FOUND) + ASSERT_DEFINED(Python3_EXECUTABLE) + IF (Python3_EXECUTABLE) TRIBITS_ADD_ADVANCED_TEST( ValidateParameters_compareTestOutput COMM serial mpi OVERALL_NUM_MPI_PROCS 1 # Should be 1,4,9 TEST_0 EXEC ml_Validate ARGS input1.xml OUTPUT_FILE ValidateParameters_compareTestOutput.out - TEST_1 CMND ${PYTHON_EXECUTABLE} + TEST_1 CMND ${Python3_EXECUTABLE} ARGS ${PROJECT_SOURCE_DIR}/commonTools/test/utilities/compareTestOutput evaluateCriteria baseline1.txt ValidateParameters_compareTestOutput.out PASS_REGULAR_EXPRESSION "Test passed." diff --git a/packages/muelu/research/regionMG/test/structured/CMakeLists.txt b/packages/muelu/research/regionMG/test/structured/CMakeLists.txt index 2c898f97272a..ca74dd9845a4 100644 --- a/packages/muelu/research/regionMG/test/structured/CMakeLists.txt +++ b/packages/muelu/research/regionMG/test/structured/CMakeLists.txt @@ -287,7 +287,7 @@ IF (${PACKAGE_NAME}_ENABLE_Amesos2) ARGS --linAlgebra=Tpetra --xml=structured_1dof.xml --matrixType=Star2D --nx=10 --ny=10 --smootherIts=2 --convergence-log=Star2D_GS_4.log --smootherType=Gauss NUM_MPI_PROCS 4 TEST_1 - CMND ${PYTHON_EXECUTABLE} + CMND ${Python3_EXECUTABLE} ARGS compare_residual_history.py gold_files/Star2D_GS_4.log.gold Star2D_GS_4.log 1.0e-12 STANDARD_PASS_OUTPUT FAIL_FAST @@ -302,7 +302,7 @@ IF (${PACKAGE_NAME}_ENABLE_Amesos2) ARGS --linAlgebra=Tpetra --xml=structured_linear_1dof.xml --matrixType=Brick3D --nx=10 --ny=10 --nz=10 --smootherIts=2 --convergence-log=Brick3D_linear_4.log NUM_MPI_PROCS 4 TEST_1 - CMND ${PYTHON_EXECUTABLE} + CMND ${Python3_EXECUTABLE} ARGS compare_residual_history.py gold_files/Brick3D_linear_4.log.gold Brick3D_linear_4.log 1.0e-12 STANDARD_PASS_OUTPUT FAIL_FAST @@ -317,7 +317,7 @@ IF (${PACKAGE_NAME}_ENABLE_Amesos2) ARGS --linAlgebra=Tpetra --xml=structured_linear_3dof.xml --matrixType=Elasticity3D --nx=10 --ny=10 --nz=10 --smootherIts=2 --convergence-log=Elasticity3D_linear_4.log --solverType=region NUM_MPI_PROCS 4 TEST_1 - CMND ${PYTHON_EXECUTABLE} + CMND ${Python3_EXECUTABLE} ARGS compare_residual_history.py gold_files/Elasticity3D_linear_4.log.gold Elasticity3D_linear_4.log 1.0e-12 STANDARD_PASS_OUTPUT FAIL_FAST @@ -332,7 +332,7 @@ IF (${PACKAGE_NAME}_ENABLE_Amesos2) ARGS --linAlgebra=Tpetra --xml=structured_linear_3dof.xml --matrixType=Elasticity3D --nx=10 --ny=10 --nz=10 --smootherIts=2 --convergence-log=Elasticity3D_CG_linear_4.log --solverType=CG NUM_MPI_PROCS 4 TEST_1 - CMND ${PYTHON_EXECUTABLE} + CMND ${Python3_EXECUTABLE} ARGS compare_residual_history.py gold_files/Elasticity3D_CG_linear_4.log.gold Elasticity3D_CG_linear_4.log 1.0e-12 STANDARD_PASS_OUTPUT FAIL_FAST @@ -347,7 +347,7 @@ IF (${PACKAGE_NAME}_ENABLE_Amesos2) ARGS --linAlgebra=Tpetra --xml=structured_linear_3dof.xml --matrixType=Elasticity3D --nx=10 --ny=10 --nz=10 --smootherIts=2 --convergence-log=Elasticity3D_Richardson_linear_4.log --solverType=Richardson NUM_MPI_PROCS 4 TEST_1 - CMND ${PYTHON_EXECUTABLE} + CMND ${Python3_EXECUTABLE} ARGS compare_residual_history.py gold_files/Elasticity3D_Richardson_linear_4.log.gold Elasticity3D_Richardson_linear_4.log 1.0e-12 STANDARD_PASS_OUTPUT FAIL_FAST @@ -366,7 +366,7 @@ IF (${PACKAGE_NAME}_ENABLE_Amesos2) ARGS --linAlgebra=Tpetra --xml=structured_linear_R_1dof.xml --matrixType=Brick3D --nx=19 --ny=19 --nz=10 --smootherIts=2 --convergence-log=Brick3D_linear_R_4_comp.log NUM_MPI_PROCS 4 TEST_2 - CMND ${PYTHON_EXECUTABLE} + CMND ${Python3_EXECUTABLE} ARGS compare_residual_history.py Brick3D_linear_4_comp.log Brick3D_linear_R_4_comp.log 1.0e-12 STANDARD_PASS_OUTPUT FAIL_FAST @@ -385,7 +385,7 @@ IF (${PACKAGE_NAME}_ENABLE_Amesos2) ARGS --linAlgebra=Tpetra --xml=structured_linear_3dof.xml --matrixType=Elasticity3D --nx=10 --ny=10 --nz=10 --smootherIts=2 --convergence-log=Elasticity3D_Richardson_linear_4.log --solverType=Richardson NUM_MPI_PROCS 4 TEST_2 - CMND ${PYTHON_EXECUTABLE} + CMND ${Python3_EXECUTABLE} ARGS compare_residual_history.py Elasticity3D_Region_linear_4.log Elasticity3D_Richardson_linear_4.log 1.0e-12 STANDARD_PASS_OUTPUT FAIL_FAST @@ -401,7 +401,7 @@ IF (${PACKAGE_NAME}_ENABLE_Amesos2) ARGS --linAlgebra=Tpetra --xml=structured_1dof.xml --matrixType=Star2D --nx=10 --ny=10 --smootherIts=2 --cycleType=W --convergence-log=Star2D_W.log NUM_MPI_PROCS 4 TEST_1 - CMND ${PYTHON_EXECUTABLE} + CMND ${Python3_EXECUTABLE} ARGS compare_residual_history.py gold_files/Star2D_W.log.gold Star2D_W.log 1.0e-12 STANDARD_PASS_OUTPUT FAIL_FAST diff --git a/packages/muelu/src/Transfers/PCoarsen/MueLu_IntrepidPCoarsenFactory_def.hpp b/packages/muelu/src/Transfers/PCoarsen/MueLu_IntrepidPCoarsenFactory_def.hpp index d6330caedaa9..796509b18c84 100644 --- a/packages/muelu/src/Transfers/PCoarsen/MueLu_IntrepidPCoarsenFactory_def.hpp +++ b/packages/muelu/src/Transfers/PCoarsen/MueLu_IntrepidPCoarsenFactory_def.hpp @@ -524,7 +524,7 @@ void GenerateRepresentativeBasisNodes(const Basis &basis, const SCFieldContainer for (size_t j = 0; j < numFieldsHi; j++) vmax = std::max(vmax, Teuchos::ScalarTraits::magnitude(LoValues_host(i, j))); - // 2nd pass: Find all values w/i threshhold of target + // 2nd pass: Find all values w/i threshold of target for (size_t j = 0; j < numFieldsHi; j++) { if (Teuchos::ScalarTraits::magnitude(vmax - LoValues_host(i, j)) < threshold * vmax) representative_node_candidates[i].push_back(j); diff --git a/packages/muelu/test/unit_tests/IntrepidPCoarsenFactory.cpp b/packages/muelu/test/unit_tests/IntrepidPCoarsenFactory.cpp index 6a1082a19a06..d67d1590dca6 100644 --- a/packages/muelu/test/unit_tests/IntrepidPCoarsenFactory.cpp +++ b/packages/muelu/test/unit_tests/IntrepidPCoarsenFactory.cpp @@ -46,15 +46,21 @@ namespace MueLuTests { /**** some helper methods and classes by Nate ****/ #ifndef TEST_MORE_COMBINATIONS -static const int MAX_LINE_DEGREE = (Intrepid2::Parameters::MaxOrder < 10) ? Intrepid2::Parameters::MaxOrder : 10; -static const int MAX_QUAD_DEGREE = (Intrepid2::Parameters::MaxOrder < 10) ? Intrepid2::Parameters::MaxOrder : 10; -static const int MAX_HEX_DEGREE = (Intrepid2::Parameters::MaxOrder < 4) ? Intrepid2::Parameters::MaxOrder : 4; -static const int MAX_RANK_COUNT = 4; +static const int MAX_LINE_DEGREE_EQUISPACED = (Intrepid2::Parameters::MaxOrder < 10) ? Intrepid2::Parameters::MaxOrder : 10; // equispaced line basis for p >= 10 leads to failures in GenerateRepresentativeBasisNodes: for p_lo = 7, p_hi = 10, e.g., some low-order basis members have no "candidates" found. (Change this to "11" to see the failure.) +static const int MAX_QUAD_DEGREE_EQUISPACED = (Intrepid2::Parameters::MaxOrder < 10) ? Intrepid2::Parameters::MaxOrder : 10; +static const int MAX_HEX_DEGREE_EQUISPACED = (Intrepid2::Parameters::MaxOrder < 4) ? Intrepid2::Parameters::MaxOrder : 4; +static const int MAX_LINE_DEGREE_SPECTRAL = Intrepid2::Parameters::MaxOrder; +static const int MAX_QUAD_DEGREE_SPECTRAL = Intrepid2::Parameters::MaxOrder; +static const int MAX_HEX_DEGREE_SPECTRAL = (Intrepid2::Parameters::MaxOrder < 4) ? Intrepid2::Parameters::MaxOrder : 4; +static const int MAX_RANK_COUNT = 4; #else -static const int MAX_LINE_DEGREE = Intrepid2::Parameters::MaxOrder; -static const int MAX_QUAD_DEGREE = Intrepid2::Parameters::MaxOrder; -static const int MAX_HEX_DEGREE = Intrepid2::Parameters::MaxOrder; -static const int MAX_RANK_COUNT = 16; +static const int MAX_LINE_DEGREE_EQUISPACED = 10; +static const int MAX_QUAD_DEGREE_EQUISPACED = 10; +static const int MAX_HEX_DEGREE_EQUISPACED = 10; +static const int MAX_LINE_DEGREE_SPECTRAL = Intrepid2::Parameters::MaxOrder; +static const int MAX_QUAD_DEGREE_SPECTRAL = Intrepid2::Parameters::MaxOrder; +static const int MAX_HEX_DEGREE_SPECTRAL = Intrepid2::Parameters::MaxOrder; +static const int MAX_RANK_COUNT = 16; #endif using namespace std; @@ -940,8 +946,8 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, FindSeeds_Equispaced_ #include "MueLu_UseShortNames.hpp" MUELU_TESTING_LIMIT_SCOPE(Scalar, GlobalOrdinal, Node); FIND_SEEDS_MACROS; - testFindSeedsParallel(MueLuTests::TestHelpers::Parameters::getLib(), MAX_LINE_DEGREE, Intrepid2::POINTTYPE_EQUISPACED, out, success); - testFindSeedsSerial(MueLuTests::TestHelpers::Parameters::getLib(), MAX_LINE_DEGREE, Intrepid2::POINTTYPE_EQUISPACED, out, success); + testFindSeedsParallel(MueLuTests::TestHelpers::Parameters::getLib(), MAX_LINE_DEGREE_EQUISPACED, Intrepid2::POINTTYPE_EQUISPACED, out, success); + testFindSeedsSerial(MueLuTests::TestHelpers::Parameters::getLib(), MAX_LINE_DEGREE_EQUISPACED, Intrepid2::POINTTYPE_EQUISPACED, out, success); } TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, FindSeeds_Spectral_Line, Scalar, LocalOrdinal, GlobalOrdinal, Node) { @@ -949,16 +955,16 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, FindSeeds_Spectral_Li MUELU_TESTING_LIMIT_SCOPE(Scalar, GlobalOrdinal, Node); FIND_SEEDS_MACROS; const Intrepid2::EPointType POINTTYPE_SPECTRAL = static_cast(1); // Not sure why I have to do this... - testFindSeedsParallel(MueLuTests::TestHelpers::Parameters::getLib(), MAX_LINE_DEGREE, POINTTYPE_SPECTRAL, out, success); - testFindSeedsSerial(MueLuTests::TestHelpers::Parameters::getLib(), MAX_LINE_DEGREE, POINTTYPE_SPECTRAL, out, success); + testFindSeedsParallel(MueLuTests::TestHelpers::Parameters::getLib(), MAX_LINE_DEGREE_SPECTRAL, POINTTYPE_SPECTRAL, out, success); + testFindSeedsSerial(MueLuTests::TestHelpers::Parameters::getLib(), MAX_LINE_DEGREE_SPECTRAL, POINTTYPE_SPECTRAL, out, success); } TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, FindSeeds_Equispaced_Quad, Scalar, LocalOrdinal, GlobalOrdinal, Node) { #include "MueLu_UseShortNames.hpp" MUELU_TESTING_LIMIT_SCOPE(Scalar, GlobalOrdinal, Node); FIND_SEEDS_MACROS; - testFindSeedsParallel(MueLuTests::TestHelpers::Parameters::getLib(), MAX_QUAD_DEGREE, Intrepid2::POINTTYPE_EQUISPACED, out, success); - testFindSeedsSerial(MueLuTests::TestHelpers::Parameters::getLib(), MAX_QUAD_DEGREE, Intrepid2::POINTTYPE_EQUISPACED, out, success); + testFindSeedsParallel(MueLuTests::TestHelpers::Parameters::getLib(), MAX_QUAD_DEGREE_EQUISPACED, Intrepid2::POINTTYPE_EQUISPACED, out, success); + testFindSeedsSerial(MueLuTests::TestHelpers::Parameters::getLib(), MAX_QUAD_DEGREE_EQUISPACED, Intrepid2::POINTTYPE_EQUISPACED, out, success); } TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, FindSeeds_Spectral_Quad, Scalar, LocalOrdinal, GlobalOrdinal, Node) { @@ -966,16 +972,16 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, FindSeeds_Spectral_Qu MUELU_TESTING_LIMIT_SCOPE(Scalar, GlobalOrdinal, Node); FIND_SEEDS_MACROS; const Intrepid2::EPointType POINTTYPE_SPECTRAL = static_cast(1); // Not sure why I have to do this... - testFindSeedsParallel(MueLuTests::TestHelpers::Parameters::getLib(), MAX_QUAD_DEGREE, POINTTYPE_SPECTRAL, out, success); - testFindSeedsSerial(MueLuTests::TestHelpers::Parameters::getLib(), MAX_QUAD_DEGREE, POINTTYPE_SPECTRAL, out, success); + testFindSeedsParallel(MueLuTests::TestHelpers::Parameters::getLib(), MAX_QUAD_DEGREE_SPECTRAL, POINTTYPE_SPECTRAL, out, success); + testFindSeedsSerial(MueLuTests::TestHelpers::Parameters::getLib(), MAX_QUAD_DEGREE_SPECTRAL, POINTTYPE_SPECTRAL, out, success); } TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, FindSeeds_Equispaced_Hex, Scalar, LocalOrdinal, GlobalOrdinal, Node) { #include "MueLu_UseShortNames.hpp" MUELU_TESTING_LIMIT_SCOPE(Scalar, GlobalOrdinal, Node); FIND_SEEDS_MACROS; - testFindSeedsParallel(MueLuTests::TestHelpers::Parameters::getLib(), MAX_QUAD_DEGREE, Intrepid2::POINTTYPE_EQUISPACED, out, success); - testFindSeedsSerial(MueLuTests::TestHelpers::Parameters::getLib(), MAX_QUAD_DEGREE, Intrepid2::POINTTYPE_EQUISPACED, out, success); + testFindSeedsParallel(MueLuTests::TestHelpers::Parameters::getLib(), MAX_QUAD_DEGREE_EQUISPACED, Intrepid2::POINTTYPE_EQUISPACED, out, success); + testFindSeedsSerial(MueLuTests::TestHelpers::Parameters::getLib(), MAX_QUAD_DEGREE_EQUISPACED, Intrepid2::POINTTYPE_EQUISPACED, out, success); } TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, FindSeeds_Spectral_Hex, Scalar, LocalOrdinal, GlobalOrdinal, Node) { @@ -983,8 +989,8 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, FindSeeds_Spectral_He MUELU_TESTING_LIMIT_SCOPE(Scalar, GlobalOrdinal, Node); FIND_SEEDS_MACROS; const Intrepid2::EPointType POINTTYPE_SPECTRAL = static_cast(1); // Not sure why I have to do this... - testFindSeedsParallel(MueLuTests::TestHelpers::Parameters::getLib(), MAX_HEX_DEGREE, POINTTYPE_SPECTRAL, out, success); - testFindSeedsSerial(MueLuTests::TestHelpers::Parameters::getLib(), MAX_HEX_DEGREE, POINTTYPE_SPECTRAL, out, success); + testFindSeedsParallel(MueLuTests::TestHelpers::Parameters::getLib(), MAX_HEX_DEGREE_SPECTRAL, POINTTYPE_SPECTRAL, out, success); + testFindSeedsSerial(MueLuTests::TestHelpers::Parameters::getLib(), MAX_HEX_DEGREE_SPECTRAL, POINTTYPE_SPECTRAL, out, success); } /*********************************************************************************************************************/ @@ -1717,7 +1723,7 @@ bool test_representative_basis(Teuchos::FancyOStream &out, const std::string &na for (int d = 0; d < int(lo_DofCoords.extent(1)); d++) { coords[d] = lo_DofCoords_host(lowOrdinal, d); } - if (coords[0] == 1.0) { + if (std::fabs(coords[0] - 1.0) < 1e-8) { int globalOrdinal = loNumbering.getGlobalID(coords); out << globalOrdinal << ": ("; for (int d = 0; d < int(coords.size()) - 1; d++) { @@ -1733,7 +1739,7 @@ bool test_representative_basis(Teuchos::FancyOStream &out, const std::string &na for (int d = 0; d < int(hi_DofCoords.extent(1)); d++) { coords[d] = hi_DofCoords_host(highOrdinal, d); } - if (coords[0] == 1.0) { + if (std::fabs(coords[0] - 1.0) < 1e-8) { int globalOrdinal = hiNumbering.getGlobalID(coords); out << globalOrdinal << ": ("; for (int d = 0; d < int(coords.size()) - 1; d++) { @@ -1750,9 +1756,20 @@ bool test_representative_basis(Teuchos::FancyOStream &out, const std::string &na // Correctness Test 1: Make sure that there are no duplicates in the representative lists / no low DOF has no candidates std::vector is_candidate(hi_DofCoords.extent(0), false); - bool no_doubles = true; + bool no_doubles = true; + bool no_candidates = false; + { + // DEBUGGING + if ((lowPolyDegree == 7) && (highPolyDegree == 10)) { + cout << "lo = " << lowPolyDegree << "; hi = " << highPolyDegree << std::endl; + } + } + for (int lowOrderDof = 0; no_doubles && lowOrderDof < (int)candidates.size(); lowOrderDof++) { - if (candidates[lowOrderDof].size() == 0) no_doubles = false; // this low DOF has no candidates! + if (candidates[lowOrderDof].size() == 0) { + no_candidates = true; // this low DOF has no candidates! + break; + } for (int l = 0; l < (int)candidates[lowOrderDof].size(); l++) if (is_candidate[candidates[lowOrderDof][l]] == false) is_candidate[candidates[lowOrderDof][l]] = true; @@ -1765,6 +1782,10 @@ bool test_representative_basis(Teuchos::FancyOStream &out, const std::string &na out << "ERROR: " << name << " The 'no duplicates' test fails w/ lo/hi = " << lowPolyDegree << "/" << highPolyDegree << std::endl; return false; } + if (no_candidates) { + out << "ERROR: " << name << " The 'no low dof has no candidates' test fails w/ lo/hi = " << lowPolyDegree << "/" << highPolyDegree << std::endl; + return false; + } // Correctness Test 2: Try 2 elements, in all possible relative orientations, and confirm that the // "lowest global ordinal" tie-breaker always returns the same thing for both neighbors @@ -1958,7 +1979,22 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, GenerateRepresentativ typedef Kokkos::DynRankView FC; typedef Intrepid2::Basis_HGRAD_LINE_Cn_FEM Basis; - bool rv = test_representative_basis(out, " GenerateRepresentativeBasisNodes_LINE_EQUISPACED", Intrepid2::POINTTYPE_EQUISPACED, MAX_LINE_DEGREE); + bool rv = test_representative_basis(out, " GenerateRepresentativeBasisNodes_LINE_EQUISPACED", Intrepid2::POINTTYPE_EQUISPACED, MAX_LINE_DEGREE_EQUISPACED); + TEST_EQUALITY(rv, true); +} + +TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, GenerateRepresentativeBasisNodes_LINE_Spectral, Scalar, LocalOrdinal, GlobalOrdinal, Node) { +#include "MueLu_UseShortNames.hpp" + ; + MUELU_TESTING_SET_OSTREAM; + MUELU_TESTING_LIMIT_SCOPE(Scalar, GlobalOrdinal, Node); + + typedef typename Teuchos::ScalarTraits::magnitudeType MT; + typedef typename Node::device_type::execution_space ES; + typedef Kokkos::DynRankView FC; + typedef Intrepid2::Basis_HGRAD_LINE_Cn_FEM Basis; + + bool rv = test_representative_basis(out, " GenerateRepresentativeBasisNodes_LINE_EQUISPACED", Intrepid2::POINTTYPE_WARPBLEND, MAX_LINE_DEGREE_SPECTRAL); TEST_EQUALITY(rv, true); } @@ -1974,7 +2010,7 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, GenerateRepresentativ typedef Kokkos::DynRankView FC; typedef Intrepid2::Basis_HGRAD_QUAD_Cn_FEM Basis; - bool rv = test_representative_basis(out, " GenerateRepresentativeBasisNodes_QUAD_EQUISPACED", Intrepid2::POINTTYPE_EQUISPACED, MAX_QUAD_DEGREE); + bool rv = test_representative_basis(out, " GenerateRepresentativeBasisNodes_QUAD_EQUISPACED", Intrepid2::POINTTYPE_EQUISPACED, MAX_QUAD_DEGREE_EQUISPACED); TEST_EQUALITY(rv, true); } @@ -1991,7 +2027,7 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, GenerateRepresentativ typedef Intrepid2::Basis_HGRAD_QUAD_Cn_FEM Basis; const Intrepid2::EPointType POINTTYPE_SPECTRAL = static_cast(1); // Not sure why I have to do this... - bool rv = test_representative_basis(out, " GenerateRepresentativeBasisNodes_QUAD_SPECTRAL", POINTTYPE_SPECTRAL, MAX_QUAD_DEGREE); + bool rv = test_representative_basis(out, " GenerateRepresentativeBasisNodes_QUAD_SPECTRAL", POINTTYPE_SPECTRAL, MAX_QUAD_DEGREE_SPECTRAL); TEST_EQUALITY(rv, true); } @@ -2007,7 +2043,7 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, GenerateRepresentativ typedef Kokkos::DynRankView FC; typedef Intrepid2::Basis_HGRAD_HEX_Cn_FEM Basis; - bool rv = test_representative_basis(out, " GenerateRepresentativeBasisNodes_HEX_EQUISPACED", Intrepid2::POINTTYPE_EQUISPACED, MAX_HEX_DEGREE); + bool rv = test_representative_basis(out, " GenerateRepresentativeBasisNodes_HEX_EQUISPACED", Intrepid2::POINTTYPE_EQUISPACED, MAX_HEX_DEGREE_EQUISPACED); TEST_EQUALITY(rv, true); } @@ -2024,7 +2060,7 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, GenerateRepresentativ typedef Intrepid2::Basis_HGRAD_HEX_Cn_FEM Basis; const Intrepid2::EPointType POINTTYPE_SPECTRAL = static_cast(1); // Not sure why I have to do this... - bool rv = test_representative_basis(out, " GenerateRepresentativeBasisNodes_HEX_SPECTRAL", POINTTYPE_SPECTRAL, MAX_HEX_DEGREE); + bool rv = test_representative_basis(out, " GenerateRepresentativeBasisNodes_HEX_SPECTRAL", POINTTYPE_SPECTRAL, MAX_HEX_DEGREE_SPECTRAL); TEST_EQUALITY(rv, true); } @@ -2049,7 +2085,7 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, GenerateLoNodeInHighV Xpetra::UnderlyingLib lib = MueLuTests::TestHelpers::Parameters::getLib(); RCP> comm = TestHelpers::Parameters::getDefaultComm(); - int max_degree = MAX_QUAD_DEGREE; + int max_degree = MAX_QUAD_DEGREE_EQUISPACED; double threshold = 1e-10; GO gst_invalid = Teuchos::OrdinalTraits::invalid(); @@ -2815,6 +2851,7 @@ TEUCHOS_UNIT_TEST_TEMPLATE_4_DECL(IntrepidPCoarsenFactory, CreatePreconditioner_ TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(IntrepidPCoarsenFactory, CreatePreconditioner_p4, Scalar, LO, GO, Node) \ TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(IntrepidPCoarsenFactory, GenerateRepresentativeBasisNodes_LINE_Equispaced, Scalar, LO, GO, Node) \ TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(IntrepidPCoarsenFactory, GenerateRepresentativeBasisNodes_QUAD_Equispaced, Scalar, LO, GO, Node) \ + TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(IntrepidPCoarsenFactory, GenerateRepresentativeBasisNodes_LINE_Spectral, Scalar, LO, GO, Node) \ TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(IntrepidPCoarsenFactory, GenerateRepresentativeBasisNodes_QUAD_Spectral, Scalar, LO, GO, Node) \ TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(IntrepidPCoarsenFactory, GenerateRepresentativeBasisNodes_HEX_Equispaced, Scalar, LO, GO, Node) \ TEUCHOS_UNIT_TEST_TEMPLATE_4_INSTANT(IntrepidPCoarsenFactory, GenerateRepresentativeBasisNodes_HEX_Spectral, Scalar, LO, GO, Node) \ diff --git a/packages/new_package/example/copyright.h b/packages/new_package/example/copyright.h index c809c3415e2d..3332140eb51b 100644 --- a/packages/new_package/example/copyright.h +++ b/packages/new_package/example/copyright.h @@ -26,4 +26,3 @@ // // *********************************************************************** //@HEADER - diff --git a/packages/pamgen/example/copyright.h b/packages/pamgen/example/copyright.h index 3e940e060166..8ad179562eab 100644 --- a/packages/pamgen/example/copyright.h +++ b/packages/pamgen/example/copyright.h @@ -6,4 +6,3 @@ // SPDX-License-Identifier: LGPL-2.1-or-later // ***************************************************************************** // @HEADER - diff --git a/packages/pamgen/mesh_spec_lt/pamgen_fudges.h b/packages/pamgen/mesh_spec_lt/pamgen_fudges.h index 9ee9104c7b6d..883eb2883f8e 100644 --- a/packages/pamgen/mesh_spec_lt/pamgen_fudges.h +++ b/packages/pamgen/mesh_spec_lt/pamgen_fudges.h @@ -20,5 +20,3 @@ extern const Real a_little_positive; extern const Real a_little_negative; } // end element_dictionary.C:namespace PAMGEN_NEVADA { - - diff --git a/packages/pamgen/parser/token_enum.h b/packages/pamgen/parser/token_enum.h index 25a57ce240b7..0bdb9797ef18 100644 --- a/packages/pamgen/parser/token_enum.h +++ b/packages/pamgen/parser/token_enum.h @@ -33,4 +33,3 @@ typedef enum Token_Type; #endif - diff --git a/packages/pamgen/parser/token_stream.h b/packages/pamgen/parser/token_stream.h index d1392e338f50..b36364988118 100644 --- a/packages/pamgen/parser/token_stream.h +++ b/packages/pamgen/parser/token_stream.h @@ -187,4 +187,3 @@ Token Get_Identifier_Token(Token_Stream *, int); Token Get_No_Token(Token_Stream *, int); }//end namespace PAMGEN_NEVADA #endif - diff --git a/packages/pamgen/parser/token_value.h b/packages/pamgen/parser/token_value.h index f76ae69fc73d..a255b518cb3d 100644 --- a/packages/pamgen/parser/token_value.h +++ b/packages/pamgen/parser/token_value.h @@ -24,4 +24,3 @@ typedef union Token_Value; #endif - diff --git a/packages/pamgen/src/Vector.h b/packages/pamgen/src/Vector.h index eae865b74dc1..5fd6777d3b87 100644 --- a/packages/pamgen/src/Vector.h +++ b/packages/pamgen/src/Vector.h @@ -306,4 +306,4 @@ inline std::ostream& operator<<(std::ostream &str, const Vector &v) return str; } } // end namespace PAMGEN_NEVADA { -#endif +#endif diff --git a/packages/percept/src/percept/pool.h b/packages/percept/src/percept/pool.h index 05dfb55aefba..12badc479a27 100644 --- a/packages/percept/src/percept/pool.h +++ b/packages/percept/src/percept/pool.h @@ -1,76 +1,75 @@ -#ifndef INCL_CORE_POOL -#define INCL_CORE_POOL - -#include -#include -#include - -//! Simple pool class. -class Pool -{ -public: - //! Allocates a pool with size elements each of granularity bytes. - Pool( size_t granularity, size_t size ); - - //! Checks for emptiness before destructing. - ~Pool(); - - void Reset() { m_used = 0; m_overflow = 0; } - - //! Gets the pool granularity. - size_t GetGranularity() const { return m_granularity; } - - //! Gets the pool size in elements. - size_t GetSize() const { return m_size; } - - //! Gets the number of elements allocated from pooled storage. - size_t GetUsed() const { return m_used; } - - //! Gets the number of elements allocated from non-pooled storage. - size_t GetOverflow() const { return m_overflow; } - - - //! Allocates memory from the pool without construction. - void* Allocate(); - - //! Deallocates memory from the pool without destruction. - void Deallocate( void* block ); - - - //! Constructs an object from the pool. - template - T* Construct() - { - assert( sizeof( T ) <= m_granularity ); - T* block = reinterpret_cast( Allocate() ); - return new( block ) T; - } - - //! Destructs an object back into the pool. - template - void Destroy( T* instance ) - { - assert( sizeof( T ) <= m_granularity ); - instance->~T(); - Deallocate( instance ); - } - -private: - //! Returns true if the given instance is from pooled storage. - bool IsFromPool( void const* instance ) const - { - char const* block = reinterpret_cast( instance ); - return m_storage.data() <= block && block < ( m_storage.data() + m_size*m_granularity ); - } - - size_t m_granularity; //!< The size of each element in the pool in bytes. - size_t m_size; //!< The number of elements in pooled storage. - size_t m_used; //!< The number of pooled allocations. - size_t m_overflow; //!< The number of non-pooled allocations. - - std::vector m_storage; //!< The pool storage. - std::vector m_slots; //!< The free list. -}; - -#endif // ndef INCL_CORE_POOL - +#ifndef INCL_CORE_POOL +#define INCL_CORE_POOL + +#include +#include +#include + +//! Simple pool class. +class Pool +{ +public: + //! Allocates a pool with size elements each of granularity bytes. + Pool( size_t granularity, size_t size ); + + //! Checks for emptiness before destructing. + ~Pool(); + + void Reset() { m_used = 0; m_overflow = 0; } + + //! Gets the pool granularity. + size_t GetGranularity() const { return m_granularity; } + + //! Gets the pool size in elements. + size_t GetSize() const { return m_size; } + + //! Gets the number of elements allocated from pooled storage. + size_t GetUsed() const { return m_used; } + + //! Gets the number of elements allocated from non-pooled storage. + size_t GetOverflow() const { return m_overflow; } + + + //! Allocates memory from the pool without construction. + void* Allocate(); + + //! Deallocates memory from the pool without destruction. + void Deallocate( void* block ); + + + //! Constructs an object from the pool. + template + T* Construct() + { + assert( sizeof( T ) <= m_granularity ); + T* block = reinterpret_cast( Allocate() ); + return new( block ) T; + } + + //! Destructs an object back into the pool. + template + void Destroy( T* instance ) + { + assert( sizeof( T ) <= m_granularity ); + instance->~T(); + Deallocate( instance ); + } + +private: + //! Returns true if the given instance is from pooled storage. + bool IsFromPool( void const* instance ) const + { + char const* block = reinterpret_cast( instance ); + return m_storage.data() <= block && block < ( m_storage.data() + m_size*m_granularity ); + } + + size_t m_granularity; //!< The size of each element in the pool in bytes. + size_t m_size; //!< The number of elements in pooled storage. + size_t m_used; //!< The number of pooled allocations. + size_t m_overflow; //!< The number of non-pooled allocations. + + std::vector m_storage; //!< The pool storage. + std::vector m_slots; //!< The free list. +}; + +#endif // ndef INCL_CORE_POOL diff --git a/packages/percept/src/percept/pooled_alloc.h b/packages/percept/src/percept/pooled_alloc.h index 0dc6581fdae6..d6d1e53dfbac 100644 --- a/packages/percept/src/percept/pooled_alloc.h +++ b/packages/percept/src/percept/pooled_alloc.h @@ -1,201 +1,200 @@ -#ifndef INCL_POOLED_ALLOC -#define INCL_POOLED_ALLOC - -#include "pool.h" -#include -#include -#include -#include -#include -#include - -//! A standards-compliant pooled allocator. -template -class PooledAllocator -{ -public: - typedef size_t size_type; //!< A type that can represent the size of the largest object in the allocation model. - typedef ptrdiff_t difference_type; //!< A type that can represent the difference between any two pointers in the allocation model. - - typedef T value_type; //!< Identical to T. - typedef T* pointer; //!< Pointer to T; - typedef T const* const_pointer; //!< Pointer to const T. - typedef T& reference; //!< Reference to T. - typedef T const& const_reference; //!< Reference to const T. - - //! A struct to construct an allocator for a different type. - template - struct rebind { typedef PooledAllocator other; }; - - //! Creates a pooled allocator to the given pool. - /*! This is non-explicit for ease of use. - */ - PooledAllocator( Pool* pool = 0 ) : m_pool( pool ) - { - if (sizeof( T ) > m_pool->GetGranularity() ) - { - std::cout << " sizeof( T ) = " << sizeof( T ) << " <= m_pool->GetGranularity() " << m_pool->GetGranularity() - << " typeid= " << typeid(T).name() - << std::endl; - throw std::runtime_error("Pool granularity too small"); - } - assert( !m_pool || sizeof( T ) <= m_pool->GetGranularity() ); - } - - //! Creates a pooled allocator to the argument's pool. - /*! If the argument has no pool, then this allocator will allocate off the heap. - */ - template - PooledAllocator( PooledAllocator const& arg ) : m_pool( arg.m_pool ) - { - if (sizeof( T ) > m_pool->GetGranularity() ) - { -#ifndef NDEBUG - std::cout << " sizeof( T ) = " << sizeof( T ) << " <= m_pool->GetGranularity() " << m_pool->GetGranularity() - << " typeid= " << typeid(T).name() - << std::endl; -#endif - m_pool = new Pool(sizeof(T), arg.m_pool->GetSize()); -#ifndef NDEBUG - std::cout << " after sizeof( T ) = " << sizeof( T ) << " <= m_pool->GetGranularity() " << m_pool->GetGranularity() - << " typeid= " << typeid(T).name() - << std::endl; -#endif - } - assert( !m_pool || sizeof( T ) <= m_pool->GetGranularity() ); - } - - //! The largest value that can meaningfully passed to allocate. - size_type max_size() const { return 0xffffffff; } - - //! Memory is allocated for \c count objects of type \c T but objects are not constructed. - /*! This function may raise an appropriate exception. The result is a random access iterator. - */ - pointer allocate( size_type count, typename std::allocator_traits::const_void_pointer /*hint*/ = 0 ) const - { - if( count == 1 && m_pool ) - { - return reinterpret_cast( m_pool->Allocate() ); - } - else - { - return reinterpret_cast( new char[ count*sizeof( T ) ] ); - } - } - - //! Deallocates memory allocated by allocate. - /*! All \c count objects in the area pointed by \c block must be destroyed prior to this call. - \c count must match the value passed to allocate to obtain this memory. Does not throw exceptions. - \c block must not be null. - */ - void deallocate( pointer block, size_type count ) const throw() - { - assert( block && "null pointer argument" ); - if( count == 1 && m_pool ) - { - m_pool->Deallocate( block ); - } - else - { - delete[] reinterpret_cast( block ); - } - } - - //! Constructs an element of \c T at the given pointer. - /*! Effect: new( element ) T( arg ) - */ - void construct( pointer element, T const& arg ) - { - new( element ) T( arg ); - } - - //! Destroys an element of \c T at the given pointer. - /*! Effect: element->~T() - */ - void destroy( pointer element ) - { - element->~T(); - (void)element; // FIXME: genuinely bizarre 'unused parameter' bug with vs2003 - } - - //! Returns the address of the given reference. - pointer address( reference element ) const - { - return &element; - } - - //! Returns the address of the given reference. - const_pointer address( const_reference element ) const - { - return &element; - } - - //! The pool for this allocator. - Pool* m_pool; -}; - -//! A specialisation of the pooled allocator for the void type. -template<> -class PooledAllocator -{ -public: - typedef size_t size_type; //!< A type that can represent the size of the largest object in the allocation model. - typedef ptrdiff_t difference_type; //!< A type that can represent the difference between any two pointers in the allocation model. - - typedef void value_type; //!< Identical to void. - typedef void* pointer; //!< Pointer to void; - typedef void const* const_pointer; //!< Pointer to const void. - - //! A struct to construct an allocator for a different type. - template - struct rebind { typedef PooledAllocator other; }; - - //! Creates a pooled allocator with no pool. - /*! This allocator will allocate off the heap. - */ - PooledAllocator() : m_pool( 0 ) {} - - //! Creates a pooled allocator to the given pool. - PooledAllocator( Pool* pool ) : m_pool( pool ) {} - - //! The pool for this allocator. - Pool* m_pool; -}; - -//! Returns true if objects allocated from one pool can be deallocated from the other. -template -bool operator==( PooledAllocator const& left, PooledAllocator const& right ) -{ - return left.m_pool == right.m_pool; -} - -//! Returns true if objects allocated from one pool cannot be deallocated from the other. -template -bool operator!=( PooledAllocator const& left, PooledAllocator const& right ) -{ - return left.m_pool != right.m_pool; -} - -//! Template typedef std::map<..., PooledAllocator> to PooledList::Type. -template > -struct PooledMap -{ - typedef std::map > > Type; -}; - -//! Template typedef std::list<..., PooledAllocator> to PooledList::Type. -template -struct PooledList -{ - typedef std::list > Type; -}; - -//! Template typedef std::set<..., PooledAllocator> to PooledList::Type. -template > -struct PooledSet -{ - typedef std::set > Type; -}; - -#endif // ndef INCL_POOLED_ALLOC - +#ifndef INCL_POOLED_ALLOC +#define INCL_POOLED_ALLOC + +#include "pool.h" +#include +#include +#include +#include +#include +#include + +//! A standards-compliant pooled allocator. +template +class PooledAllocator +{ +public: + typedef size_t size_type; //!< A type that can represent the size of the largest object in the allocation model. + typedef ptrdiff_t difference_type; //!< A type that can represent the difference between any two pointers in the allocation model. + + typedef T value_type; //!< Identical to T. + typedef T* pointer; //!< Pointer to T; + typedef T const* const_pointer; //!< Pointer to const T. + typedef T& reference; //!< Reference to T. + typedef T const& const_reference; //!< Reference to const T. + + //! A struct to construct an allocator for a different type. + template + struct rebind { typedef PooledAllocator other; }; + + //! Creates a pooled allocator to the given pool. + /*! This is non-explicit for ease of use. + */ + PooledAllocator( Pool* pool = 0 ) : m_pool( pool ) + { + if (sizeof( T ) > m_pool->GetGranularity() ) + { + std::cout << " sizeof( T ) = " << sizeof( T ) << " <= m_pool->GetGranularity() " << m_pool->GetGranularity() + << " typeid= " << typeid(T).name() + << std::endl; + throw std::runtime_error("Pool granularity too small"); + } + assert( !m_pool || sizeof( T ) <= m_pool->GetGranularity() ); + } + + //! Creates a pooled allocator to the argument's pool. + /*! If the argument has no pool, then this allocator will allocate off the heap. + */ + template + PooledAllocator( PooledAllocator const& arg ) : m_pool( arg.m_pool ) + { + if (sizeof( T ) > m_pool->GetGranularity() ) + { +#ifndef NDEBUG + std::cout << " sizeof( T ) = " << sizeof( T ) << " <= m_pool->GetGranularity() " << m_pool->GetGranularity() + << " typeid= " << typeid(T).name() + << std::endl; +#endif + m_pool = new Pool(sizeof(T), arg.m_pool->GetSize()); +#ifndef NDEBUG + std::cout << " after sizeof( T ) = " << sizeof( T ) << " <= m_pool->GetGranularity() " << m_pool->GetGranularity() + << " typeid= " << typeid(T).name() + << std::endl; +#endif + } + assert( !m_pool || sizeof( T ) <= m_pool->GetGranularity() ); + } + + //! The largest value that can meaningfully passed to allocate. + size_type max_size() const { return 0xffffffff; } + + //! Memory is allocated for \c count objects of type \c T but objects are not constructed. + /*! This function may raise an appropriate exception. The result is a random access iterator. + */ + pointer allocate( size_type count, typename std::allocator_traits::const_void_pointer /*hint*/ = 0 ) const + { + if( count == 1 && m_pool ) + { + return reinterpret_cast( m_pool->Allocate() ); + } + else + { + return reinterpret_cast( new char[ count*sizeof( T ) ] ); + } + } + + //! Deallocates memory allocated by allocate. + /*! All \c count objects in the area pointed by \c block must be destroyed prior to this call. + \c count must match the value passed to allocate to obtain this memory. Does not throw exceptions. + \c block must not be null. + */ + void deallocate( pointer block, size_type count ) const throw() + { + assert( block && "null pointer argument" ); + if( count == 1 && m_pool ) + { + m_pool->Deallocate( block ); + } + else + { + delete[] reinterpret_cast( block ); + } + } + + //! Constructs an element of \c T at the given pointer. + /*! Effect: new( element ) T( arg ) + */ + void construct( pointer element, T const& arg ) + { + new( element ) T( arg ); + } + + //! Destroys an element of \c T at the given pointer. + /*! Effect: element->~T() + */ + void destroy( pointer element ) + { + element->~T(); + (void)element; // FIXME: genuinely bizarre 'unused parameter' bug with vs2003 + } + + //! Returns the address of the given reference. + pointer address( reference element ) const + { + return &element; + } + + //! Returns the address of the given reference. + const_pointer address( const_reference element ) const + { + return &element; + } + + //! The pool for this allocator. + Pool* m_pool; +}; + +//! A specialisation of the pooled allocator for the void type. +template<> +class PooledAllocator +{ +public: + typedef size_t size_type; //!< A type that can represent the size of the largest object in the allocation model. + typedef ptrdiff_t difference_type; //!< A type that can represent the difference between any two pointers in the allocation model. + + typedef void value_type; //!< Identical to void. + typedef void* pointer; //!< Pointer to void; + typedef void const* const_pointer; //!< Pointer to const void. + + //! A struct to construct an allocator for a different type. + template + struct rebind { typedef PooledAllocator other; }; + + //! Creates a pooled allocator with no pool. + /*! This allocator will allocate off the heap. + */ + PooledAllocator() : m_pool( 0 ) {} + + //! Creates a pooled allocator to the given pool. + PooledAllocator( Pool* pool ) : m_pool( pool ) {} + + //! The pool for this allocator. + Pool* m_pool; +}; + +//! Returns true if objects allocated from one pool can be deallocated from the other. +template +bool operator==( PooledAllocator const& left, PooledAllocator const& right ) +{ + return left.m_pool == right.m_pool; +} + +//! Returns true if objects allocated from one pool cannot be deallocated from the other. +template +bool operator!=( PooledAllocator const& left, PooledAllocator const& right ) +{ + return left.m_pool != right.m_pool; +} + +//! Template typedef std::map<..., PooledAllocator> to PooledList::Type. +template > +struct PooledMap +{ + typedef std::map > > Type; +}; + +//! Template typedef std::list<..., PooledAllocator> to PooledList::Type. +template +struct PooledList +{ + typedef std::list > Type; +}; + +//! Template typedef std::set<..., PooledAllocator> to PooledList::Type. +template > +struct PooledSet +{ + typedef std::set > Type; +}; + +#endif // ndef INCL_POOLED_ALLOC diff --git a/packages/percept/src/percept/pyencore.h b/packages/percept/src/percept/pyencore.h index 164f09dd2ab1..f34244f6abc2 100644 --- a/packages/percept/src/percept/pyencore.h +++ b/packages/percept/src/percept/pyencore.h @@ -1,2 +1 @@ #define PY_ENCORE 0 - diff --git a/packages/phalanx/scripts/copyright.h b/packages/phalanx/scripts/copyright.h index 43747cd020dd..b381c22698a0 100644 --- a/packages/phalanx/scripts/copyright.h +++ b/packages/phalanx/scripts/copyright.h @@ -7,4 +7,3 @@ // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER - diff --git a/packages/pliris/src/BLAS_prototypes.h b/packages/pliris/src/BLAS_prototypes.h index bc3f4bb1557c..e687bbf0fc95 100644 --- a/packages/pliris/src/BLAS_prototypes.h +++ b/packages/pliris/src/BLAS_prototypes.h @@ -148,4 +148,3 @@ double ddot(int n, double *dx, int incx, double *dy, int incy); #warning "The Pliris package is deprecated" #endif #endif - diff --git a/packages/pliris/src/Pliris.h b/packages/pliris/src/Pliris.h index fb304a96aa3c..48179fccde7a 100644 --- a/packages/pliris/src/Pliris.h +++ b/packages/pliris/src/Pliris.h @@ -44,6 +44,12 @@ #ifndef _PLIRIS_H_ #define _PLIRIS_H_ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + class Epetra_Comm; class Epetra_BlockMap; @@ -229,10 +235,3 @@ class Pliris { #endif /* _PLIRIS_H_ */ - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/PlirisVersion.h b/packages/pliris/src/PlirisVersion.h index 2548dccbf138..cc7a60bce478 100644 --- a/packages/pliris/src/PlirisVersion.h +++ b/packages/pliris/src/PlirisVersion.h @@ -44,15 +44,14 @@ #ifndef PLIRIS_VERSION_HPP #define PLIRIS_VERSION_HPP -#include "Pliris_ConfigDefs.h" - -string Pliris_Version(); - -#endif // PLIRIS_VERSION_HPP - #if defined(Pliris_SHOW_DEPRECATED_WARNINGS) #ifdef __GNUC__ #warning "The Pliris package is deprecated" #endif #endif +#include "Pliris_ConfigDefs.h" + +string Pliris_Version(); + +#endif // PLIRIS_VERSION_HPP diff --git a/packages/pliris/src/Pliris_ConfigDefs.h b/packages/pliris/src/Pliris_ConfigDefs.h index 1fadacbcf97a..976a25a45042 100644 --- a/packages/pliris/src/Pliris_ConfigDefs.h +++ b/packages/pliris/src/Pliris_ConfigDefs.h @@ -44,6 +44,12 @@ #ifndef PLIRIS_CONFIGDEFS_H #define PLIRIS_CONFIGDEFS_H +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #ifndef __cplusplus #define __cplusplus #endif // ifndef __cplusplus @@ -91,10 +97,3 @@ using std::string; #endif // PLIRIS_CONFIGDEFS_H - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/block.h b/packages/pliris/src/block.h index 1a0d909df0c6..89f608155436 100644 --- a/packages/pliris/src/block.h +++ b/packages/pliris/src/block.h @@ -47,14 +47,13 @@ #ifndef __BLOCKH__ #define __BLOCKH__ -#define DEFBLKSZ 64 /* For general 32 bit machines */ - - -#endif - #if defined(Pliris_SHOW_DEPRECATED_WARNINGS) #ifdef __GNUC__ #warning "The Pliris package is deprecated" #endif #endif +#define DEFBLKSZ 64 /* For general 32 bit machines */ + + +#endif diff --git a/packages/pliris/src/cblassp.h b/packages/pliris/src/cblassp.h index 6e0257a99094..36ea0ce342b1 100644 --- a/packages/pliris/src/cblassp.h +++ b/packages/pliris/src/cblassp.h @@ -66,4 +66,3 @@ #warning "The Pliris package is deprecated" #endif #endif - diff --git a/packages/pliris/src/clean_code.h b/packages/pliris/src/clean_code.h index 69f1c4af661f..8dd1f8be4bfd 100644 --- a/packages/pliris/src/clean_code.h +++ b/packages/pliris/src/clean_code.h @@ -44,6 +44,12 @@ #ifndef __CLEANCODE__ #define __CLEANCODE__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #ifdef __cplusplus extern "C" { #endif @@ -54,10 +60,3 @@ void cleancode_ ( ) ; } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/dblassp.h b/packages/pliris/src/dblassp.h index af656888f9d3..4ece4cc187f7 100644 --- a/packages/pliris/src/dblassp.h +++ b/packages/pliris/src/dblassp.h @@ -68,4 +68,3 @@ #warning "The Pliris package is deprecated" #endif #endif - diff --git a/packages/pliris/src/defines.h b/packages/pliris/src/defines.h index f8e09808ace6..d9406c1583f8 100644 --- a/packages/pliris/src/defines.h +++ b/packages/pliris/src/defines.h @@ -44,6 +44,12 @@ #ifndef __DEFINESH__ #define __DEFINESH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #undef CBLAS #undef DEBUG @@ -198,10 +204,3 @@ #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/distribute.h b/packages/pliris/src/distribute.h index 78b12cac8f39..955ad1b19ac8 100644 --- a/packages/pliris/src/distribute.h +++ b/packages/pliris/src/distribute.h @@ -45,6 +45,12 @@ #ifndef __DISTRIBUTE__ #define __DISTRIBUTE__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #ifdef __cplusplus extern "C" { #endif @@ -67,10 +73,3 @@ void distmat_( #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/exchange_pivots.h b/packages/pliris/src/exchange_pivots.h index 98c87f08bd16..5370655028d3 100644 --- a/packages/pliris/src/exchange_pivots.h +++ b/packages/pliris/src/exchange_pivots.h @@ -45,6 +45,12 @@ #ifndef __EXCHANGE_PIVOTSH__ #define __EXCHANGE_PIVOTSH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #ifdef __cplusplus extern "C" { #endif @@ -55,10 +61,3 @@ void exchange_pivots(int *); } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/extern_vars.h b/packages/pliris/src/extern_vars.h index e094a6095e2b..778ec6fe319a 100644 --- a/packages/pliris/src/extern_vars.h +++ b/packages/pliris/src/extern_vars.h @@ -98,4 +98,3 @@ extern MPI_Comm row_comm,col_comm; #warning "The Pliris package is deprecated" #endif #endif - diff --git a/packages/pliris/src/factor.h b/packages/pliris/src/factor.h index 337200581bdb..4ada4a49394b 100644 --- a/packages/pliris/src/factor.h +++ b/packages/pliris/src/factor.h @@ -44,6 +44,12 @@ #ifndef __FACTORH__ #define __FACTORH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include "defines.h" #ifdef __cplusplus @@ -57,10 +63,3 @@ void factor(DATA_TYPE *); } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/forward.h b/packages/pliris/src/forward.h index adf1f0fd8b53..d3bbaf7dc673 100644 --- a/packages/pliris/src/forward.h +++ b/packages/pliris/src/forward.h @@ -44,6 +44,12 @@ #ifndef __FORWARDH__ #define __FORWARDH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include "defines.h" #ifdef __cplusplus @@ -56,10 +62,3 @@ void forward(DATA_TYPE *, DATA_TYPE *); } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/forwardall.h b/packages/pliris/src/forwardall.h index 262019dbbd8b..f8f363fcff8c 100644 --- a/packages/pliris/src/forwardall.h +++ b/packages/pliris/src/forwardall.h @@ -45,6 +45,12 @@ #ifndef __FORWARDALLH__ #define __FORWARDALLH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include "defines.h" #ifdef __cplusplus @@ -58,10 +64,3 @@ void forwardall(DATA_TYPE *, int *, DATA_TYPE *, } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/init.h b/packages/pliris/src/init.h index 28a1ce081d26..3da8597e57ab 100644 --- a/packages/pliris/src/init.h +++ b/packages/pliris/src/init.h @@ -45,6 +45,12 @@ #ifndef __INITH__ #define __INITH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include defines.h #ifdef __cplusplus @@ -62,10 +68,3 @@ void mat_vec(DATA_TYPE *, int , DATA_TYPE *); } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/macros.h b/packages/pliris/src/macros.h index 3686ad34900c..1193eb12a39b 100644 --- a/packages/pliris/src/macros.h +++ b/packages/pliris/src/macros.h @@ -68,4 +68,3 @@ #warning "The Pliris package is deprecated" #endif #endif - diff --git a/packages/pliris/src/mytime.h b/packages/pliris/src/mytime.h index fd0bb5de476d..40c6031041f2 100644 --- a/packages/pliris/src/mytime.h +++ b/packages/pliris/src/mytime.h @@ -45,6 +45,12 @@ #ifndef __MYTIMEH__ #define __MYTIMEH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #ifdef __cplusplus extern "C" { #endif @@ -55,10 +61,3 @@ void showtime(char *, double *); } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/pcomm.h b/packages/pliris/src/pcomm.h index ccef4f2695bd..f989d5a235d6 100644 --- a/packages/pliris/src/pcomm.h +++ b/packages/pliris/src/pcomm.h @@ -45,6 +45,12 @@ #ifndef __PCOMMH__ #define __PCOMMH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #ifdef __cplusplus extern "C" { #endif @@ -56,10 +62,3 @@ double max_all(double , int ); } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/perm1.h b/packages/pliris/src/perm1.h index c62506866b44..49f6c89f9df1 100644 --- a/packages/pliris/src/perm1.h +++ b/packages/pliris/src/perm1.h @@ -44,6 +44,12 @@ #ifndef __PERM1H__ #define __PERM1H__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include "defines.h" #ifdef __cplusplus @@ -57,10 +63,3 @@ void perm1_(DATA_TYPE *, int *); } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/permute.h b/packages/pliris/src/permute.h index 2da52f79757f..66bd3ad716e4 100644 --- a/packages/pliris/src/permute.h +++ b/packages/pliris/src/permute.h @@ -45,6 +45,12 @@ #ifndef __PERMUTEH__ #define __PERMUTEH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include "defines.h" #ifdef __cplusplus extern "C" { @@ -56,10 +62,3 @@ extern "C" { } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/permute_mat.h b/packages/pliris/src/permute_mat.h index 00366ca6cb7d..8f12c0db39d3 100644 --- a/packages/pliris/src/permute_mat.h +++ b/packages/pliris/src/permute_mat.h @@ -44,6 +44,12 @@ #ifndef __PERMUTEMATH__ #define __PERMUTEMATH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include "defines.h" #ifdef __cplusplus extern "C" { @@ -55,10 +61,3 @@ void permute_mat(DATA_TYPE *,int *); } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/permute_rhs.h b/packages/pliris/src/permute_rhs.h index bbd0c151c17f..3c637b3b1696 100644 --- a/packages/pliris/src/permute_rhs.h +++ b/packages/pliris/src/permute_rhs.h @@ -44,6 +44,12 @@ #ifndef __PERMUTERHSH__ #define __PERMUTERHSH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include "defines.h" #ifdef __cplusplus extern "C" { @@ -55,10 +61,3 @@ void permute_rhs(DATA_TYPE *,int *); } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/sblassp.h b/packages/pliris/src/sblassp.h index 328fe8be6e83..6c5da6ff1e22 100644 --- a/packages/pliris/src/sblassp.h +++ b/packages/pliris/src/sblassp.h @@ -68,4 +68,3 @@ #warning "The Pliris package is deprecated" #endif #endif - diff --git a/packages/pliris/src/solve.h b/packages/pliris/src/solve.h index 419f6e3e30b0..3e2e9a134b63 100644 --- a/packages/pliris/src/solve.h +++ b/packages/pliris/src/solve.h @@ -45,6 +45,12 @@ #ifndef __SOLVEH__ #define __SOLVEH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include "defines.h" #ifdef __cplusplus @@ -58,10 +64,3 @@ void back_solve6(DATA_TYPE *, DATA_TYPE *); } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/vars.h b/packages/pliris/src/vars.h index cfbb4b9c723e..175aaf3ebe0c 100644 --- a/packages/pliris/src/vars.h +++ b/packages/pliris/src/vars.h @@ -44,6 +44,12 @@ #ifndef __VARSH__ #define __VARSH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include "defines.h" int me; /* processor id information */ @@ -99,10 +105,3 @@ MPI_Comm row_comm,col_comm; /* volatile int MSPLIT; ZGEMM splitting parameter */ #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/x_factor.h b/packages/pliris/src/x_factor.h index 8ab25ca4cfb7..2fac9adebab8 100644 --- a/packages/pliris/src/x_factor.h +++ b/packages/pliris/src/x_factor.h @@ -45,6 +45,12 @@ #ifndef __XFACTORH__ #define __XFACTORH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include "defines.h" #ifdef __cplusplus @@ -57,10 +63,3 @@ void X_FACTOR_ (DATA_TYPE *, int *,int *, int *, double *); } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/x_solve.h b/packages/pliris/src/x_solve.h index 5d14053bd19d..6e3100048456 100644 --- a/packages/pliris/src/x_solve.h +++ b/packages/pliris/src/x_solve.h @@ -44,6 +44,12 @@ #ifndef __XSOLVEH__ #define __XSOLVEH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include "defines.h" #ifdef __cplusplus @@ -62,10 +68,3 @@ void X_SOLVE_ (DATA_TYPE *, /* Matrix input*/ } #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/xlu_solve.h b/packages/pliris/src/xlu_solve.h index 356ff6f07fba..c6b2839e2fb0 100644 --- a/packages/pliris/src/xlu_solve.h +++ b/packages/pliris/src/xlu_solve.h @@ -44,6 +44,12 @@ #ifndef __XLUSOLVEH__ #define __XLUSOLVEH__ +#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Pliris package is deprecated" +#endif +#endif + #include "defines.h" #ifdef __cplusplus @@ -65,10 +71,3 @@ double seconds_(double *); #endif #endif - -#if defined(Pliris_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Pliris package is deprecated" -#endif -#endif - diff --git a/packages/pliris/src/zblassp.h b/packages/pliris/src/zblassp.h index f727bbb88163..7889e0e2f324 100644 --- a/packages/pliris/src/zblassp.h +++ b/packages/pliris/src/zblassp.h @@ -66,4 +66,3 @@ #warning "The Pliris package is deprecated" #endif #endif - diff --git a/packages/rol/cmake/PythonTest.cmake b/packages/rol/cmake/PythonTest.cmake index 2568fa4b6377..f5fbf4c94b22 100644 --- a/packages/rol/cmake/PythonTest.cmake +++ b/packages/rol/cmake/PythonTest.cmake @@ -1,7 +1,7 @@ MACRO(PYTHON_ADD_TEST TEST_NAME) TRIBITS_ADD_TEST( - ${PYTHON_EXECUTABLE} + ${Python3_EXECUTABLE} NOEXEPREFIX NOEXESUFFIX NAME PYTHON_${TEST_NAME} diff --git a/packages/rol/pyrol/CMakeLists.txt b/packages/rol/pyrol/CMakeLists.txt index 2fe54e059c57..9857e19eec0a 100644 --- a/packages/rol/pyrol/CMakeLists.txt +++ b/packages/rol/pyrol/CMakeLists.txt @@ -37,14 +37,14 @@ TRIBITS_ADD_OPTION_AND_DEFINE(PYROL_ENABLE_BINDER_UPDATE "Enable the update of the generated source files with Binder." OFF ) -MESSAGE("-- PYTHON_EXECUTABLE:") -IF(NOT DEFINED ${PYTHON_EXECUTABLE}) - find_program(PYTHON_EXECUTABLE +MESSAGE("-- Python3_EXECUTABLE:") +IF(NOT DEFINED ${Python3_EXECUTABLE}) + find_program(Python3_EXECUTABLE NAMES python3 python ) - MESSAGE(" -- CMake has set: PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}") + MESSAGE(" -- CMake has set: Python3_EXECUTABLE = ${Python3_EXECUTABLE}") ELSE() - MESSAGE(" -- User has set: PYTHON_EXECUTABLE = ${PYTHON_EXECUTABLE}") + MESSAGE(" -- User has set: Python3_EXECUTABLE = ${Python3_EXECUTABLE}") ENDIF() @@ -257,7 +257,7 @@ IF (PYROL_GENERATE_SRC) list (APPEND PyROLPyFiles ${PyROLPyFiles2}) EXECUTE_PROCESS(COMMAND - ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/gather_includes.py ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${all_header_with_dir_list} ${all_header_without_dir_list} ${binder_include_name} + ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/scripts/gather_includes.py ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${all_header_with_dir_list} ${all_header_without_dir_list} ${binder_include_name} ) set(BINDER_OPTIONS "") @@ -322,12 +322,12 @@ ELSE() ENDIF() # Get the python version -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c +EXECUTE_PROCESS(COMMAND ${Python3_EXECUTABLE} -c "import sys; print(sys.version_info.major)" OUTPUT_VARIABLE PYTHON_MAJOR_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE ) -EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c +EXECUTE_PROCESS(COMMAND ${Python3_EXECUTABLE} -c "import sys; print(sys.version_info.minor)" OUTPUT_VARIABLE PYTHON_MINOR_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE @@ -385,7 +385,7 @@ ENDFOREACH() # Find the pybind11 CMake module EXECUTE_PROCESS(COMMAND - ${PYTHON_EXECUTABLE} -c "import pybind11; print(pybind11.get_cmake_dir())" + ${Python3_EXECUTABLE} -c "import pybind11; print(pybind11.get_cmake_dir())" OUTPUT_VARIABLE pybind11_DIR ERROR_VARIABLE pybind11_CMAKE_ERROR OUTPUT_STRIP_TRAILING_WHITESPACE @@ -395,7 +395,7 @@ MESSAGE(STATUS "pybind11 CMake path: ${pybind11_DIR}") find_package(pybind11 REQUIRED) EXECUTE_PROCESS(COMMAND - ${PYTHON_EXECUTABLE} -c "import mpi4py; print(mpi4py.get_include())" + ${Python3_EXECUTABLE} -c "import mpi4py; print(mpi4py.get_include())" OUTPUT_VARIABLE Mpi4Py_INCLUDE_DIR ERROR_VARIABLE Mpi4Py_INCLUDE_ERROR OUTPUT_STRIP_TRAILING_WHITESPACE diff --git a/packages/sacado/Fad/utils/timer.h b/packages/sacado/Fad/utils/timer.h index fd7955bb4f44..e82b156396f8 100644 --- a/packages/sacado/Fad/utils/timer.h +++ b/packages/sacado/Fad/utils/timer.h @@ -93,4 +93,3 @@ class Timer { } // namespace FAD #endif - diff --git a/packages/sacado/Fad/utils/vectors.h b/packages/sacado/Fad/utils/vectors.h index dd55480b19a9..b0a1d3a7a82e 100644 --- a/packages/sacado/Fad/utils/vectors.h +++ b/packages/sacado/Fad/utils/vectors.h @@ -462,10 +462,3 @@ template< class T > Vector< T >& Vector< T >::operator = (const T& val) } // Namespace FAD #endif - - - - - - - diff --git a/packages/sacado/example/copyright.h b/packages/sacado/example/copyright.h index 6d489445cdc7..3a2be7f9db7b 100644 --- a/packages/sacado/example/copyright.h +++ b/packages/sacado/example/copyright.h @@ -6,4 +6,3 @@ // SPDX-License-Identifier: LGPL-2.1-or-later // ***************************************************************************** // @HEADER - diff --git a/packages/sacado/test/performance/ad_deriv.h b/packages/sacado/test/performance/ad_deriv.h index 3cb635192d50..68e4d94ade0f 100644 --- a/packages/sacado/test/performance/ad_deriv.h +++ b/packages/sacado/test/performance/ad_deriv.h @@ -52,4 +52,3 @@ void AD_Final(); #define nullFunc(x) 0 #endif - diff --git a/packages/seacas/libraries/ioss/src/Ioss_StructuredBlock.h b/packages/seacas/libraries/ioss/src/Ioss_StructuredBlock.h index 8519d2b83aed..60c7f9ed7950 100644 --- a/packages/seacas/libraries/ioss/src/Ioss_StructuredBlock.h +++ b/packages/seacas/libraries/ioss/src/Ioss_StructuredBlock.h @@ -348,4 +348,3 @@ namespace Ioss { } }; } // namespace Ioss - diff --git a/packages/seacas/libraries/ioss/src/catalyst_tests/Iocatalyst_LoggingTest.h b/packages/seacas/libraries/ioss/src/catalyst_tests/Iocatalyst_LoggingTest.h index e90e761c700a..fd00c6308339 100644 --- a/packages/seacas/libraries/ioss/src/catalyst_tests/Iocatalyst_LoggingTest.h +++ b/packages/seacas/libraries/ioss/src/catalyst_tests/Iocatalyst_LoggingTest.h @@ -29,4 +29,4 @@ class LoggingTest : public ::testing::Test } return outputFileExists; } -}; \ No newline at end of file +}; diff --git a/packages/seacas/libraries/ioss/src/exodus/Ioex_BaseDatabaseIO.C b/packages/seacas/libraries/ioss/src/exodus/Ioex_BaseDatabaseIO.C index 5cb2caec64e8..8ce14bbfd072 100644 --- a/packages/seacas/libraries/ioss/src/exodus/Ioex_BaseDatabaseIO.C +++ b/packages/seacas/libraries/ioss/src/exodus/Ioex_BaseDatabaseIO.C @@ -2040,7 +2040,7 @@ namespace Ioex { } // Output field metadata - bool do_metadata = true; + bool do_metadata = false; Ioss::Utils::check_set_bool_property(properties, "OUTPUT_FIELD_METADATA", do_metadata); if (do_metadata) { output_field_metadata(); diff --git a/packages/seacas/libraries/ioss/src/visualization/utils/Iovs_CatalystVersion.h b/packages/seacas/libraries/ioss/src/visualization/utils/Iovs_CatalystVersion.h index 04487293309a..84df4e137b30 100644 --- a/packages/seacas/libraries/ioss/src/visualization/utils/Iovs_CatalystVersion.h +++ b/packages/seacas/libraries/ioss/src/visualization/utils/Iovs_CatalystVersion.h @@ -49,4 +49,4 @@ namespace Iovs { } // namespace Iovs -#endif \ No newline at end of file +#endif diff --git a/packages/shards/src/Shards_CellTopologyData.h b/packages/shards/src/Shards_CellTopologyData.h index 8185a96734cc..b6be672e33d3 100644 --- a/packages/shards/src/Shards_CellTopologyData.h +++ b/packages/shards/src/Shards_CellTopologyData.h @@ -182,4 +182,3 @@ int mapCellFaceEdge( const CellTopologyData * cell_topology , #endif #endif /* Shards_CellTopologyData_h */ - diff --git a/packages/shylu/shylu_dd/core/src/epetra/IQRSolver.h b/packages/shylu/shylu_dd/core/src/epetra/IQRSolver.h index 1dd1114a8d10..5c5b63cf816e 100644 --- a/packages/shylu/shylu_dd/core/src/epetra/IQRSolver.h +++ b/packages/shylu/shylu_dd/core/src/epetra/IQRSolver.h @@ -18,6 +18,12 @@ #ifndef IQRSOLVER_H_ #define IQRSOLVER_H_ +#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ShyLU_DDCore package is deprecated" +#endif +#endif + #include #include @@ -74,10 +80,3 @@ class IQRSolver { } /* namespace IQR */ #endif /* IQRSOLVER_H_ */ - -#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ShyLU_DDCore package is deprecated" -#endif -#endif - diff --git a/packages/shylu/shylu_dd/core/src/epetra/Ifpack_ShyLU.h b/packages/shylu/shylu_dd/core/src/epetra/Ifpack_ShyLU.h index 6a8ae552fc2a..8f759cb18905 100644 --- a/packages/shylu/shylu_dd/core/src/epetra/Ifpack_ShyLU.h +++ b/packages/shylu/shylu_dd/core/src/epetra/Ifpack_ShyLU.h @@ -18,6 +18,12 @@ #ifndef IFPACK_SHYLU_H #define IFPACK_SHYLU_H +#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ShyLU_DDCore package is deprecated" +#endif +#endif + #include #include #include @@ -340,10 +346,3 @@ int JustTryIt() ; }; #endif /* IFPACK_SHYLU_H */ - -#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ShyLU_DDCore package is deprecated" -#endif -#endif - diff --git a/packages/shylu/shylu_dd/core/src/epetra/shylu.h b/packages/shylu/shylu_dd/core/src/epetra/shylu.h index a0a18e2825ef..5aac240a5bae 100644 --- a/packages/shylu/shylu_dd/core/src/epetra/shylu.h +++ b/packages/shylu/shylu_dd/core/src/epetra/shylu.h @@ -16,6 +16,12 @@ #ifndef SHYLU_H #define SHYLU_H +#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ShyLU_DDCore package is deprecated" +#endif +#endif + // Epetra include #include "Epetra_CrsMatrix.h" #include "Epetra_Map.h" @@ -190,10 +196,3 @@ Teuchos::RCP computeSchur_GuidedProbing Epetra_Map *localDRowMap ); #endif // SHYLU_H - -#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ShyLU_DDCore package is deprecated" -#endif -#endif - diff --git a/packages/shylu/shylu_dd/core/src/epetra/shylu_amesos_schur_operator.h b/packages/shylu/shylu_dd/core/src/epetra/shylu_amesos_schur_operator.h index f48ecdb34950..fa24e384196e 100644 --- a/packages/shylu/shylu_dd/core/src/epetra/shylu_amesos_schur_operator.h +++ b/packages/shylu/shylu_dd/core/src/epetra/shylu_amesos_schur_operator.h @@ -18,6 +18,12 @@ #ifndef IFPACK_AMESOS2_H #define IFPACK_AMESOS2_H +#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ShyLU_DDCore package is deprecated" +#endif +#endif + #include #include #include @@ -291,10 +297,3 @@ class AmesosSchurOperator: public Epetra_Operator }; #endif /* IFPACK_AMESOS2_H */ - -#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ShyLU_DDCore package is deprecated" -#endif -#endif - diff --git a/packages/shylu/shylu_dd/core/src/epetra/shylu_config.h b/packages/shylu/shylu_dd/core/src/epetra/shylu_config.h index d0143d14cc76..d70e96d38db3 100644 --- a/packages/shylu/shylu_dd/core/src/epetra/shylu_config.h +++ b/packages/shylu/shylu_dd/core/src/epetra/shylu_config.h @@ -10,6 +10,12 @@ #ifndef SHYLU_CONFIG_H #define SHYLU_CONFIG_H +#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ShyLU_DDCore package is deprecated" +#endif +#endif + typedef struct { int sym; // flag for symmetry @@ -36,10 +42,3 @@ typedef struct } shylu_config; #endif // SHYLU_CONFIG_H - -#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ShyLU_DDCore package is deprecated" -#endif -#endif - diff --git a/packages/shylu/shylu_dd/core/src/epetra/shylu_internal.h b/packages/shylu/shylu_dd/core/src/epetra/shylu_internal.h index 799aa629691d..99d7ab4f3e79 100644 --- a/packages/shylu/shylu_dd/core/src/epetra/shylu_internal.h +++ b/packages/shylu/shylu_dd/core/src/epetra/shylu_internal.h @@ -11,6 +11,12 @@ #ifndef SHYLU_INTERNAL_H #define SHYLU_INTERNAL_H +#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ShyLU_DDCore package is deprecated" +#endif +#endif + int create_matrices ( Epetra_CrsMatrix *A, // i/p: A matrix @@ -31,10 +37,3 @@ int extract_matrices ); #endif //SHYLU_INTERNAL_H - -#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ShyLU_DDCore package is deprecated" -#endif -#endif - diff --git a/packages/shylu/shylu_dd/core/src/epetra/shylu_internal_gmres.h b/packages/shylu/shylu_dd/core/src/epetra/shylu_internal_gmres.h index e3cfe7493ab7..9bc32c6c5b1e 100644 --- a/packages/shylu/shylu_dd/core/src/epetra/shylu_internal_gmres.h +++ b/packages/shylu/shylu_dd/core/src/epetra/shylu_internal_gmres.h @@ -22,6 +22,12 @@ #ifndef IQR_GMRES_H #define IQR_GMRES_H +#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ShyLU_DDCore package is deprecated" +#endif +#endif + #include #include @@ -202,10 +208,3 @@ int GMRES(const Operator &A, MultiVector &x, const MultiVector &b, } // namespace IQR #endif // IQR_GMRES_H - -#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ShyLU_DDCore package is deprecated" -#endif -#endif - diff --git a/packages/shylu/shylu_dd/core/src/epetra/shylu_internal_gmres_tools.h b/packages/shylu/shylu_dd/core/src/epetra/shylu_internal_gmres_tools.h index 2ade598ca9fb..fc3c326e9649 100644 --- a/packages/shylu/shylu_dd/core/src/epetra/shylu_internal_gmres_tools.h +++ b/packages/shylu/shylu_dd/core/src/epetra/shylu_internal_gmres_tools.h @@ -10,6 +10,12 @@ #ifndef IQR_GMRES_TOOLS_H #define IQR_GMRES_TOOLS_H +#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ShyLU_DDCore package is deprecated" +#endif +#endif + #include #include @@ -263,10 +269,3 @@ int GMRESManager< Map, MultiVector, } // namespace IQR #endif // IQR_GMRES_TOOLS_H - -#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ShyLU_DDCore package is deprecated" -#endif -#endif - diff --git a/packages/shylu/shylu_dd/core/src/epetra/shylu_local_schur_operator.h b/packages/shylu/shylu_dd/core/src/epetra/shylu_local_schur_operator.h index f797dd602a8f..b5f500532da8 100644 --- a/packages/shylu/shylu_dd/core/src/epetra/shylu_local_schur_operator.h +++ b/packages/shylu/shylu_dd/core/src/epetra/shylu_local_schur_operator.h @@ -10,6 +10,12 @@ #ifndef SHYLU_LOCAL_SCHUR_OPERATOR_H #define SHYLU_LOCAL_SCHUR_OPERATOR_H +#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ShyLU_DDCore package is deprecated" +#endif +#endif + #include #include #include @@ -99,10 +105,3 @@ class ShyLU_Local_Schur_Operator : public virtual Epetra_Operator }; #endif // SHYLU_LOCAL_SCHUR_OPERATOR_H - -#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ShyLU_DDCore package is deprecated" -#endif -#endif - diff --git a/packages/shylu/shylu_dd/core/src/epetra/shylu_probing_operator.h b/packages/shylu/shylu_dd/core/src/epetra/shylu_probing_operator.h index 790ab4fb77dc..3224eaed3184 100644 --- a/packages/shylu/shylu_dd/core/src/epetra/shylu_probing_operator.h +++ b/packages/shylu/shylu_dd/core/src/epetra/shylu_probing_operator.h @@ -10,6 +10,12 @@ #ifndef SHYLU_PROBING_OPERATOR_H #define SHYLU_PROBING_OPERATOR_H +#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ShyLU_DDCore package is deprecated" +#endif +#endif + #include #include #include @@ -91,10 +97,3 @@ class ShyLU_Probing_Operator : public virtual Epetra_Operator }; #endif // SHYLU_PROBING_OPERATOR_H - -#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ShyLU_DDCore package is deprecated" -#endif -#endif - diff --git a/packages/shylu/shylu_dd/core/src/epetra/shylu_symbolic.h b/packages/shylu/shylu_dd/core/src/epetra/shylu_symbolic.h index dcba5895f7a2..492c3c5b0d0d 100644 --- a/packages/shylu/shylu_dd/core/src/epetra/shylu_symbolic.h +++ b/packages/shylu/shylu_dd/core/src/epetra/shylu_symbolic.h @@ -10,6 +10,12 @@ #ifndef SHYLU_SYMBOLIC_H #define SHYLU_SYMBOLIC_H +#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ShyLU_DDCore package is deprecated" +#endif +#endif + #include "Epetra_CrsMatrix.h" #include "Epetra_Map.h" #include "Epetra_MultiVector.h" @@ -43,10 +49,3 @@ typedef struct #endif // SHYLU_SYMBOLIC_H - -#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ShyLU_DDCore package is deprecated" -#endif -#endif - diff --git a/packages/shylu/shylu_dd/core/src/epetra/shylu_util.h b/packages/shylu/shylu_dd/core/src/epetra/shylu_util.h index 91ef2763218c..509796415845 100644 --- a/packages/shylu/shylu_dd/core/src/epetra/shylu_util.h +++ b/packages/shylu/shylu_dd/core/src/epetra/shylu_util.h @@ -17,6 +17,12 @@ #ifndef SHYLU_UTIL_H #define SHYLU_UTIL_H +#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The ShyLU_DDCore package is deprecated" +#endif +#endif + #include #include #include @@ -89,10 +95,3 @@ void findBlockElems(Epetra_CrsMatrix *A, int nrows, int *rows, int *gvals, #endif #endif //SHYLU_UTIL_H - -#if defined(ShyLU_DDCore_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The ShyLU_DDCore package is deprecated" -#endif -#endif - diff --git a/packages/shylu/shylu_node/tacho/unit-test/googletest/cmake/internal_utils.cmake b/packages/shylu/shylu_node/tacho/unit-test/googletest/cmake/internal_utils.cmake index 5a34c07a1b99..1280e85acb11 100644 --- a/packages/shylu/shylu_node/tacho/unit-test/googletest/cmake/internal_utils.cmake +++ b/packages/shylu/shylu_node/tacho/unit-test/googletest/cmake/internal_utils.cmake @@ -242,13 +242,13 @@ function(cxx_executable name dir libs) ${name} "${cxx_default}" "${libs}" "${dir}/${name}.cc" ${ARGN}) endfunction() -# Sets PYTHONINTERP_FOUND and PYTHON_EXECUTABLE. +# Sets PYTHONINTERP_FOUND and Python3_EXECUTABLE. if ("${CMAKE_VERSION}" VERSION_LESS "3.12.0") find_package(PythonInterp) else() find_package(Python COMPONENTS Interpreter) set(PYTHONINTERP_FOUND ${Python_Interpreter_FOUND}) - set(PYTHON_EXECUTABLE ${Python_EXECUTABLE}) + set(Python3_EXECUTABLE ${Python_EXECUTABLE}) endif() # cxx_test_with_flags(name cxx_flags libs srcs...) @@ -282,13 +282,13 @@ function(py_test name) # output in a subdirectory of CMAKE_CURRENT_BINARY_DIR (Debug, # Release etc.), so we have to provide it here. add_test(NAME ${name} - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test/${name}.py + COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test/${name}.py --build_dir=${CMAKE_CURRENT_BINARY_DIR}/$ ${ARGN}) else (CMAKE_CONFIGURATION_TYPES) # Single-configuration build generators like Makefile generators # don't have subdirs below CMAKE_CURRENT_BINARY_DIR. add_test(NAME ${name} - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test/${name}.py + COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test/${name}.py --build_dir=${CMAKE_CURRENT_BINARY_DIR} ${ARGN}) endif (CMAKE_CONFIGURATION_TYPES) else() @@ -297,7 +297,7 @@ function(py_test name) # only at ctest runtime (by calling ctest -c ), so # we have to escape $ to delay variable substitution here. add_test(NAME ${name} - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test/${name}.py + COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/test/${name}.py --build_dir=${CMAKE_CURRENT_BINARY_DIR}/\${CTEST_CONFIGURATION_TYPE} ${ARGN}) endif() # Make the Python import path consistent between Bazel and CMake. diff --git a/packages/stokhos/src/Stokhos_gaussq.h b/packages/stokhos/src/Stokhos_gaussq.h index ef5099e0ddeb..683e61912869 100644 --- a/packages/stokhos/src/Stokhos_gaussq.h +++ b/packages/stokhos/src/Stokhos_gaussq.h @@ -21,4 +21,3 @@ extern void GAUSSQ_F77(int *kind, int *n, double *alpha, double *beta, #ifdef __cplusplus } #endif - diff --git a/packages/stokhos/src/cusp/detail/device/spmm/csr.h b/packages/stokhos/src/cusp/detail/device/spmm/csr.h index 04eaf3f4f1a3..f0f869949362 100644 --- a/packages/stokhos/src/cusp/detail/device/spmm/csr.h +++ b/packages/stokhos/src/cusp/detail/device/spmm/csr.h @@ -177,4 +177,3 @@ void spmm_csr_scalar(const Matrix1& A, } // end namespace device } // end namespace detail } // end namespace cusp - diff --git a/packages/stokhos/src/cusp/relaxation/block_jacobi.h b/packages/stokhos/src/cusp/relaxation/block_jacobi.h index 23ee59dca43a..3534fc8afdef 100644 --- a/packages/stokhos/src/cusp/relaxation/block_jacobi.h +++ b/packages/stokhos/src/cusp/relaxation/block_jacobi.h @@ -84,4 +84,3 @@ class block_jacobi : public cusp::linear_operator } // end namespace cusp #include - diff --git a/packages/stokhos/src/sacado/kokkos/vector/KokkosBlas2_gemv_MP_Vector.hpp b/packages/stokhos/src/sacado/kokkos/vector/KokkosBlas2_gemv_MP_Vector.hpp index ae206eb97df9..0457ca4daca9 100644 --- a/packages/stokhos/src/sacado/kokkos/vector/KokkosBlas2_gemv_MP_Vector.hpp +++ b/packages/stokhos/src/sacado/kokkos/vector/KokkosBlas2_gemv_MP_Vector.hpp @@ -130,7 +130,7 @@ struct innerF if (team.team_rank() == 0) { tmp *= alpha_; - Kokkos::atomic_add(&y_(i), tmp); + Kokkos::atomic_add(&y_(i), tmp); } } for (IndexType i = 0; i < i_min; ++i) @@ -144,7 +144,7 @@ struct innerF if (team.team_rank() == 0) { tmp *= alpha_; - Kokkos::atomic_add(&y_(i), tmp); + Kokkos::atomic_add(&y_(i), tmp); } } } diff --git a/packages/triutils/src/Trilinos_Util.h b/packages/triutils/src/Trilinos_Util.h index d1a2d63a7a1e..ede8bedb37bf 100644 --- a/packages/triutils/src/Trilinos_Util.h +++ b/packages/triutils/src/Trilinos_Util.h @@ -42,6 +42,12 @@ #ifndef _TRILINOS_UTIL_H_ #define _TRILINOS_UTIL_H_ +#if defined(Triutils_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Triutils package is deprecated" +#endif +#endif + #define Trilinos_Util_max(x,y) (( x > y ) ? x : y) /* max function */ #define Trilinos_Util_min(x,y) (( x < y ) ? x : y) /* min function */ @@ -503,10 +509,3 @@ int Trilinos_Util_ReadTriples2Epetra64( #endif //ifdef HAVE_TRIUTILS_EPETRA #endif /* _TRILINOS_UTIL_H_ */ - -#if defined(Triutils_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Triutils package is deprecated" -#endif -#endif - diff --git a/packages/triutils/src/Trilinos_Util_CommandLineParser.h b/packages/triutils/src/Trilinos_Util_CommandLineParser.h index f0453721d146..d8ff64db6016 100644 --- a/packages/triutils/src/Trilinos_Util_CommandLineParser.h +++ b/packages/triutils/src/Trilinos_Util_CommandLineParser.h @@ -42,6 +42,12 @@ #ifndef _TRILINOS_UTIL_CLP_ #define _TRILINOS_UTIL_CLP_ +#if defined(Triutils_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Triutils package is deprecated" +#endif +#endif + #include #include #include @@ -295,10 +301,3 @@ class InputFileReader : public Trilinos_Util_Map } // namespace Trilinos_Util #endif - -#if defined(Triutils_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Triutils package is deprecated" -#endif -#endif - diff --git a/packages/triutils/src/Trilinos_Util_CountMatrixMarket.h b/packages/triutils/src/Trilinos_Util_CountMatrixMarket.h index 995ad5c10475..f3151c6925fe 100644 --- a/packages/triutils/src/Trilinos_Util_CountMatrixMarket.h +++ b/packages/triutils/src/Trilinos_Util_CountMatrixMarket.h @@ -87,4 +87,3 @@ void Trilinos_Util_CountMatrixMarket( const char *data_file, #warning "The Triutils package is deprecated" #endif #endif - diff --git a/packages/triutils/src/Trilinos_Util_CountTriples.h b/packages/triutils/src/Trilinos_Util_CountTriples.h index 78d78094695b..7d13a0e9cb29 100644 --- a/packages/triutils/src/Trilinos_Util_CountTriples.h +++ b/packages/triutils/src/Trilinos_Util_CountTriples.h @@ -72,4 +72,3 @@ void Trilinos_Util_CountTriples( const char *data_file, #warning "The Triutils package is deprecated" #endif #endif - diff --git a/packages/triutils/src/Trilinos_Util_CrsMatrixGallery.h b/packages/triutils/src/Trilinos_Util_CrsMatrixGallery.h index ab4157cf4188..254c141048b1 100644 --- a/packages/triutils/src/Trilinos_Util_CrsMatrixGallery.h +++ b/packages/triutils/src/Trilinos_Util_CrsMatrixGallery.h @@ -42,6 +42,12 @@ #ifndef __TRILINOS_UTILS_GALLERY_H #define __TRILINOS_UTILS_GALLERY_H +#if defined(Triutils_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Triutils package is deprecated" +#endif +#endif + class Epetra_Comm; class Epetra_Map; class Epetra_BlockMap; @@ -646,10 +652,3 @@ class VbrMatrixGallery : public CrsMatrixGallery } // namespace Trilinos_Util #endif - -#if defined(Triutils_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Triutils package is deprecated" -#endif -#endif - diff --git a/packages/triutils/src/Trilinos_Util_ReadMatrixMarket2Epetra.h b/packages/triutils/src/Trilinos_Util_ReadMatrixMarket2Epetra.h index 3dba33964041..00f72fe10f8d 100644 --- a/packages/triutils/src/Trilinos_Util_ReadMatrixMarket2Epetra.h +++ b/packages/triutils/src/Trilinos_Util_ReadMatrixMarket2Epetra.h @@ -84,4 +84,3 @@ int Trilinos_Util_ReadMatrixMarket2Epetra64( #warning "The Triutils package is deprecated" #endif #endif - diff --git a/packages/triutils/src/Trilinos_Util_Version.h b/packages/triutils/src/Trilinos_Util_Version.h index f9797b6fe024..78fa3761b34f 100644 --- a/packages/triutils/src/Trilinos_Util_Version.h +++ b/packages/triutils/src/Trilinos_Util_Version.h @@ -42,6 +42,12 @@ #ifndef TRILINOS_UTIL_VERSION_H #define TRILINOS_UTIL_VERSION_H +#if defined(Triutils_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Triutils package is deprecated" +#endif +#endif + #include "Trilinos_Util.h" #include "Trilinos_version.h" @@ -50,11 +56,3 @@ } #endif // TRILINOS_UTIL_VERSION_H - - -#if defined(Triutils_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Triutils package is deprecated" -#endif -#endif - diff --git a/packages/triutils/src/Trilinos_Util_iohb.h b/packages/triutils/src/Trilinos_Util_iohb.h index eac01c101698..e6d32ac95830 100644 --- a/packages/triutils/src/Trilinos_Util_iohb.h +++ b/packages/triutils/src/Trilinos_Util_iohb.h @@ -42,6 +42,12 @@ #ifndef IOHB_H #define IOHB_H +#if defined(Triutils_SHOW_DEPRECATED_WARNINGS) +#ifdef __GNUC__ +#warning "The Triutils package is deprecated" +#endif +#endif + #ifndef TRILINOS_NO_CONFIG_H /* @@ -137,10 +143,3 @@ int ParseRfmt(char* fmt, int* perline, int* width, int* prec, int* flag); void IOHBTerminate(char* message); #endif - -#if defined(Triutils_SHOW_DEPRECATED_WARNINGS) -#ifdef __GNUC__ -#warning "The Triutils package is deprecated" -#endif -#endif - diff --git a/packages/zoltan/src/coloring/g2l_hash.h b/packages/zoltan/src/coloring/g2l_hash.h index 70253df3cce4..2b482a542122 100644 --- a/packages/zoltan/src/coloring/g2l_hash.h +++ b/packages/zoltan/src/coloring/g2l_hash.h @@ -64,4 +64,3 @@ int Zoltan_KVHash_GetValue(KVHash *hash, ZOLTAN_GNO_TYPE key); #endif - diff --git a/packages/zoltan/src/driver/dr_hg_readfile.h b/packages/zoltan/src/driver/dr_hg_readfile.h index c3cd8baf9048..f06f24adb413 100644 --- a/packages/zoltan/src/driver/dr_hg_readfile.h +++ b/packages/zoltan/src/driver/dr_hg_readfile.h @@ -33,4 +33,4 @@ int MM_readfile (int, int, ZOLTAN_FILE*, PARIO_INFO_PTR, int*, int*, int*, int** } /* closing bracket for extern "C" */ #endif -#endif +#endif diff --git a/packages/zoltan/src/include/zoltan_cpp.h b/packages/zoltan/src/include/zoltan_cpp.h index 895628d26e23..bcb1f7dc41d0 100644 --- a/packages/zoltan/src/include/zoltan_cpp.h +++ b/packages/zoltan/src/include/zoltan_cpp.h @@ -654,4 +654,3 @@ class Zoltan { }; #endif - diff --git a/packages/zoltan/src/include/zoltan_partition_tree.h b/packages/zoltan/src/include/zoltan_partition_tree.h index 917a30f87029..3c558421ebb5 100644 --- a/packages/zoltan/src/include/zoltan_partition_tree.h +++ b/packages/zoltan/src/include/zoltan_partition_tree.h @@ -134,4 +134,3 @@ int Zoltan_PHG_Partition_Tree( #endif #endif - diff --git a/packages/zoltan/src/order/hsfcOrder.h b/packages/zoltan/src/order/hsfcOrder.h index b69c361305f4..47c3789d75f3 100644 --- a/packages/zoltan/src/order/hsfcOrder.h +++ b/packages/zoltan/src/order/hsfcOrder.h @@ -18,4 +18,3 @@ int Zoltan_LocalHSFC_Order( int *iperm, ZOOS *order_opt /* Ordering options, parsed by Zoltan_Order */ ); - diff --git a/packages/zoltan/src/phg/phg_distrib.h b/packages/zoltan/src/phg/phg_distrib.h index b08594d94f5b..dc23b8a8785e 100644 --- a/packages/zoltan/src/phg/phg_distrib.h +++ b/packages/zoltan/src/phg/phg_distrib.h @@ -43,4 +43,3 @@ int Zoltan_PHG_Redistribute( #endif #endif /* __ZOLTAN_PHG_DISTRIB_H */ - diff --git a/packages/zoltan/src/phg/phg_params.h b/packages/zoltan/src/phg/phg_params.h index cd6369710362..ea8d0c7a7fa8 100644 --- a/packages/zoltan/src/phg/phg_params.h +++ b/packages/zoltan/src/phg/phg_params.h @@ -108,4 +108,3 @@ static PARAM_VARS PHG_params[] = { #endif #endif - diff --git a/packages/zoltan/src/phg/phg_tree.h b/packages/zoltan/src/phg/phg_tree.h index c98b799b433b..52b6575e51b1 100644 --- a/packages/zoltan/src/phg/phg_tree.h +++ b/packages/zoltan/src/phg/phg_tree.h @@ -127,4 +127,3 @@ Zoltan_PHG_Timers_init(ZZ* zz); #endif #endif /* __ZOLTAN_PHG_TREE_H */ -