Skip to content

Commit

Permalink
remove elixirs in Source/driver/
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Dec 11, 2023
1 parent 9cf0cb6 commit 5f5736b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions Source/driver/Castro_advance_sdc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,7 @@ Castro::do_advance_sdc (Real time,
for (MFIter mfi(S_new); mfi.isValid(); ++mfi) {
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();

make_fourth_in_place(bx, old_source.array(mfi), tmp_arr, domain_lo, domain_hi);
Expand Down Expand Up @@ -305,8 +304,7 @@ Castro::do_advance_sdc (Real time,
// pass in the reaction source at centers (Sburn_arr), including
// one ghost cell and derive everything that is needed including
// 1 ghost cell
R_center.resize(obx, R_new.nComp());
Elixir elix_r_center = R_center.elixir();
R_center.resize(obx, R_new.nComp(), The_Async_Arena());
auto const R_center_arr = R_center.array();

Array4<const Real> const Sburn_arr = Sburn.array(mfi);
Expand All @@ -315,8 +313,7 @@ Castro::do_advance_sdc (Real time,
ca_store_reaction_state(obx, Sburn_arr, R_center_arr);

// convert R_new from centers to averages in place
tmp.resize(bx, 1);
Elixir elix_tmp = tmp.elixir();
tmp.resize(bx, 1, The_Async_Arena());
auto const tmp_arr = tmp.array();

make_fourth_in_place(bx, R_center_arr, tmp_arr, domain_lo, domain_hi);
Expand Down
3 changes: 1 addition & 2 deletions Source/driver/Derive.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,7 @@ extern "C"
const Box& obx = amrex::grow(bx, 1);

FArrayBox coeff_cc;
coeff_cc.resize(obx, 1);
Elixir elix_coeff_cc = coeff_cc.elixir();
coeff_cc.resize(obx, 1, The_Async_Arena());
Array4<Real> const coeff_arr = coeff_cc.array();

auto const dat = datfab.array();
Expand Down

0 comments on commit 5f5736b

Please sign in to comment.