Skip to content

Commit

Permalink
Fix up
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Jan 30, 2024
1 parent a91ebb6 commit d195407
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/lac/trilinos_tpetra_sparsity_pattern.cc
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ namespace LinearAlgebra
"local_entries_per_row",
row_map->getMaxGlobalIndex() - row_map->getMinGlobalIndex());

/*auto local_entries_per_row_host =
auto local_entries_per_row_host =
local_entries_per_row.template view<Kokkos::DefaultHostExecutionSpace>();

std::uint64_t total_size = 0;
Expand All @@ -351,7 +351,7 @@ namespace LinearAlgebra
total_size += local_entries_per_row_host[i];
}
local_entries_per_row.template modify<Kokkos::DefaultHostExecutionSpace>();
local_entries_per_row.template sync<Kokkos::DefaultExecutionSpace>();
local_entries_per_row.template sync<typename MemorySpace::kokkos_space>();

AssertThrow(
total_size < static_cast<std::uint64_t>(
Expand All @@ -361,7 +361,7 @@ namespace LinearAlgebra
"You are requesting to store more elements than global ordinal type allows."));

graph = Utilities::Trilinos::internal::make_rcp<GraphType<MemorySpace>>(
row_map, col_map, local_entries_per_row);*/
row_map, col_map, local_entries_per_row);
}


Expand Down

0 comments on commit d195407

Please sign in to comment.