Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Tpetra 64 bit global ordinate errors #16005

Merged
merged 1 commit into from Oct 11, 2023

Conversation

jpthiele
Copy link
Contributor

Tpetra requires long long as global ordinate type, which does not always match with std::int64_t.
Therefore, configure stage fails with default Tpetra settings.

Changed signed_global_index_type in types.h to reflect this too. Also added hopefully helpful CMake messages
in case the Tpetra check fails.
If it is global index related it will offer two ways to make Tpetra usable in deal.II.

@jpthiele jpthiele mentioned this pull request Sep 18, 2023
Copy link
Member

@masterleinad masterleinad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since trilinos/Trilinos@67f5151 (12.18.1) Tpetra is always instantiated for long long int as global ordinal type by default.

We should be careful with casting between pointers of type signed_global_dof_index* and global_dof_index since they are now differ by more than signedness.

cmake/configure/configure_20_trilinos.cmake Outdated Show resolved Hide resolved
cmake/configure/configure_20_trilinos.cmake Outdated Show resolved Hide resolved
cmake/configure/configure_20_trilinos.cmake Outdated Show resolved Hide resolved
cmake/configure/configure_20_trilinos.cmake Outdated Show resolved Hide resolved
cmake/configure/configure_20_trilinos.cmake Outdated Show resolved Hide resolved
cmake/configure/configure_20_trilinos.cmake Outdated Show resolved Hide resolved
cmake/configure/configure_20_trilinos.cmake Outdated Show resolved Hide resolved
cmake/configure/configure_20_trilinos.cmake Outdated Show resolved Hide resolved
include/deal.II/base/types.h Show resolved Hide resolved
@jpthiele
Copy link
Contributor Author

jpthiele commented Oct 4, 2023

Updated to current master, should fix previous intel compiler action error.

@masterleinad
Copy link
Member

/rebuild

@drwells drwells merged commit 451219f into dealii:master Oct 11, 2023
14 of 15 checks passed
@jpthiele jpthiele deleted the jpt-fix-64bit-tpetra-type branch October 11, 2023 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants