aboutsummaryrefslogtreecommitdiff
path: root/Carpet
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2006-12-06 16:45:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2006-12-06 16:45:00 +0000
commitdc511444696aaa7b37f03162bba4f9745eab2702 (patch)
treea625a9ac8492cd2517fa88c593c95098135e9a34 /Carpet
parent52edffff86d6e1212fa40a094fb74bf9e3193fa0 (diff)
CarpetIOASCII: Small code cleanup
Declare variable const. Change whitespace. darcs-hash:20061206164510-dae7b-c5264cc62ec9f782d57451f012c77c95a6c5f57e.gz
Diffstat (limited to 'Carpet')
-rw-r--r--Carpet/CarpetIOASCII/src/ioascii.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc
index ca2435437..9c6020859 100644
--- a/Carpet/CarpetIOASCII/src/ioascii.cc
+++ b/Carpet/CarpetIOASCII/src/ioascii.cc
@@ -1347,7 +1347,7 @@ namespace CarpetIOASCII {
i<=minval(base.upper()); i+=base.stride()[0])
{
- ivect pos = ivect(i,i,i);
+ ivect const pos = ivect(i,i,i);
// check if the point in question is in our gf's extent
if(gfext.contains(pos)) {
@@ -1398,7 +1398,7 @@ namespace CarpetIOASCII {
} // if(dist::...)
} else {
// copy to processor 0 and output there
-
+
vector<const gdata*> tmps (gfdatas.size());
for (size_t n=0; n<gfdatas.size(); ++n) {
gdata * const tmp = gfdatas.at(n)->make_typed(vi);
@@ -1413,14 +1413,12 @@ namespace CarpetIOASCII {
for (size_t n=0; n<gfdatas.size(); ++n) {
delete tmps.at(n);
}
-
+
}
}
-
-
-
-
-
+
+
+
// Explicit instantiation for all output dimensions
template class IOASCII<0>;
template class IOASCII<1>;