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 c335790 commit 809e2d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions TestNewRadX/schedule.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -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
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 @@ -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;
Expand Down

0 comments on commit 809e2d9

Please sign in to comment.