Skip to content

Commit

Permalink
StaggeredWaveToyX: Apply boundary conditions explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett authored and rhaas80 committed Aug 1, 2024
1 parent f52c6d6 commit 78177a8
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 8 deletions.
1 change: 1 addition & 0 deletions StaggeredWaveToyX/par/standing.par
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ $out_every = 16
Cactus::cctk_show_schedule = no
Cactus::presync_mode = "mixed-error"

CarpetX::verbose = no
CarpetX::poison_undefined_values = no

CarpetX::periodic_x = yes
Expand Down
22 changes: 14 additions & 8 deletions StaggeredWaveToyX/schedule.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ SCHEDULE StaggeredWaveToyX_Initial AT initial
WRITES: fxstate(interior)
WRITES: fystate(interior)
WRITES: fzstate(interior)
SYNC: ustate
SYNC: fxstate
SYNC: fystate
SYNC: fzstate
# SYNC: ustate
# SYNC: fxstate
# SYNC: fystate
# SYNC: fzstate
} "Initialize scalar wave state"

SCHEDULE StaggeredWaveToyX_RHS IN ODESolvers_RHS
Expand All @@ -26,12 +26,18 @@ SCHEDULE StaggeredWaveToyX_RHS IN ODESolvers_RHS
WRITES: fxrhs(interior)
WRITES: fyrhs(interior)
WRITES: fzrhs(interior)
SYNC: urhs
SYNC: fxrhs
SYNC: fyrhs
SYNC: fzrhs
} "Calculate scalar wave RHS"

SCHEDULE StaggeredWaveToyX_Boundaries IN ODESolvers_PostStep
{
LANG: C
OPTIONS: level
SYNC: ustate
SYNC: fxstate
SYNC: fystate
SYNC: fzstate
} "Apply boundary conditions to scalar wave state"

SCHEDULE StaggeredWaveToyX_Constraints IN ODESolvers_PostStep
{
LANG: C
Expand Down
6 changes: 6 additions & 0 deletions StaggeredWaveToyX/src/staggeredwavetoyx.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ extern "C" void StaggeredWaveToyX_RHS(CCTK_ARGUMENTS) {
});
}

extern "C" void StaggeredWaveToyX_Boundaries(CCTK_ARGUMENTS) {
DECLARE_CCTK_ARGUMENTSX_StaggeredWaveToyX_Boundaries;

// Do nothing
}

extern "C" void StaggeredWaveToyX_Constraints(CCTK_ARGUMENTS) {
DECLARE_CCTK_ARGUMENTSX_StaggeredWaveToyX_Constraints;

Expand Down
1 change: 1 addition & 0 deletions StaggeredWaveToyX/test/standing.par
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ $out_every = 16
Cactus::cctk_show_schedule = no
Cactus::presync_mode = "mixed-error"

CarpetX::verbose = no
CarpetX::poison_undefined_values = yes

CarpetX::ncells_x = 8
Expand Down

0 comments on commit 78177a8

Please sign in to comment.