Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestNewRadX: Sync state after rhs calculation #40

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

global is odd, but I guess in line with what other CarpetX based codes do right now.

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
Loading