Skip to content

Commit

Permalink
have print_source_change take a vector by reference (#2832)
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale authored Apr 26, 2024
1 parent 9935adf commit f58f11c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/sources/Castro_sources.H
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
///
/// @param update Real Vector of changes
///
static void print_source_change(amrex::Vector<amrex::Real> update);
static void print_source_change(const amrex::Vector<amrex::Real>& update);


///
Expand Down
2 changes: 1 addition & 1 deletion Source/sources/Castro_sources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ Castro::evaluate_source_change(const MultiFab& source, Real dt, bool local)
// interested in printing changes to energy, mass, etc.

void
Castro::print_source_change(Vector<Real> update)
Castro::print_source_change(const Vector<Real>& update)
{

if (ParallelDescriptor::IOProcessor()) {
Expand Down

0 comments on commit f58f11c

Please sign in to comment.