Skip to content

Commit

Permalink
Fix a bug in AMReX-Codes#3466
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang committed Aug 7, 2023
1 parent fdce60c commit 2a18d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_Array.H
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ namespace amrex
template <class T>
std::array<T const*,AMREX_SPACEDIM> GetArrOfConstPtrs (const std::array<T*,AMREX_SPACEDIM>& a) noexcept
{
return {{AMREX_D_DECL(a.data(), a.data()+1, a.data()+2)}};
return {{AMREX_D_DECL(a[0], a[1], a[2])}};
}

template <class T>
Expand Down

0 comments on commit 2a18d44

Please sign in to comment.