Skip to content

Commit

Permalink
Fix a memory leak in Open BC solver (#4290)
Browse files Browse the repository at this point in the history
We forgot a test to make sure We only build the plans once.

X-Ref:
- BLAST-ImpactX/impactx#790
- ECP-WarpX/WarpX#5547
  • Loading branch information
WeiqunZhang authored Jan 9, 2025
1 parent 731efdc commit 041f225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/FFT/AMReX_FFT_R2C.H
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ void R2C<T,D,S>::prepare_openbc ()
#if (AMREX_SPACEDIM == 3)
if (m_do_alld_fft) { return; }

if (m_slab_decomp) {
if (m_slab_decomp && ! m_fft_fwd_x_half.defined) {
auto* fab = detail::get_fab(m_rx);
if (fab) {
Box bottom_half = m_real_domain;
Expand Down

0 comments on commit 041f225

Please sign in to comment.