Skip to content

Commit

Permalink
ADMconstraints: add par sync_adm_variables_before_calculating_constra…
Browse files Browse the repository at this point in the history
…ints
  • Loading branch information
lwJi committed Jan 5, 2025
1 parent 0e27f3a commit 115da35
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
4 changes: 4 additions & 0 deletions ADMconstraints/param.ccl
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Parameter definitions for thorn ADMconstraints

BOOLEAN sync_adm_variables_before_calculating_constraints "Sync ADM varialbes before calculating constraints" STEERABLE=recover
{
} no

BOOLEAN calc_constraints "Calculate constraints" STEERABLE=recover
{
} yes
Expand Down
20 changes: 11 additions & 9 deletions ADMconstraints/schedule.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@ SCHEDULE GROUP ADMconstraints_AnalysisGroup AT analysis


if (calc_constraints) {
SCHEDULE ADMconstraints_Sync IN ADMconstraints_AnalysisGroup
{
LANG: C
OPTIONS: global
SYNC: ADMBaseX::metric
SYNC: ADMBaseX::curv
SYNC: ADMBaseX::lapse
SYNC: ADMBaseX::shift
} "Synchronize"
if (sync_adm_variables_before_calculating_constraints) {
SCHEDULE ADMconstraints_Sync IN ADMconstraints_AnalysisGroup
{
LANG: C
OPTIONS: global
SYNC: ADMBaseX::metric
SYNC: ADMBaseX::curv
SYNC: ADMBaseX::lapse
SYNC: ADMBaseX::shift
} "Synchronize"
}

SCHEDULE ADMconstraints_CalcConstraints IN ADMconstraints_AnalysisGroup AFTER ADMconstraints_Sync
{
Expand Down

0 comments on commit 115da35

Please sign in to comment.