aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/th.cc
diff options
context:
space:
mode:
authoreschnett <>2001-03-27 20:26:00 +0000
committereschnett <>2001-03-27 20:26:00 +0000
commite38a471f8346adf93d4cf7f2157eb4909403de55 (patch)
tree1d57cbc8731a1aabc779da152cdeddb9952b608f /Carpet/CarpetLib/src/th.cc
parente212f3431b22ec41ac3e0a5c86f9d0cc2c812376 (diff)
Made Carpet compile on IRIX.
darcs-hash:20010327202631-f6438-d70466b15bf2224f3ce20968622c77a3cca37a73.gz
Diffstat (limited to 'Carpet/CarpetLib/src/th.cc')
-rw-r--r--Carpet/CarpetLib/src/th.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/Carpet/CarpetLib/src/th.cc b/Carpet/CarpetLib/src/th.cc
index 17aaff924..4a6638b63 100644
--- a/Carpet/CarpetLib/src/th.cc
+++ b/Carpet/CarpetLib/src/th.cc
@@ -6,7 +6,7 @@
copyright : (C) 2000 by Erik Schnetter
email : schnetter@astro.psu.edu
- $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/th.cc,v 1.3 2001/03/22 18:42:06 eschnett Exp $
+ $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/th.cc,v 1.4 2001/03/27 22:26:31 eschnett Exp $
***************************************************************************/
@@ -81,23 +81,21 @@ void th<D>::recompose () {
// Output
template<int D>
-ostream& operator<< (ostream& os, const th<D>& t) {
+void th<D>::output (ostream& os) const {
os << "th<" << D << ">:"
<< "times={";
- for (int rl=0; rl<t.h.reflevels(); ++rl) {
- for (int ml=0; ml<t.h.mglevels(rl,0); ++ml) {
+ for (int rl=0; rl<h.reflevels(); ++rl) {
+ for (int ml=0; ml<h.mglevels(rl,0); ++ml) {
if (!(rl==0 && ml==0)) os << ",";
os << rl << ":" << ml << ":"
- << t.times[rl][ml] << "(" << t.deltas[rl][ml] << ")";
+ << times[rl][ml] << "(" << deltas[rl][ml] << ")";
}
}
os << "}";
- return os;
}
#if defined(TMPL_EXPLICIT)
template class th<3>;
-template ostream& operator<< (ostream& os, const th<3>& t);
#endif