Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove Elixir in Castro.cpp #2674

Merged
merged 1 commit into from
Dec 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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