Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing asserts now that AMReX has been updated. #5476

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading