Skip to content

Commit bb1e9de

Browse files
committed
EAMxx: remap matvec should access const in mask
1 parent 94ee77a commit bb1e9de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/eamxx/src/share/grid/remap/coarsening_remapper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,9 @@ local_mat_vec (const Field& x, const Field& y, const Field& mask) const
432432
// Unlike get_view, get_strided_view returns a LayoutStride view,
433433
// therefore allowing the 1d field to be a subfield of a 2d field
434434
// along the 2nd dimension.
435-
auto x_view = x.get_strided_view<const Real*>();
436-
auto y_view = y.get_strided_view< Real*>();
437-
auto mask_view = mask.get_strided_view<Real*>();
435+
auto x_view = x.get_strided_view<const Real*>();
436+
auto y_view = y.get_strided_view< Real*>();
437+
auto mask_view = mask.get_strided_view<const Real*>();
438438
Kokkos::parallel_for(RangePolicy(0,nrows),
439439
KOKKOS_LAMBDA(const int& row) {
440440
const auto beg = row_offsets(row);

0 commit comments

Comments
 (0)