diff options
author | Erik Schnetter <schnetter@gmail.com> | 2012-09-17 22:37:53 -0400 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2012-09-17 22:37:53 -0400 |
commit | 35e17ca7c03bf6848d8cf2446da6630af2ea82c2 (patch) | |
tree | 90bcb641b6dac2ac8995491e3a91a5da9fc9b569 /Carpet/CarpetIOASCII | |
parent | bdafb413884068b7327c2f32f41edacf7a620931 (diff) |
CarpetIOASCII: Pass vectors by reference
Diffstat (limited to 'Carpet/CarpetIOASCII')
-rw-r--r-- | Carpet/CarpetIOASCII/src/ioascii.cc | 10 | ||||
-rw-r--r-- | Carpet/CarpetIOASCII/src/ioascii.hh | 2 |
2 files changed, 6 insertions, 6 deletions
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<int outdim> void WriteASCII (ostream& os, - vector<gdata*> const gfdatas, + vector<gdata*> const& gfdatas, const bbox<int,dim>& gfext, const int vi, const int time, @@ -1556,7 +1556,7 @@ namespace CarpetIOASCII { template void WriteASCII (ostream& os, - vector<gdata*> const gfdatas, + vector<gdata*> const& gfdatas, const bbox<int,dim>& gfext, const int vi, const int time, @@ -1573,7 +1573,7 @@ namespace CarpetIOASCII { template void WriteASCII (ostream& os, - vector<gdata*> const gfdatas, + vector<gdata*> const& gfdatas, const bbox<int,dim>& gfext, const int vi, const int time, @@ -1590,7 +1590,7 @@ namespace CarpetIOASCII { template void WriteASCII (ostream& os, - vector<gdata*> const gfdatas, + vector<gdata*> const& gfdatas, const bbox<int,dim>& gfext, const int vi, const int time, @@ -1607,7 +1607,7 @@ namespace CarpetIOASCII { template void WriteASCII (ostream& os, - vector<gdata*> const gfdatas, + vector<gdata*> const& gfdatas, const bbox<int,dim>& 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<int outdim> void WriteASCII (ostream& os, - vector<gdata*> const gfdatas, + vector<gdata*> const& gfdatas, const bbox<int,dim>& gfext, const int vi, const int time, |