aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib
diff options
context:
space:
mode:
authorSteve White <swhite@aei.mpg.de>2005-08-09 14:34:00 +0000
committerSteve White <swhite@aei.mpg.de>2005-08-09 14:34:00 +0000
commita71bfa410e2d2cedf2c04ad27f4d93247738f10e (patch)
tree5a98ad49a05e8d6b75259edca65f5ba7736573a5 /Carpet/CarpetLib
parent4f916398f3b46128dc4326729fc1a7408c71ea31 (diff)
CarpetLib: typo in push of << operator
This fixes a typo in the previous push. I also took the opportunity to bring the patch into better compliance with the coding style. darcs-hash:20050809143402-90671-5feae89e34e29f1648b31a66d97d578a5b283f1b.gz
Diffstat (limited to 'Carpet/CarpetLib')
-rw-r--r--Carpet/CarpetLib/src/data.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc
index 37ee9cf71..c976aa267 100644
--- a/Carpet/CarpetLib/src/data.cc
+++ b/Carpet/CarpetLib/src/data.cc
@@ -1704,10 +1704,11 @@ ostream& data<T>::output (ostream& os) const
template<typename T>
-ostream & operator << ( ostream & os, const data<T> & d ) {
+ostream & operator << (ostream & os, const data<T> & d)
+{
char * space = "";
- for( size_t i = 0; i < d.vectorlength; i++ ) {
- cout << space << d[i];
+ for (size_t i = 0; i < d.vectorlength; i++) {
+ os << space << d[i];
space = " ";
}
return os;
@@ -1717,7 +1718,7 @@ ostream & operator << ( ostream & os, const data<T> & d ) {
#define INSTANTIATE(T) \
template class data<T>;
template
-ostream & operator << <CCTK_REAL> ( ostream & os, data<CCTK_REAL> const & d );
+ostream & operator << <CCTK_REAL> (ostream & os, data<CCTK_REAL> const & d);
#include "instantiate"
#undef INSTANTIATE