From 35e17ca7c03bf6848d8cf2446da6630af2ea82c2 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Mon, 17 Sep 2012 22:37:53 -0400 Subject: CarpetIOASCII: Pass vectors by reference --- Carpet/CarpetIOASCII/src/ioascii.cc | 10 +++++----- Carpet/CarpetIOASCII/src/ioascii.hh | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'Carpet/CarpetIOASCII') diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc index cb29249df..3662849fc 100644 --- a/Carpet/CarpetIOASCII/src/ioascii.cc +++ b/Carpet/CarpetIOASCII/src/ioascii.cc @@ -1272,7 +1272,7 @@ namespace CarpetIOASCII { // Output template void WriteASCII (ostream& os, - vector const gfdatas, + vector const& gfdatas, const bbox& gfext, const int vi, const int time, @@ -1556,7 +1556,7 @@ namespace CarpetIOASCII { template void WriteASCII (ostream& os, - vector const gfdatas, + vector const& gfdatas, const bbox& gfext, const int vi, const int time, @@ -1573,7 +1573,7 @@ namespace CarpetIOASCII { template void WriteASCII (ostream& os, - vector const gfdatas, + vector const& gfdatas, const bbox& gfext, const int vi, const int time, @@ -1590,7 +1590,7 @@ namespace CarpetIOASCII { template void WriteASCII (ostream& os, - vector const gfdatas, + vector const& gfdatas, const bbox& gfext, const int vi, const int time, @@ -1607,7 +1607,7 @@ namespace CarpetIOASCII { template void WriteASCII (ostream& os, - vector const gfdatas, + vector const& gfdatas, const bbox& gfext, const int vi, const int time, diff --git a/Carpet/CarpetIOASCII/src/ioascii.hh b/Carpet/CarpetIOASCII/src/ioascii.hh index 75113d022..67e0eba7d 100644 --- a/Carpet/CarpetIOASCII/src/ioascii.hh +++ b/Carpet/CarpetIOASCII/src/ioascii.hh @@ -108,7 +108,7 @@ namespace CarpetIOASCII { template void WriteASCII (ostream& os, - vector const gfdatas, + vector const& gfdatas, const bbox& gfext, const int vi, const int time, -- cgit v1.2.3