Skip to content

Commit

Permalink
remove Elixir in Castro.cpp (#2674)
Browse files Browse the repository at this point in the history
we now use The_Async_Arena()
  • Loading branch information
zingale authored Dec 17, 2023
1 parent 27d602e commit 1613d3d
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Source/driver/Castro.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1260,8 +1260,7 @@ Castro::initData ()
{
const Box& box = mfi.validbox();

tmp.resize(box, 1);
Elixir elix_tmp = tmp.elixir();
tmp.resize(box, 1, The_Async_Arena());
auto tmp_arr = tmp.array();

make_fourth_in_place(box, Sborder.array(mfi), tmp_arr, domain_lo, domain_hi);
Expand All @@ -1287,8 +1286,7 @@ Castro::initData ()
{
const Box& box = mfi.growntilebox(2);

tmp.resize(box, 1);
Elixir elix_tmp = tmp.elixir();
tmp.resize(box, 1, The_Async_Arena());
auto tmp_arr = tmp.array();

make_cell_center_in_place(box, Sborder.array(mfi), tmp_arr, domain_lo, domain_hi);
Expand Down Expand Up @@ -1336,8 +1334,7 @@ Castro::initData ()
{
const Box& box = mfi.validbox();

tmp.resize(box, 1);
Elixir elix_tmp = tmp.elixir();
tmp.resize(box, 1, The_Async_Arena());
auto tmp_arr = tmp.array();

make_fourth_in_place(box, Sborder.array(mfi), tmp_arr, domain_lo, domain_hi);
Expand Down Expand Up @@ -3950,8 +3947,7 @@ Castro::computeTemp(
compute_lap_term(bx0, Stemp.array(mfi), Eint_lap.array(mfi), UEINT,
domain_lo, domain_hi);

tmp.resize(bx, 1);
Elixir elix_tmp = tmp.elixir();
tmp.resize(bx, 1, The_Async_Arena());
auto tmp_arr = tmp.array();

make_cell_center_in_place(bx, Stemp.array(mfi), tmp_arr, domain_lo, domain_hi);
Expand Down Expand Up @@ -4067,8 +4063,7 @@ Castro::computeTemp(

const Box& bx = mfi.tilebox();

tmp.resize(bx, 1);
Elixir elix_tmp = tmp.elixir();
tmp.resize(bx, 1, The_Async_Arena());
auto tmp_arr = tmp.array();

// only temperature
Expand Down

0 comments on commit 1613d3d

Please sign in to comment.