Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
WeiqunZhang authored Mar 28, 2024
1 parent a1686f3 commit db8a619
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Src/Base/AMReX_MultiFab.H
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ public:
* This uses the same arena and factory in the copy and copies
* all data.
*/
MultiFab deepCopy ();
[[nodiscard]] MultiFab deepCopy () const;

/**
* \brief Copy from src to dst including nghost ghost cells.
Expand Down
4 changes: 2 additions & 2 deletions Src/Base/AMReX_MultiFab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ MultiFab::Add (MultiFab& dst, const MultiFab& src,
}

MultiFab
MultiFab::deepCopy ()
MultiFab::deepCopy () const
{
auto mf = MultiFab(
MultiFab mf(
this->boxArray(),
this->DistributionMap(),
this->nComp(),
Expand Down

0 comments on commit db8a619

Please sign in to comment.