Skip to content

Commit

Permalink
TestRKAB: remove setting pre at TestRKAB_Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
lwJi committed Sep 20, 2024
1 parent 1e1e7c4 commit 4889615
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions TestRKAB/schedule.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ STORAGE: state pre rhs
SCHEDULE TestRKAB_Initial AT initial
{
LANG: C
WRITES: state(interior) pre(interior)
SYNC: state pre
WRITES: state(interior)
SYNC: state
} "Initialize scalar wave state"

SCHEDULE TestRKAB_Sync AT postregrid
Expand Down
4 changes: 0 additions & 4 deletions TestRKAB/src/testrkab.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ extern "C" void TestRKAB_Initial(CCTK_ARGUMENTS) {
DECLARE_CCTK_ARGUMENTSX_TestRKAB_Initial;
DECLARE_CCTK_PARAMETERS;

const CCTK_REAL dt = cctk_delta_time;

if (CCTK_EQUALS(initial_condition, "standing wave")) {
grid.loop_int_device<0, 0, 0>(
grid.nghostzones,
Expand All @@ -98,8 +96,6 @@ extern "C" void TestRKAB_Initial(CCTK_ARGUMENTS) {
[=] CCTK_DEVICE(const Loop::PointDesc &p) CCTK_ATTRIBUTE_ALWAYS_INLINE {
gaussian(amplitude, gaussian_width, cctk_time, p.x, p.y, p.z, u(p.I),
rho(p.I));
dtgaussian(amplitude, gaussian_width, cctk_time - dt, p.x, p.y, p.z,
u_pre(p.I), rho_pre(p.I));
});

} else {
Expand Down

0 comments on commit 4889615

Please sign in to comment.