From 6d10cc457292f39001dfc1d796e820f714cd28ab Mon Sep 17 00:00:00 2001 From: Zhi Date: Thu, 7 Nov 2024 17:02:04 -0500 Subject: [PATCH] more fixes --- Source/rotation/Rotation.cpp | 4 +--- Source/sources/Castro_sponge.cpp | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/Source/rotation/Rotation.cpp b/Source/rotation/Rotation.cpp index 082d7beff8..610b7a0e46 100644 --- a/Source/rotation/Rotation.cpp +++ b/Source/rotation/Rotation.cpp @@ -21,9 +21,7 @@ Castro::fill_rotational_psi(const Box& bx, auto omega = get_omega(); Real denom = omega[0] * omega[0] + omega[1] * omega[1] + omega[2] * omega[2]; - auto problo = geom.ProbLoArray(); - - auto dx = geom.CellSizeArray(); + auto geomdata = geom.data(); amrex::ParallelFor(bx, [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept diff --git a/Source/sources/Castro_sponge.cpp b/Source/sources/Castro_sponge.cpp index ebf0fef625..67be2b39a5 100644 --- a/Source/sources/Castro_sponge.cpp +++ b/Source/sources/Castro_sponge.cpp @@ -79,9 +79,7 @@ Castro::apply_sponge(const Box& bx, alpha = 0.0_rt; } - auto dx = geom.CellSizeArray(); - auto problo = geom.ProbLoArray(); - const auto geomdata = geom.data(); + auto geomdata = geom.data(); amrex::ParallelFor(bx, [=] AMREX_GPU_DEVICE (int i, int j, int k) noexcept