aboutsummaryrefslogtreecommitdiff
path: root/Carpet/Carpet/src/Cycle.cc
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2012-02-13 11:25:13 +0100
committerBarry Wardell <barry.wardell@gmail.com>2012-09-11 18:23:02 +0100
commita074a45a0745fd96b5caaa9ffe0f5cc37e850a54 (patch)
tree2449e61775b0b0d05c9dc521eb892eafd74030dc /Carpet/Carpet/src/Cycle.cc
parentefbe6b2d280373da6be7959aea7fc9adb6b8f7d7 (diff)
Inform the Accelerator thorn that past timelevels have been filled on the host
Diffstat (limited to 'Carpet/Carpet/src/Cycle.cc')
-rw-r--r--Carpet/Carpet/src/Cycle.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/Carpet/Carpet/src/Cycle.cc b/Carpet/Carpet/src/Cycle.cc
index bd0acac0a..64b7ff25b 100644
--- a/Carpet/Carpet/src/Cycle.cc
+++ b/Carpet/Carpet/src/Cycle.cc
@@ -238,6 +238,13 @@ namespace Carpet {
assert (reflevel>=0 and reflevel<reflevels);
for (int m=0; m<(int)arrdata.AT(group).size(); ++m) {
for (int var=0; var<CCTK_NumVarsInGroupI(group); ++var) {
+
+ if (CCTK_IsFunctionAliased("Accelerator_NotifyVariableWritten")) {
+ for (int tl = 1; tl < arrdata.AT(group).AT(m).data.AT(var)->timelevels(mglevel,reflevel); tl++) {
+ Accelerator_NotifyVariableWritten(cctkGH, CCTK_FirstVarIndexI(group)+var, tl, 1 /* on host */);
+ }
+ }
+
arrdata.AT(group).AT(m).data.AT(var)->
fill_all (reflevel, mglevel);
}