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

Avoid integer comparison warning. #13476

Merged
merged 1 commit into from
Mar 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions source/lac/trilinos_sparsity_pattern.cc
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ namespace TrilinosWrappers
AssertThrow((TrilinosWrappers::max_my_gid(row_map) -
TrilinosWrappers::min_my_gid(row_map)) *
std::uint64_t(n_entries_per_row) <
std::numeric_limits<int>::max(),
static_cast<std::uint64_t>(std::numeric_limits<int>::max()),
ExcMessage("The TrilinosWrappers use Epetra internally which "
"uses 'signed int' to represent local indices. "
"Therefore, only 2,147,483,647 nonzero matrix "
Expand Down Expand Up @@ -328,7 +328,7 @@ namespace TrilinosWrappers
AssertThrow(std::accumulate(local_entries_per_row.begin(),
local_entries_per_row.end(),
std::uint64_t(0)) <
std::numeric_limits<int>::max(),
static_cast<std::uint64_t>(std::numeric_limits<int>::max()),
ExcMessage("The TrilinosWrappers use Epetra internally which "
"uses 'signed int' to represent local indices. "
"Therefore, only 2,147,483,647 nonzero matrix "
Expand Down Expand Up @@ -389,7 +389,7 @@ namespace TrilinosWrappers
AssertThrow(std::accumulate(n_entries_per_row.begin(),
n_entries_per_row.end(),
std::uint64_t(0)) <
std::numeric_limits<int>::max(),
static_cast<std::uint64_t>(std::numeric_limits<int>::max()),
ExcMessage("The TrilinosWrappers use Epetra internally which "
"uses 'signed int' to represent local indices. "
"Therefore, only 2,147,483,647 nonzero matrix "
Expand Down