Skip to content

Commit

Permalink
ODESolvers: add group SyncKs for subcycling
Browse files Browse the repository at this point in the history
  • Loading branch information
lwJi committed May 13, 2024
1 parent 7f93067 commit 48d2c4c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ODESolvers/schedule.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ if(use_subcycling_wip) {
OPTIONS: global
} "Setup Var Groups for Subcycling"

SCHEDULE GROUP ODESolvers_SyncKs
{
} "Group of Sync Ks at RM Boundary"
SCHEDULE GROUP ODESolvers_CalcYfFromKcs1
{
} "Group of Calc Yfs from Kcs at RM Boundary for RK1"
Expand Down
1 change: 1 addition & 0 deletions ODESolvers/src/odesolvers_solve_subcycling.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ extern "C" void ODESolvers_Solve_Subcycling(CCTK_ARGUMENTS) {
*const_cast<CCTK_REAL *>(&cctkGH->cctk_time) = old_time;

// Sync OldState:
CallScheduleGroup(cctkGH, "ODESolvers_SyncKs");

// Step 1:
if (verbose)
Expand Down
2 changes: 1 addition & 1 deletion TestSubcyclingMC2/schedule.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ SCHEDULE TestSubcyclingMC2_SyncState IN ODESolvers_PostStep
SYNC: state
} "Sync old and ks"

SCHEDULE TestSubcyclingMC2_SyncKs IN ODESolvers_CalcYfFromKcs1 BEFORE ODESolvers_Solve_CalcYfFromKcs1
SCHEDULE TestSubcyclingMC2_SyncKs IN ODESolvers_SyncKs
{
LANG: C
SYNC: old k1 k2 k3 k4
Expand Down

0 comments on commit 48d2c4c

Please sign in to comment.