Skip to content

Commit

Permalink
TOVSolverX: Remove dependency on Avec. Avec should be initialized by …
Browse files Browse the repository at this point in the history
…a separate thorn
  • Loading branch information
jaykalinani committed Feb 20, 2024
1 parent 00d36f2 commit 4fe276b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions TOVSolverX/schedule.ccl
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ schedule TOVX_C_Exact IN HydroBaseX_InitialData
WRITES: HydroBaseX::vel(interior)
WRITES: HydroBaseX::eps(interior)
WRITES: HydroBaseX::press(interior)
WRITES: AsterX::Avec_x(interior) AsterX::Avec_y(interior) AsterX::Avec_z(interior)

WRITES: metric_cell(interior)
WRITES: lapse_cell(interior)
Expand All @@ -95,7 +94,6 @@ schedule TOVX_C_Exact IN HydroBaseX_InitialData
WRITES: dtshift_cell(interior)

SYNC: HydroBaseX::rho HydroBaseX::vel HydroBaseX::eps HydroBaseX::press
SYNC: AsterX::Avec_x AsterX::Avec_y AsterX::Avec_z
SYNC: metric_cell lapse_cell shift_cell curv_cell
SYNC: dtlapse_cell dtshift_cell
} "Set values for all variables of TOV"
Expand Down
15 changes: 0 additions & 15 deletions TOVSolverX/src/tov.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,6 @@ extern "C" void TOVX_C_Exact(CCTK_ARGUMENTS) {
vely(p.I) = 0.0;
velz(p.I) = 0.0;
});

grid.loop_int<1, 0, 0>(
grid.nghostzones,
[=] CCTK_HOST(const Loop::PointDesc &p)
CCTK_ATTRIBUTE_ALWAYS_INLINE { Avec_x(p.I) = 0.0; });

grid.loop_int<0, 1, 0>(
grid.nghostzones,
[=] CCTK_HOST(const Loop::PointDesc &p)
CCTK_ATTRIBUTE_ALWAYS_INLINE { Avec_y(p.I) = 0.0; });

grid.loop_int<0, 0, 1>(
grid.nghostzones,
[=] CCTK_HOST(const Loop::PointDesc &p)
CCTK_ATTRIBUTE_ALWAYS_INLINE { Avec_z(p.I) = 0.0; });
}

CCTK_INT tov_lapse = CCTK_EQUALS(initial_lapse, "tov");
Expand Down

0 comments on commit 4fe276b

Please sign in to comment.