Skip to content

Commit

Permalink
Subcycling: use CarpetX par use_subcycling_wip
Browse files Browse the repository at this point in the history
  • Loading branch information
lwJi committed Apr 20, 2024
1 parent 06fb7a5 commit 370a3e2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 23 deletions.
10 changes: 5 additions & 5 deletions ODESolvers/schedule.ccl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Schedule definitions for thorn ODESolvers

if(use_subcycling_wip) {
SCHEDULE ODESolvers_Solve_Subcycling AT evol
{
LANG: C
OPTIONS: level
} "Solve ODEs using Subcycling"
SCHEDULE ODESolvers_Solve_Subcycling AT evol
{
LANG: C
OPTIONS: level
} "Solve ODEs using Subcycling"
}
else {
SCHEDULE ODESolvers_Solve AT evol
Expand Down
4 changes: 4 additions & 0 deletions Subcycling/param.ccl
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
# Parameter definitions for thorn Subcycling

SHARES: CarpetX

USES BOOLEAN use_subcycling_wip
38 changes: 20 additions & 18 deletions Subcycling/schedule.ccl
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
# Schedule definitions for thorn Subcycling

SCHEDULE GROUP Subcycling_RMBndryGroup AT initial
{
} "Check if the ghost points are at refinement boundary"
if(use_subcycling_wip) {
SCHEDULE GROUP Subcycling_RMBndryGroup AT initial
{
} "Check if the ghost points are at refinement boundary"

SCHEDULE GROUP Subcycling_RMBndryGroup AT postregrid
{
} "Check if the ghost points are at refinement boundary"
SCHEDULE GROUP Subcycling_RMBndryGroup AT postregrid
{
} "Check if the ghost points are at refinement boundary"

SCHEDULE Subcycling_SetLevelNeighbor IN Subcycling_RMBndryGroup
{
LANG: C
WRITES: level_neighbor(interior)
SYNC: level_neighbor
} "Set level_neighbor"
SCHEDULE Subcycling_SetLevelNeighbor IN Subcycling_RMBndryGroup
{
LANG: C
WRITES: level_neighbor(interior)
SYNC: level_neighbor
} "Set level_neighbor"

SCHEDULE Subcycling_SetIsRMBndry IN Subcycling_RMBndryGroup AFTER Subcycling_SetLevelNeighbor
{
LANG: C
READS: level_neighbor(everywhere)
WRITES: isrmbndry(everywhere)
} "Set isrmbndry"
SCHEDULE Subcycling_SetIsRMBndry IN Subcycling_RMBndryGroup AFTER Subcycling_SetLevelNeighbor
{
LANG: C
READS: level_neighbor(everywhere)
WRITES: isrmbndry(everywhere)
} "Set isrmbndry"
}

0 comments on commit 370a3e2

Please sign in to comment.