aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetIOHDF5/src/Output.cc
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2007-04-19 02:11:00 +0000
committerErik Schnetter <schnetter@cct.lsu.edu>2007-04-19 02:11:00 +0000
commitb3059e308bf224f92f610500d1b88890d999ce5f (patch)
treee4ed646e562fd965376339a5aeed5e0f558bc0e4 /Carpet/CarpetIOHDF5/src/Output.cc
parentb4e10cb37c6cdfd08f035e33d235a9905b8c8f3a (diff)
CarpetIOHDF5: Checkpoint and restore each level's current time
darcs-hash:20070419021113-dae7b-baa8e7a012bddab40246f9485d5b3987fd7dc587.gz
Diffstat (limited to 'Carpet/CarpetIOHDF5/src/Output.cc')
-rw-r--r--Carpet/CarpetIOHDF5/src/Output.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/Carpet/CarpetIOHDF5/src/Output.cc b/Carpet/CarpetIOHDF5/src/Output.cc
index 77c349d82..36932ff87 100644
--- a/Carpet/CarpetIOHDF5/src/Output.cc
+++ b/Carpet/CarpetIOHDF5/src/Output.cc
@@ -169,7 +169,8 @@ int WriteVarUnchunked (const cGH* const cctkGH,
const gdata* const data = (*ff) (request->timelevel,
refinementlevel,
component, mglevel);
- gdata* const processor_component = data->make_typed (request->vindex);
+ gdata* const processor_component =
+ data->make_typed (request->vindex, error_centered, op_sync);
processor_component->allocate (overlap, 0);
for (comm_state state; not state.done(); state.step()) {
@@ -657,8 +658,12 @@ static int AddAttributes (const cGH *const cctkGH, const char *fullname,
if (coord_system_handle >= 0 and
Util_TableGetIntArray (coord_system_handle, vdim,
coord_handles, "COORDINATES") >= 0) {
+#if 0 // dh::dbases
const ibbox& baseext =
vdd.at(Carpet::map)->bases.at(mglevel).at(reflevel).exterior;
+#endif
+ const ibbox& baseext =
+ vhh.at(Carpet::map)->baseextents.at(mglevel).at(reflevel);
const ivect pos = (bbox.lower() - baseext.lower()) / bbox.stride();