Skip to content

Commit

Permalink
WaveToyX: adapt to CarpetX implementation change
Browse files Browse the repository at this point in the history
required due to CarpetX implemting "Driver"
  • Loading branch information
rhaas80 committed Sep 12, 2024
1 parent 7301e44 commit 7046df3
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 14 deletions.
2 changes: 0 additions & 2 deletions WaveToyX/interface.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

IMPLEMENTS: WaveToyX

INHERITS: CarpetX

USES INCLUDE HEADER: loop_device.hxx
USES INCLUDE HEADER: vect.hxx

Expand Down
7 changes: 4 additions & 3 deletions WaveToyX/par/standing.par
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ Cactus::presync_mode = "mixed-error"

CarpetX::poison_undefined_values = no

CarpetX::periodic_x = yes
CarpetX::periodic_y = yes
CarpetX::periodic_z = yes
Driver::periodic = "yes"
Driver::periodic_x = yes
Driver::periodic_y = yes
Driver::periodic_z = yes

Cactus::terminate = "time"
Cactus::cctk_final_time = 1.0
Expand Down
4 changes: 2 additions & 2 deletions WaveToyX/schedule.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ SCHEDULE WaveToyX_Initial AT initial
# {
# LANG: C
# READS: state(everywhere)
# WRITES: CarpetX::regrid_error(interior)
# WRITES: CarpetXRegrid::regrid_error(interior)
# } "Estimate error for regridding"
#
# SCHEDULE WaveToyX_EstimateError AT poststep
# {
# LANG: C
# READS: state(everywhere)
# WRITES: CarpetX::regrid_error(interior)
# WRITES: CarpetXRegrid::regrid_error(interior)
# } "Estimate error for regridding"

SCHEDULE WaveToyX_RHS IN ODESolvers_RHS
Expand Down
9 changes: 5 additions & 4 deletions WaveToyX/test/presync.par
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ CarpetX::ncells_x = 8
CarpetX::ncells_y = 8
CarpetX::ncells_z = 8

CarpetX::periodic_x = yes
CarpetX::periodic_y = yes
CarpetX::periodic_z = yes
Driver::periodic = "yes"
Driver::periodic_x = yes
Driver::periodic_y = yes
Driver::periodic_z = yes

Cactus::cctk_itlast = 10

Expand All @@ -26,6 +27,7 @@ ODESolvers::method = "RK3"

IO::out_dir = $parfile
IO::out_every = 10
IO::out_fileinfo = "axis labels"
IO::parfile_write = no

CarpetX::out_metadata = no
Expand All @@ -35,7 +37,6 @@ CarpetX::out_norm_omit_sumloc_for_backward_compatibility = yes

CarpetX::out_tsv_vars = "
WaveToyX::state
WaveToyX::rhs
WaveToyX::energy
WaveToyX::error
"
7 changes: 4 additions & 3 deletions WaveToyX/test/standing.par
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ CarpetX::ncells_x = 8
CarpetX::ncells_y = 8
CarpetX::ncells_z = 8

CarpetX::periodic_x = yes
CarpetX::periodic_y = yes
CarpetX::periodic_z = yes
Driver::periodic = "yes"
Driver::periodic_x = yes
Driver::periodic_y = yes
Driver::periodic_z = yes

Cactus::cctk_itlast = 10

Expand Down

0 comments on commit 7046df3

Please sign in to comment.