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-12 19:33:55 -0400
commit4707cdc56d69bb4634a29479c77ce2a03bf154bf (patch)
treef2fa8edf43684d83422f9a18033deaf67beecd26 /Carpet/CarpetIOASCII
parent43303957c62d33bcc513dc7e2a33ccdb3d81dcce (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 2c14f3297..92e66f75a 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];
}