diff options
author | cott <schnetter@cct.lsu.edu> | 2007-07-20 05:30:00 +0000 |
---|---|---|
committer | cott <schnetter@cct.lsu.edu> | 2007-07-20 05:30:00 +0000 |
commit | 3d020241c0954c675ce5d90e04c42647939c36ae (patch) | |
tree | 5be025d3b948a7cdd2315c46a62cc708cbf88d51 /Carpet/Carpet/src/Storage.cc | |
parent | 1ea2bb0e035c99f456b9d3de7fba7a15cc90037a (diff) |
Sync 1-tl and prolongation=none GFs
Fix a little bug that prevented the synchronization of
GFs that have only 1 timelevel or have prolongation
turned off explicitely (tag 'prolongation=none').
darcs-hash:20070720053047-fff0f-d3020389f0fa803eb5abacbc45cd02639a4c6b7c.gz
Diffstat (limited to 'Carpet/Carpet/src/Storage.cc')
-rw-r--r-- | Carpet/Carpet/src/Storage.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Carpet/Carpet/src/Storage.cc b/Carpet/Carpet/src/Storage.cc index 1e3856e0f..1ef8cd5a2 100644 --- a/Carpet/Carpet/src/Storage.cc +++ b/Carpet/Carpet/src/Storage.cc @@ -210,7 +210,9 @@ namespace Carpet { } // for n - return total_num_timelevels; + // return total_num_timelevels; + return do_allow_past_timelevels ? + total_num_timelevels : min(1,total_num_timelevels); } @@ -359,7 +361,8 @@ namespace Carpet { if (gp.grouptype == CCTK_GF) { if (groupdata.at(group).transport_operator != op_none - and groupdata.at(group).transport_operator != op_copy) { + and groupdata.at(group).transport_operator != op_copy + and groupdata.at(group).transport_operator != op_sync) { if (groupdata.at(group).activetimelevels.at(ml).at(rl) != 0 and (groupdata.at(group).activetimelevels.at(ml).at(rl) < prolongation_order_time+1)) |