aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetInterp
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2006-08-16 22:04:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2006-08-16 22:04:00 +0000
commit25f5df9ce780987f3f536adb0d9bd915ecaa4e28 (patch)
treeda274bfcbd83d593bbff74d62ea4757cf81b9db1 /Carpet/CarpetInterp
parent1c1c942e0fe8c17971b27aaed1a3b4c7fb202707 (diff)
CarpetInterp: Use .at() instead of [] to index vectors
darcs-hash:20060816220427-dae7b-8429e0410dc74a28cd7c2df53c593b332133278d.gz
Diffstat (limited to 'Carpet/CarpetInterp')
-rw-r--r--Carpet/CarpetInterp/src/interp.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/Carpet/CarpetInterp/src/interp.cc b/Carpet/CarpetInterp/src/interp.cc
index 7a8c3ff46..18277e10b 100644
--- a/Carpet/CarpetInterp/src/interp.cc
+++ b/Carpet/CarpetInterp/src/interp.cc
@@ -320,13 +320,13 @@ namespace CarpetInterp {
}
int const minrl = want_global_mode ? 0 : reflevel;
int const maxrl = want_global_mode ?
- arrdata[coord_group][0].hh->reflevels() : reflevel+1;
+ arrdata.at(coord_group).at(0).hh->reflevels() : reflevel+1;
// Find maximum number of components over all levels and maps
int maxncomps = 0;
for (int rl=minrl; rl<maxrl; ++rl) {
for (int m=0; m<maps; ++m) {
- maxncomps = max(maxncomps, arrdata[coord_group][m].hh->components(rl));
+ maxncomps = max(maxncomps, arrdata.at(coord_group).at(m).hh->components(rl));
}
}
@@ -856,7 +856,7 @@ namespace CarpetInterp {
ipow(mgfact, mglevel);
ivect const ipos = ivect(floor((pos - lower.at(m)) / (delta.at(m) *
rvect(fact)) + (CCTK_REAL) 0.5)) * fact;
- const gh* hh = arrdata[coord_group][m].hh;
+ const gh* hh = arrdata.at(coord_group).at(m).hh;
assert (all (ipos % hh->bases().at(ml).at(rl).stride() == 0));
// TODO: use something faster than a linear search
@@ -881,10 +881,10 @@ namespace CarpetInterp {
}
found:
assert (rl >= minrl and rl < maxrl);
- assert (c >= 0 and c < arrdata[coord_group][m].hh->components(rl));
+ assert (c >= 0 and c < arrdata.at(coord_group).at(m).hh->components(rl));
if (map_onto_processors) {
- procs[n] = arrdata[coord_group][m].hh->proc(rl, c);
+ procs[n] = arrdata.at(coord_group).at(m).hh->proc(rl, c);
++ N_points_to[procs[n]];
}
rlev[n] = rl;