Skip to content

Commit f0f5c09

Browse files
committed
remove some static asserts
1 parent 8bde656 commit f0f5c09

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

Src/Extern/HYPRE/AMReX_Hypre.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ Hypre::Hypre (const BoxArray& grids, const DistributionMapping& dmap,
2929
: comm(comm_),
3030
geom(geom_)
3131
{
32-
static_assert(AMREX_SPACEDIM > 1, "Hypre: 1D not supported");
33-
3432
// This is not static_assert because HypreSolver class does not require this.
3533
if (!std::is_same_v<Real, HYPRE_Real>) {
3634
amrex::Abort("amrex::Real != HYPRE_Real");

Src/Extern/HYPRE/AMReX_HypreNodeLap.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ HypreNodeLap::HypreNodeLap (const BoxArray& grids_, const DistributionMapping& d
1919
comm(comm_), linop(linop_), verbose(verbose_),
2020
options_namespace(std::move(options_namespace_))
2121
{
22-
static_assert(AMREX_SPACEDIM > 1, "HypreNodeLap: 1D not supported");
2322
static_assert(std::is_same_v<Real, HYPRE_Real>, "amrex::Real != HYPRE_Real");
2423

2524
int num_procs, myid;

Src/Extern/PETSc/AMReX_PETSc.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ PETScABecLap::PETScABecLap (const BoxArray& grids, const DistributionMapping& dm
6363
: comm(comm_),
6464
geom(geom_)
6565
{
66-
static_assert(AMREX_SPACEDIM > 1, "PETScABecLap: 1D not supported");
6766
static_assert(std::is_same_v<Real, PetscScalar>, "amrex::Real != PetscScalar");
6867

6968
const int ncomp = 1;

0 commit comments

Comments
 (0)