Skip to content

Commit

Permalink
have print_source_change take a vector by reference
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Apr 26, 2024
1 parent 9935adf commit 39a86f6
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(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(Vector<Real>& update)
{

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

0 comments on commit 39a86f6

Please sign in to comment.