diff options
author | schnetter <> | 2002-04-29 09:27:00 +0000 |
---|---|---|
committer | schnetter <> | 2002-04-29 09:27:00 +0000 |
commit | 81d07b077232ed9c89042422c51e6a86b021eeb3 (patch) | |
tree | edea6966aed967334215446022e02c0cfd81e438 /Carpet/CarpetLib/src/defs.cc | |
parent | 49ce06eb2d56067083885e9a61101c1c22b43833 (diff) |
Updated Carpet to the recent changes in Cactus.
Updated Carpet to the recent changes in Cactus.
I/O: Finding out whether this is a restart now requires looking at the
ioGH structure.
Timelevels: Timelevels now have to be allocated explicitely.
Made Carpet compile with the Intel 6.0 C++ compiler.
darcs-hash:20020429092752-07bb3-65b0b317ba98c017e16294d2ff8ac6a8a424a102.gz
Diffstat (limited to 'Carpet/CarpetLib/src/defs.cc')
-rw-r--r-- | Carpet/CarpetLib/src/defs.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Carpet/CarpetLib/src/defs.cc b/Carpet/CarpetLib/src/defs.cc index 5a913beb0..7cf49f92a 100644 --- a/Carpet/CarpetLib/src/defs.cc +++ b/Carpet/CarpetLib/src/defs.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/defs.cc,v 1.9 2002/03/11 13:17:12 schnetter Exp $ + $Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetLib/src/defs.cc,v 1.10 2002/04/29 11:27:59 schnetter Exp $ ***************************************************************************/ @@ -51,8 +51,9 @@ istream& input (istream& is, vector<T>& v) { is.get(); skipws (is); while (is.good() && is.peek() != ']') { - v.push_back (); - is >> v[v.size()-1]; + T elem; + is >> elem; + v.push_back (elem); skipws (is); if (is.peek() != ',') break; is.get(); |