From 39a86f6249b1a36b861ad36abfa644352a300f88 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Fri, 26 Apr 2024 14:48:14 -0400 Subject: [PATCH] have print_source_change take a vector by reference --- Source/sources/Castro_sources.H | 2 +- Source/sources/Castro_sources.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/sources/Castro_sources.H b/Source/sources/Castro_sources.H index 16eeb3a17e..e5dd879d2f 100644 --- a/Source/sources/Castro_sources.H +++ b/Source/sources/Castro_sources.H @@ -149,7 +149,7 @@ /// /// @param update Real Vector of changes /// - static void print_source_change(amrex::Vector update); + static void print_source_change(amrex::Vector& update); /// diff --git a/Source/sources/Castro_sources.cpp b/Source/sources/Castro_sources.cpp index cae99300a7..d9fa283301 100644 --- a/Source/sources/Castro_sources.cpp +++ b/Source/sources/Castro_sources.cpp @@ -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 update) +Castro::print_source_change(Vector& update) { if (ParallelDescriptor::IOProcessor()) {