Skip to content

Commit

Permalink
Spectral Solver: Fix Allocation of rho_fp and rho_cp (#1779)
Browse files Browse the repository at this point in the history
  • Loading branch information
EZoni authored Mar 11, 2021
1 parent b160cdd commit 9b15267
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Source/WarpX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1234,8 +1234,6 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm
AMREX_ALWAYS_ASSERT_WITH_MESSAGE( false,
"WarpX::AllocLevelMFs: PSATD solver requires WarpX build with spectral solver support.");
#else
if (!do_dive_cleaning)
rho_fp[lev] = std::make_unique<MultiFab>(amrex::convert(ba,rho_nodal_flag),dm,2*ncomps,ngRho,tag("rho_fp"));

# if (AMREX_SPACEDIM == 3)
RealVect dx_vect(dx[0], dx[1], dx[2]);
Expand Down Expand Up @@ -1385,8 +1383,6 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm
AMREX_ALWAYS_ASSERT_WITH_MESSAGE( false,
"WarpX::AllocLevelMFs: PSATD solver requires WarpX build with spectral solver support.");
#else
if (!do_dive_cleaning)
rho_cp[lev] = std::make_unique<MultiFab>( amrex::convert(cba,rho_nodal_flag),dm,2*ncomps,ngRho,tag("rho_cp") );

# if (AMREX_SPACEDIM == 3)
RealVect cdx_vect(cdx[0], cdx[1], cdx[2]);
Expand Down

0 comments on commit 9b15267

Please sign in to comment.