aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOASCII
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-09-12 19:33:55 -0400
committerErik Schnetter <schnetter@cct.lsu.edu>2008-09-26 18:01:44 -0500
commitf89d8cc577d757c3cb2e653554cae624fe2ce6ab (patch)
tree8b82415705fb7172f2a4fb023a67e91a40533a4d /Carpet/CarpetIOASCII
parenta449fced536ba80bafb127e6139bbf9dd939e5d2 (diff)
CarpetIOASCII: Small cleanup
Diffstat (limited to 'Carpet/CarpetIOASCII')
-rw-r--r--Carpet/CarpetIOASCII/src/ioascii.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc
index e003cec9a..88f84b28b 100644
--- a/Carpet/CarpetIOASCII/src/ioascii.cc
+++ b/Carpet/CarpetIOASCII/src/ioascii.cc
@@ -825,6 +825,8 @@ namespace CarpetIOASCII {
b2vect const & obnds =
vhh.at(m)->outer_boundaries(reflevel,c);
+ i2vect const & ghost_width =
+ arrdata.at(group).at(m).dd->ghost_width;
for (int d=0; d<groupdata.dim; ++d) {
bool const output_lower_ghosts =
obnds[0][d]
@@ -839,8 +841,6 @@ namespace CarpetIOASCII {
: out3D_outer_ghosts)
: out3D_ghosts;
- i2vect const & ghost_width =
- arrdata.at(group).at(m).dd->ghost_width;
if (not output_lower_ghosts) {
lo[d] += ghost_width[0][d] * str[d];
}