Skip to content

Commit

Permalink
MueLu RefMaxwell: Dump BC info for Kokkos
Browse files Browse the repository at this point in the history
  • Loading branch information
cgcgcg committed Jun 16, 2018
1 parent e89a132 commit e6f4bd9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/muelu/adapters/xpetra/MueLu_RefMaxwell_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,18 @@ namespace MueLu {
std::copy(BCrows_.begin(), BCrows_.end(), std::ostream_iterator<LO>(outBCrows, "\n"));
std::ofstream outBCcols("BCcols.mat");
std::copy(BCcols_.begin(), BCcols_.end(), std::ostream_iterator<LO>(outBCcols, "\n"));
#else
std::ofstream outBCrows("BCrows.mat");
auto BCrows = Kokkos::create_mirror_view (BCrows_);
Kokkos::deep_copy(BCrows , BCrows_);
for (size_t i = 0; i < BCrows.size(); i++)
outBCrows << BCrows[i] << "\n";

std::ofstream outBCcols("BCcols.mat");
auto BCcols = Kokkos::create_mirror_view (BCcols_);
Kokkos::deep_copy(BCcols , BCcols_);
for (size_t i = 0; i < BCcols.size(); i++)
outBCcols << BCcols[i] << "\n";
#endif
Xpetra::IO<SC, LO, GlobalOrdinal, Node>::Write(std::string("nullspace.mat"), *Nullspace_);
if (Coords_ != Teuchos::null)
Expand Down

0 comments on commit e6f4bd9

Please sign in to comment.