aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-01-20 17:14:25 -0500
committerErik Schnetter <schnetter@gmail.com>2013-01-20 17:14:25 -0500
commit3192a5cc2740e8d801a72d6efd1103c8cca5a1d4 (patch)
tree79c3a866d2cc22dab4639210ff7d39176e7f2144 /Carpet
parentda0df590c04ede3b6e8e43ecee1b2526cc40a1db (diff)
CarpetLib: Rename argument to vect::index from lsh to ash
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/CarpetLib/src/vect.hh10
1 files changed, 5 insertions, 5 deletions
diff --git a/Carpet/CarpetLib/src/vect.hh b/Carpet/CarpetLib/src/vect.hh
index a8b88196d..c5887bfaf 100644
--- a/Carpet/CarpetLib/src/vect.hh
+++ b/Carpet/CarpetLib/src/vect.hh
@@ -510,15 +510,15 @@ inline int minloc1 (const vect<T,D>& a)
/** Return the n-dimensional linear array index. */
template<typename T,int D>
-inline T index (const vect<T,D>& lsh, const vect<T,D>& ind)
+inline T index (const vect<T,D>& ash, const vect<T,D>& ind)
{
T r(0);
for (int d=D-1; d>=0; --d) {
- ASSERT_VECT (lsh[d]>=0);
+ ASSERT_VECT (ash[d]>=0);
// Be generous, and allow relative indices which may be negtive
- // ASSERT_VECT (ind[d]>=0 and ind[d]<lsh[d]);
- ASSERT_VECT (abs(ind[d])<=lsh[d]);
- r = r * lsh[d] + ind[d];
+ // ASSERT_VECT (ind[d]>=0 and ind[d]<ash[d]);
+ ASSERT_VECT (abs(ind[d])<=ash[d]);
+ r = r * ash[d] + ind[d];
}
return r;
}