Skip to content

Commit

Permalink
delete constgrav abort for spherical geom
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichen3 committed Oct 7, 2024
1 parent 80ea251 commit cdaeb3a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Source/gravity/Gravity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,6 @@ Gravity::read_params ()
amrex::Abort("Options are ConstantGrav, PoissonGrav, or MonopoleGrav");
}

if ( gravity::gravity_type == "ConstantGrav")
{
if ( dgeom.IsSPHERICAL() ) {
amrex::Abort("Can't use constant direction gravity with non-Cartesian coordinates");
}
}

#if (AMREX_SPACEDIM == 1)
if (gravity::gravity_type == "PoissonGrav")
{
Expand Down

0 comments on commit cdaeb3a

Please sign in to comment.