Skip to content

add cmake support for Tpetra_ENABLE_DEPRECATED_CODE

James Willenbring requested to merge tpetra_disable_deprecated_cmake into develop

Created by: GeoffDanielson

This adds support to the CMakeLists.txt file to allow a macro switch to disable the old-style ordinal template args and dynamic allocation on matrices and graphs

@trilinos/tpetra

Description

Added a default value to the tpetra CMakeLists.txt file, support for the switch to the tpetra/src/core CMakeLists.txt, and a cmakedefine to TpetraCore_config.h.in

Motivation and Context

This is an effort toward removing the template arguments (local/global/index ordinal types) and dynamic profile support from tpetra without breaking backward compatibility with current apps

How Has This Been Tested?

This was tested by running CMake with -DTpetra_ENABLE_DEPRECATED_CODE explicitly included in both (ON|OFF) states, and excluded to make sure that CMake built appropriately.

Checklist

  • [NA] My commit messages mention the appropriate GitHub issue numbers.
  • My code follows the code style of the affected package(s).
  • [NA] My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the code contribution guidelines for this project.
  • [NA] I have added tests to cover my changes.
  • All new and existing tests passed.
  • No new compiler warnings were introduced.
  • These changes break backwards compatibility.

Merge request reports