Skip to content

Commit

Permalink
Removing asserts now that AMReX has been updated. (#5476)
Browse files Browse the repository at this point in the history
AMReX-Codes/amrex#4226 fixes the issue that the
asserts protected against. They have been removed.

This should close out #5444

Signed-off-by: S. Eric Clark <[email protected]>
  • Loading branch information
clarkse authored Dec 10, 2024
1 parent 3f3c91d commit 9fdee34
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,6 @@ WarpX::ComputeMagnetostaticField()
WARPX_ALWAYS_ASSERT_WITH_MESSAGE(this->max_level == 0,
"Magnetostatic solver not implemented with mesh refinement.");

#if defined(AMREX_USE_EB)
WARPX_ALWAYS_ASSERT_WITH_MESSAGE(EB::enabled(),
"Magnetostatic Solver currently requires an embedded boundary to be installed for "
"compatibility with AMReX when compiling with EB support. "
"Current workaround is to install an EB outside of domain or recompile with EB support off."
"Workaround for https://github.com/AMReX-Codes/amrex/issues/4223");
#endif

AddMagnetostaticFieldLabFrame();
}

Expand Down
5 changes: 0 additions & 5 deletions Source/ablastr/fields/VectorPoissonSolver.H
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,6 @@ computeVectorPotential ( amrex::Vector<amrex::Array<amrex::MultiFab*, 3> > co
rel_ref_ratio = amrex::Vector<amrex::IntVect>{{amrex::IntVect(AMREX_D_DECL(1, 1, 1))}};
}

#if !defined(AMREX_USE_EB)
ABLASTR_ALWAYS_ASSERT_WITH_MESSAGE(!eb_enabled,
"Embedded boundary solve requested but not compiled in");
#endif

auto const finest_level = static_cast<int>(curr.size()) - 1;

// scale J appropriately; also determine if current is zero everywhere
Expand Down

0 comments on commit 9fdee34

Please sign in to comment.