From 8746a54fbc1f7cd19180e32ff03d6ca4a46cab82 Mon Sep 17 00:00:00 2001 From: Liwei Ji Date: Tue, 6 Aug 2024 10:58:34 -0400 Subject: [PATCH] TestNewRadX: Sync state after rhs calculation --- TestNewRadX/schedule.ccl | 7 +++++++ TestNewRadX/src/test_newradx.cxx | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/TestNewRadX/schedule.ccl b/TestNewRadX/schedule.ccl index 86e3ec07..ab305b28 100644 --- a/TestNewRadX/schedule.ccl +++ b/TestNewRadX/schedule.ccl @@ -31,6 +31,13 @@ SCHEDULE TestNewRadX_RHS IN ODESolvers_RHS SYNC: rhs } "Calculate scalar wave RHS" +SCHEDULE TestNewRadX_Sync IN ODESolvers_PostStep +{ + LANG: C + OPTIONS: global + SYNC: state +} "Synchronize" + SCHEDULE TestNewRadX_CompareSolution IN ODESolvers_PostStep { LANG: C diff --git a/TestNewRadX/src/test_newradx.cxx b/TestNewRadX/src/test_newradx.cxx index f87e0e43..05d70c71 100644 --- a/TestNewRadX/src/test_newradx.cxx +++ b/TestNewRadX/src/test_newradx.cxx @@ -129,6 +129,10 @@ extern "C" void TestNewRadX_RHS(CCTK_ARGUMENTS) { } } +extern "C" void TestNewRadX_Sync(CCTK_ARGUMENTS) { + // do nothing +} + extern "C" void TestNewRadX_CompareSolution(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTSX_TestNewRadX_CompareSolution; DECLARE_CCTK_PARAMETERS;