Skip to content

Commit

Permalink
TestNewRadX: Sync state after rhs calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
lwJi committed Aug 3, 2024
1 parent cb98de6 commit 1e7ec2f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion TestNewRadX/schedule.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ SCHEDULE TestNewRadX_RHS IN ODESolvers_RHS
LANG: C
READS: state(everywhere)
WRITES: rhs(interior)
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
Expand Down
4 changes: 4 additions & 0 deletions TestNewRadX/src/test_newradx.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ extern "C" void TestNewRadX_Init(CCTK_ARGUMENTS) {
});
}

extern "C" void TestNewRadX_Sync(CCTK_ARGUMENTS) {
// do nothing
}

extern "C" void TestNewRadX_RHS(CCTK_ARGUMENTS) {
DECLARE_CCTK_ARGUMENTSX_TestNewRadX_RHS;
DECLARE_CCTK_PARAMETERS;
Expand Down

0 comments on commit 1e7ec2f

Please sign in to comment.