diff options
author | schnetter <> | 2004-03-23 18:30:00 +0000 |
---|---|---|
committer | schnetter <> | 2004-03-23 18:30:00 +0000 |
commit | 76f6b9ff9d93cdb4cedbf7605e4414698df2b77a (patch) | |
tree | 3418b9dd7bde764236173fa44a537cdce5711a30 /Carpet/CarpetIOASCII/src | |
parent | 1d1dec2441eb0da747cb5170e0402d269f870f94 (diff) |
Use vector::at() instead of vector::operator[] to access vector elements.
darcs-hash:20040323183014-07bb3-4562b1a7b1dda25fbcccc7689c19bbd432b8a1ff.gz
Diffstat (limited to 'Carpet/CarpetIOASCII/src')
-rw-r--r-- | Carpet/CarpetIOASCII/src/ioascii.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc index 61d26cb08..a65f64cb0 100644 --- a/Carpet/CarpetIOASCII/src/ioascii.cc +++ b/Carpet/CarpetIOASCII/src/ioascii.cc @@ -31,7 +31,7 @@ #include "ioascii.hh" extern "C" { - static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOASCII/src/ioascii.cc,v 1.65 2004/03/23 16:13:03 schnetter Exp $"; + static const char* rcsid = "$Header: /home/eschnett/C/carpet/Carpet/Carpet/CarpetIOASCII/src/ioascii.cc,v 1.66 2004/03/23 19:30:14 schnetter Exp $"; CCTK_FILEVERSION(Carpet_CarpetIOASCII_ioascii_cc); } @@ -491,8 +491,8 @@ namespace CarpetIOASCII { const ggf<dim>* ff = 0; - assert (var < (int)arrdata[group][Carpet::map].data.size()); - ff = (ggf<dim>*)arrdata[group][Carpet::map].data[var]; + assert (var < (int)arrdata.at(group).at(Carpet::map).data.size()); + ff = (ggf<dim>*)arrdata.at(group).at(Carpet::map).data.at(var); const int mintl = output_all_timelevels ? 1-num_tl : 0; const int maxtl = 0; @@ -936,7 +936,7 @@ namespace CarpetIOASCII { void SetFlag (int index, const char* optstring, void* arg) { vector<bool>& flags = *(vector<bool>*)arg; - flags[index] = true; + flags.at(index) = true; } |