Skip to content

Commit

Permalink
Fixes to prevent compilation errors in Albany warning-free build.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikalash committed Nov 9, 2023
1 parent b34ea58 commit 2d91178
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/Omega_h_int_scan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ LOs offset_scan(Read<T> a, std::string const& name) {
out.set(0, 0);
#if defined(OMEGA_H_USE_KOKKOS)
auto outSub = Kokkos::subview(out.view(),std::make_pair(1,out.size()));
assert(outSub.size()==a.size());
LO outSub_size = outSub.size();
assert(outSub_size==a.size());
auto kkOp = i32Plus<LO>();
Kokkos::Experimental::inclusive_scan("omegah_kk_offset_scan", ExecSpace(), a.view(), outSub, kkOp, LO());
Kokkos::fence();
Expand Down
1 change: 0 additions & 1 deletion src/Omega_h_rcFields.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ Read<T> Mesh::get_rc_mesh_array_from_rc_array(

auto rc_ids = class_ids.exists() ? (ask_revClass(ent_dim, class_ids)).ab2b
: (ask_revClass(ent_dim)).ab2b;
auto class_id_size = class_ids.exists() ? class_ids.size() : -1;
auto n_bEnts = rc_ids.size();
OMEGA_H_CHECK(rc_field.size() == n_bEnts * ncomps);
if ((ent_dim == 3) && (n_bEnts != n_ents)) {
Expand Down
1 change: 0 additions & 1 deletion src/Omega_h_vtk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,6 @@ void write_tag_impl<Real>(
void write_tag(std::ostream& stream, TagBase const* tag, Int space_dim,
Int ent_dim, Mesh* mesh, bool compress) {
OMEGA_H_TIME_FUNCTION;
const auto ncomps = tag->ncomps();
const auto name = tag->name();
const auto class_ids = tag->class_ids();
// TODO: write class id info for rc tag to file
Expand Down

0 comments on commit 2d91178

Please sign in to comment.