From c3b4087ea3506ac30843fb8f386f4686b2f15187 Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Mon, 11 Dec 2023 18:03:59 -0500 Subject: [PATCH] fix radiation --- Source/hydro/Castro_ctu_hydro.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Source/hydro/Castro_ctu_hydro.cpp b/Source/hydro/Castro_ctu_hydro.cpp index b81b6474b2..a9ec18f5d7 100644 --- a/Source/hydro/Castro_ctu_hydro.cpp +++ b/Source/hydro/Castro_ctu_hydro.cpp @@ -168,7 +168,10 @@ Castro::construct_ctu_hydro_source(Real time, Real dt) } #ifdef RADIATION - FArrayBox rad_flux(The_Async_Arena())[AMREX_SPACEDIM]; + Vector rad_flux; + for (int n = 0; n < AMREX_SPACEDIM; ++n) { + radflux.push_back(FArrayBox(The_Async_Arena())); + } #endif #if AMREX_SPACEDIM <= 2 FArrayBox pradial(The_Async_Arena());