aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Requirements
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-04-03 15:41:09 -0400
committerErik Schnetter <schnetter@gmail.com>2013-04-03 16:00:45 -0400
commita52dee1fa739bb171144bec328e9db19093b8d00 (patch)
tree0e5f5fa9ed0189d4e87dcd0e17355578720043ab /Carpet/Requirements
parent79e4253a27fd1016a2644b42d1db4b7c5f40690a (diff)
Requirements: Add todo-note to invalidate non-written regions in partial projections
In projections (i.e. functions that read and write the same timelevel of the same variable), we should invalidate those regions that are read but are not written (if any).
Diffstat (limited to 'Carpet/Requirements')
-rw-r--r--Carpet/Requirements/src/Requirements.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/Carpet/Requirements/src/Requirements.cc b/Carpet/Requirements/src/Requirements.cc
index 03f95aede..bf0793f2e 100644
--- a/Carpet/Requirements/src/Requirements.cc
+++ b/Carpet/Requirements/src/Requirements.cc
@@ -901,6 +901,9 @@ namespace Requirements {
for (int tl=mintl; tl<=maxtl; ++tl) {
if (timelevel==-1 or clause.active_on_timelevel(tl-tl_of)) {
gridpoint_t& gp = tls.AT(tl);
+ // TODO: If this variable is both read and written
+ // (i.e. if this is a projection), then only the
+ // written region remains valid
gp.update_state(clause);
}
}