From 5731a8fdd2380eaa02a6ed781851cd85c08236d9 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Sun, 17 Dec 2023 14:19:42 -0500 Subject: [PATCH] remove elixirs in Source/driver/ (#2677) --- Source/driver/Castro_advance_sdc.cpp | 9 +++------ Source/driver/Derive.cpp | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Source/driver/Castro_advance_sdc.cpp b/Source/driver/Castro_advance_sdc.cpp index e6bec0804c..2d0463aa1f 100644 --- a/Source/driver/Castro_advance_sdc.cpp +++ b/Source/driver/Castro_advance_sdc.cpp @@ -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); @@ -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 Sburn_arr = Sburn.array(mfi); @@ -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); diff --git a/Source/driver/Derive.cpp b/Source/driver/Derive.cpp index 6a6f6207ad..3064fc3dd2 100644 --- a/Source/driver/Derive.cpp +++ b/Source/driver/Derive.cpp @@ -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 const coeff_arr = coeff_cc.array(); auto const dat = datfab.array();