aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib
diff options
context:
space:
mode:
authoreschnett <>2001-03-29 22:50:00 +0000
committereschnett <>2001-03-29 22:50:00 +0000
commit5fb08f0585039f09662c0823ebbf649e75329072 (patch)
treef0d732ae4b5a11c173e4b4b62902c5649af9c8a8 /Carpet/CarpetLib
parent0c53044da92247f2b5b40413df1e96334b189774 (diff)
Changed ofstream to ostream.
darcs-hash:20010329225020-f6438-288c9cfa79334ab72eb8d034f9d2840f5eb99810.gz
Diffstat (limited to 'Carpet/CarpetLib')
-rw-r--r--Carpet/CarpetLib/src/data.cc7
-rw-r--r--Carpet/CarpetLib/src/data.hh5
-rw-r--r--Carpet/CarpetLib/src/gdata.hh4
3 files changed, 9 insertions, 7 deletions
diff --git a/Carpet/CarpetLib/src/data.cc b/Carpet/CarpetLib/src/data.cc
index 0b3899281..bbc925d91 100644
--- a/Carpet/CarpetLib/src/data.cc
+++ b/Carpet/CarpetLib/src/data.cc
@@ -5,7 +5,7 @@
copyright : (C) 2000 by Erik Schnetter
email : schnetter@astro.psu.edu
- $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/data.cc,v 1.10 2001/03/27 22:26:31 eschnett Exp $
+ $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/data.cc,v 1.11 2001/03/30 00:50:20 eschnett Exp $
***************************************************************************/
@@ -21,6 +21,7 @@
#include <assert.h>
#include <fstream>
+#include <iostream>
#include <string>
#include <mpi.h>
@@ -563,10 +564,10 @@ void data<CCTK_REAL8,3>
// Output
template<class T, int D>
-void data<T,D>::write_ascii_output_element (ofstream& file, const ivect& index)
+void data<T,D>::write_ascii_output_element (ostream& os, const ivect& index)
const
{
- file << (*this)[index];
+ os << (*this)[index];
}
diff --git a/Carpet/CarpetLib/src/data.hh b/Carpet/CarpetLib/src/data.hh
index 357ecef68..8d49998a7 100644
--- a/Carpet/CarpetLib/src/data.hh
+++ b/Carpet/CarpetLib/src/data.hh
@@ -5,7 +5,7 @@
copyright : (C) 2000 by Erik Schnetter
email : schnetter@astro.psu.edu
- $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/data.hh,v 1.6 2001/03/27 22:26:31 eschnett Exp $
+ $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/data.hh,v 1.7 2001/03/30 00:50:21 eschnett Exp $
***************************************************************************/
@@ -23,6 +23,7 @@
#include <assert.h>
+#include <iostream>
#include <string>
#include "defs.hh"
@@ -97,7 +98,7 @@ public:
const ibbox& box, const int tl,
const int order_space);
- void write_ascii_output_element (ofstream& file, const ivect& index) const;
+ void write_ascii_output_element (ostream& os, const ivect& index) const;
// void write_ieee (const string name, const int time,
// const int tl, const int rl, const int c, const int ml)
// const;
diff --git a/Carpet/CarpetLib/src/gdata.hh b/Carpet/CarpetLib/src/gdata.hh
index 185598219..e359e8286 100644
--- a/Carpet/CarpetLib/src/gdata.hh
+++ b/Carpet/CarpetLib/src/gdata.hh
@@ -5,7 +5,7 @@
copyright : (C) 2000 by Erik Schnetter
email : schnetter@astro.psu.edu
- $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/gdata.hh,v 1.7 2001/03/27 22:26:31 eschnett Exp $
+ $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/gdata.hh,v 1.8 2001/03/30 00:50:21 eschnett Exp $
***************************************************************************/
@@ -158,7 +158,7 @@ public:
const int c, const int ml)
const;
protected:
- virtual void write_ascii_output_element (ofstream& file, const ivect& index)
+ virtual void write_ascii_output_element (ostream& os, const ivect& index)
const = 0;
public:
// void write_ieee (const string name, const int time,