diff --git a/Src/Amr/AMReX_Amr.H b/Src/Amr/AMReX_Amr.H index a7173fd105a..bb18ec9d160 100644 --- a/Src/Amr/AMReX_Amr.H +++ b/Src/Amr/AMReX_Amr.H @@ -30,7 +30,6 @@ class AmrInSituBridge; * not belong on a single level, like establishing and updating the hierarchy * of levels, global timestepping, and managing the different AmrLevels */ - class Amr : public AmrCore { diff --git a/Src/Amr/AMReX_AmrLevel.H b/Src/Amr/AMReX_AmrLevel.H index d4ac6c7c70d..8abb00b5475 100644 --- a/Src/Amr/AMReX_AmrLevel.H +++ b/Src/Amr/AMReX_AmrLevel.H @@ -34,7 +34,6 @@ class TagBoxArray; * AmrLevel functions both as a container for state data on a level * and also manages the advancement of data in time. */ - class AmrLevel { friend class Amr; diff --git a/Src/Amr/AMReX_Derive.H b/Src/Amr/AMReX_Derive.H index e1a7310a7b2..1e0cceb7894 100644 --- a/Src/Amr/AMReX_Derive.H +++ b/Src/Amr/AMReX_Derive.H @@ -100,7 +100,6 @@ class DescriptorList; * from the state data contained in AmrLevel and its derivatives. Some * examples might be kinetic energy, vorticity, concentration gradients ... */ - class DeriveRec { friend class DeriveList; @@ -339,7 +338,6 @@ private: * * DeriveList manages and provides access to the list of DeriveRecs. */ - class DeriveList { public: diff --git a/Src/Amr/AMReX_LevelBld.H b/Src/Amr/AMReX_LevelBld.H index 8b421265bfc..bb79184ca5e 100644 --- a/Src/Amr/AMReX_LevelBld.H +++ b/Src/Amr/AMReX_LevelBld.H @@ -18,7 +18,6 @@ namespace amrex { * Abstract base class specifying an interface for building problem-specific * AmrLevels. */ - class LevelBld { public: diff --git a/Src/Amr/AMReX_StateData.H b/Src/Amr/AMReX_StateData.H index 251e6482a45..e6edb486c41 100644 --- a/Src/Amr/AMReX_StateData.H +++ b/Src/Amr/AMReX_StateData.H @@ -29,7 +29,6 @@ class StateDataPhysBCFunct; * * StateData holds state data on a level for the current and previous time step. */ - class StateData { friend class StateDataPhysBCFunct; diff --git a/Src/Amr/AMReX_StateDescriptor.H b/Src/Amr/AMReX_StateDescriptor.H index 6cd6c92cdd3..2830b955705 100644 --- a/Src/Amr/AMReX_StateDescriptor.H +++ b/Src/Amr/AMReX_StateDescriptor.H @@ -29,7 +29,6 @@ namespace amrex { /** * \brief Attributes of StateData. */ - class StateDescriptor { friend class DescriptorList; @@ -434,7 +433,6 @@ private: * * A container class for StateDescriptors. */ - class DescriptorList { public: diff --git a/Src/AmrCore/AMReX_AmrCore.H b/Src/AmrCore/AMReX_AmrCore.H index 20428b40930..2969b986a75 100644 --- a/Src/AmrCore/AMReX_AmrCore.H +++ b/Src/AmrCore/AMReX_AmrCore.H @@ -20,7 +20,6 @@ class AmrParGDB; * virtual functions to allocate, initialize and delete data. It also * requires the derived class to tag cells for refinement. */ - class AmrCore : public AmrMesh { diff --git a/Src/AmrCore/AMReX_Cluster.H b/Src/AmrCore/AMReX_Cluster.H index 5bbf5c796bc..7d60131e6cf 100644 --- a/Src/AmrCore/AMReX_Cluster.H +++ b/Src/AmrCore/AMReX_Cluster.H @@ -20,7 +20,6 @@ class ClusterList; * * Utility class for tagging error cells. */ - class Cluster { public: @@ -138,7 +137,6 @@ private: * * A container class for Cluster. */ - class ClusterList { public: diff --git a/Src/AmrCore/AMReX_ErrorList.H b/Src/AmrCore/AMReX_ErrorList.H index 9ab1a978966..ab4395d8ce8 100644 --- a/Src/AmrCore/AMReX_ErrorList.H +++ b/Src/AmrCore/AMReX_ErrorList.H @@ -102,7 +102,6 @@ extern "C" * actual error tagging will be through derivation, so provision is made * for this as well. */ - class ErrorRec { public: @@ -348,7 +347,6 @@ private: * * Container class for ErrorRecs. */ - class ErrorList { public: diff --git a/Src/AmrCore/AMReX_FillPatcher.H b/Src/AmrCore/AMReX_FillPatcher.H index d36b3529efd..5ff1c9550d3 100644 --- a/Src/AmrCore/AMReX_FillPatcher.H +++ b/Src/AmrCore/AMReX_FillPatcher.H @@ -68,7 +68,6 @@ namespace amrex { * See AmrLevel::RK for an example of using the RungeKutta functions and * FillPatcher together. */ - template class FillPatcher { diff --git a/Src/AmrCore/AMReX_FluxRegister.H b/Src/AmrCore/AMReX_FluxRegister.H index 4178eb289ba..f5983e18872 100644 --- a/Src/AmrCore/AMReX_FluxRegister.H +++ b/Src/AmrCore/AMReX_FluxRegister.H @@ -14,7 +14,6 @@ namespace amrex { * * Stores and manipulates fluxes at coarse-fine interfaces. */ - class FluxRegister : public BndryRegister diff --git a/Src/AmrCore/AMReX_InterpFaceRegister.H b/Src/AmrCore/AMReX_InterpFaceRegister.H index a63c2c23e4c..c54879bcaf6 100644 --- a/Src/AmrCore/AMReX_InterpFaceRegister.H +++ b/Src/AmrCore/AMReX_InterpFaceRegister.H @@ -12,7 +12,6 @@ namespace amrex { * \brief InterpFaceRegister is a coarse/fine boundary register for * interpolation of face data at the coarse/fine boundary. */ - class InterpFaceRegister { public: diff --git a/Src/AmrCore/AMReX_Interpolater.H b/Src/AmrCore/AMReX_Interpolater.H index d2fe66b0cbd..e1210a83329 100644 --- a/Src/AmrCore/AMReX_Interpolater.H +++ b/Src/AmrCore/AMReX_Interpolater.H @@ -17,7 +17,6 @@ class IArrayBox; * * Specifies interpolater interface for coarse-to-fine interpolation in space. */ - class Interpolater : public InterpBase { @@ -160,7 +159,6 @@ public: * * Bilinear interpolation on node centered data. */ - class NodeBilinear : public Interpolater @@ -219,7 +217,6 @@ public: * * Bilinear interpolation on cell centered data. */ - class CellBilinear : public Interpolater @@ -286,7 +283,6 @@ public: * sum_ivar a(ic,jc,ivar)*fab(if,jf,ivar) = 0 is satisfied * in all fine cells if,jf covering coarse cell ic,jc. */ - class CellConservativeLinear : public Interpolater @@ -344,7 +340,6 @@ protected: * Linear conservative interpolation on cell centered data * but with protection against undershoots or overshoots. */ - class CellConservativeProtected : public CellConservativeLinear @@ -393,7 +388,6 @@ public: * * Quadratic interpolation on cell centered data. */ - class CellQuadratic : public Interpolater @@ -451,7 +445,6 @@ public: /** * \brief Piecewise Constant interpolation on cell centered data. */ - class PCInterp : public Interpolater @@ -512,7 +505,6 @@ public: * in constructing the polynomial, the average of the polynomial inside that * cell is equal to the cell averaged value of the original data. */ - class CellConservativeQuartic : public Interpolater @@ -574,7 +566,6 @@ public: * a given coarse cell will have the same divergence, even when the coarse * grid divergence is spatially varying. */ - class FaceDivFree : public Interpolater @@ -667,7 +658,6 @@ public: * * Bilinear interpolation on data. */ - class FaceLinear : public Interpolater @@ -789,7 +779,6 @@ public: * * Quartic interpolation on cell centered data. */ - class CellQuartic : public Interpolater diff --git a/Src/AmrCore/AMReX_TagBox.H b/Src/AmrCore/AMReX_TagBox.H index 929e181e0e8..3d26f76e9cb 100644 --- a/Src/AmrCore/AMReX_TagBox.H +++ b/Src/AmrCore/AMReX_TagBox.H @@ -20,7 +20,6 @@ namespace amrex { * * This class is used to tag cells in a Box that need addition refinement. */ - class TagBox final : public BaseFab @@ -145,7 +144,6 @@ public: * * A container class for TagBoxes. */ - class TagBoxArray : public FabArray diff --git a/Src/Base/AMReX_Arena.H b/Src/Base/AMReX_Arena.H index d328f693a96..b93c476f86b 100644 --- a/Src/Base/AMReX_Arena.H +++ b/Src/Base/AMReX_Arena.H @@ -82,7 +82,6 @@ struct ArenaInfo * A virtual base class for objects that manage their own dynamic * memory allocation. */ - class Arena { public: diff --git a/Src/Base/AMReX_BArena.H b/Src/Base/AMReX_BArena.H index 9a3b4aa0f1b..d587d100859 100644 --- a/Src/Base/AMReX_BArena.H +++ b/Src/Base/AMReX_BArena.H @@ -11,7 +11,6 @@ namespace amrex { * This is the simplest dynamic memory management class derived from Arena. * Makes calls to std::malloc and std::free. */ - class BArena : public Arena diff --git a/Src/Base/AMReX_BCRec.H b/Src/Base/AMReX_BCRec.H index 268147a3a04..d23da777eda 100644 --- a/Src/Base/AMReX_BCRec.H +++ b/Src/Base/AMReX_BCRec.H @@ -10,10 +10,9 @@ namespace amrex { /** * \brief Boundary Condition Records. * Necessary information and functions for computing boundary conditions. +* +* This class has standard layout. And we should keep it so! */ - -// This class has standard layout. And we should keep it so! - class BCRec { public: diff --git a/Src/Base/AMReX_BaseFab.H b/Src/Base/AMReX_BaseFab.H index e0331e7a0ae..eb8e5c59615 100644 --- a/Src/Base/AMReX_BaseFab.H +++ b/Src/Base/AMReX_BaseFab.H @@ -3528,7 +3528,6 @@ BaseFab::protected_divide (const BaseFab& src, const Box& srcbox, const Bo * and stored in component comp of this FAB. * This fab is returned as a reference for chaining. */ - template template BaseFab& diff --git a/Src/Base/AMReX_BoxDomain.H b/Src/Base/AMReX_BoxDomain.H index a82e5ddc72e..af92d631607 100644 --- a/Src/Base/AMReX_BoxDomain.H +++ b/Src/Base/AMReX_BoxDomain.H @@ -55,14 +55,12 @@ std::ostream& operator<< (std::ostream& os, const BoxDomain& bd); /** * \brief A List of Disjoint Boxes. +* * A BoxDomain is a BoxList with the restriction that Boxes in the list * are disjoint. +* Note that a BoxDomain is NOT a BoxList due to the protected inheritance. +* This is a concrete class, not a polymorphic one. */ - -//Note that a BoxDomain is NOT a BoxList due to the protected inheritance. -//This is a concrete class, not a polymorphic one. - - class BoxDomain : protected BoxList diff --git a/Src/Base/AMReX_BoxList.H b/Src/Base/AMReX_BoxList.H index c0ff30025ff..cab414d36c8 100644 --- a/Src/Base/AMReX_BoxList.H +++ b/Src/Base/AMReX_BoxList.H @@ -48,7 +48,6 @@ namespace amrex * IndexType. This class implements operations for sets of Boxes. * This is a concrete class, not a polymorphic one. */ - class BoxList { public: diff --git a/Src/Base/AMReX_CArena.H b/Src/Base/AMReX_CArena.H index 163039df2ef..9547bc92f21 100644 --- a/Src/Base/AMReX_CArena.H +++ b/Src/Base/AMReX_CArena.H @@ -24,7 +24,6 @@ struct MemStat; * chunks of heap space and apportions it out as requested. It merges * together neighboring chunks on each free(). */ - class CArena : public Arena diff --git a/Src/Base/AMReX_CoordSys.H b/Src/Base/AMReX_CoordSys.H index ab946ffa3d0..24096c6f428 100644 --- a/Src/Base/AMReX_CoordSys.H +++ b/Src/Base/AMReX_CoordSys.H @@ -20,7 +20,6 @@ class FArrayBox; * * Routines for mapping between physical coordinate system and index space. */ - class CoordSys { public: diff --git a/Src/Base/AMReX_DistributionMapping.H b/Src/Base/AMReX_DistributionMapping.H index 0707532a0fc..e9aa82f16a2 100644 --- a/Src/Base/AMReX_DistributionMapping.H +++ b/Src/Base/AMReX_DistributionMapping.H @@ -37,7 +37,6 @@ class FabArrayBase; * BoxArray are as equal across CPUs as is possible. The SFC distribution is * based on a space filling curve. */ - class DistributionMapping { public: diff --git a/Src/Base/AMReX_FACopyDescriptor.H b/Src/Base/AMReX_FACopyDescriptor.H index 7e1e383d237..ca7d3f47029 100644 --- a/Src/Base/AMReX_FACopyDescriptor.H +++ b/Src/Base/AMReX_FACopyDescriptor.H @@ -103,7 +103,6 @@ FabCopyDescriptor::~FabCopyDescriptor () * \brief This class orchestrates filling a destination fab of size destFabBox * from fabarray on the local processor (myProc). */ - template class FabArrayCopyDescriptor { diff --git a/Src/Base/AMReX_FPC.H b/Src/Base/AMReX_FPC.H index 77c4dfa923b..8975ed8e9b9 100644 --- a/Src/Base/AMReX_FPC.H +++ b/Src/Base/AMReX_FPC.H @@ -15,7 +15,6 @@ namespace amrex { * namespaces, and we don't like global constants, we make them static * constant data members of this class. */ - class FPC { public: diff --git a/Src/Base/AMReX_Geometry.H b/Src/Base/AMReX_Geometry.H index 4017273151a..550b42f2f6a 100644 --- a/Src/Base/AMReX_Geometry.H +++ b/Src/Base/AMReX_Geometry.H @@ -16,14 +16,6 @@ #include namespace amrex { -/** -* \class Geometry -* \brief Rectangular problem domain geometry. -* -* This class describes problem domain and coordinate system for -* RECTANGULAR problem domains. Since the problem domain is RECTANGULAR, -* periodicity is meaningful. -*/ class MultiFab; class DistributionMapping; @@ -67,6 +59,14 @@ public: int coord; }; +/** + * \class Geometry + * \brief Rectangular problem domain geometry. + * + * This class describes problem domain and coordinate system for + * RECTANGULAR problem domains. Since the problem domain is RECTANGULAR, + * periodicity is meaningful. + */ class Geometry : public CoordSys diff --git a/Src/Base/AMReX_IArrayBox.H b/Src/Base/AMReX_IArrayBox.H index b5240395f02..db0f26d5080 100644 --- a/Src/Base/AMReX_IArrayBox.H +++ b/Src/Base/AMReX_IArrayBox.H @@ -41,7 +41,6 @@ public: * This class does NOT provide a copy constructor or assignment operator. */ - class IArrayBox : public BaseFab diff --git a/Src/Base/AMReX_IndexType.H b/Src/Base/AMReX_IndexType.H index 02a56aae2a2..0fd613d2a99 100644 --- a/Src/Base/AMReX_IndexType.H +++ b/Src/Base/AMReX_IndexType.H @@ -19,7 +19,6 @@ namespace amrex { * enumerated type CellIndex to be either CELL or NODE; i.e. each of the * AMREX_SPACEDIM dimensions must be either CELL or NODE. */ - class IndexType { friend MPI_Datatype ParallelDescriptor::Mpi_typemap::type(); diff --git a/Src/Base/AMReX_IntVect.H b/Src/Base/AMReX_IntVect.H index fd71c93ae87..b2658a5ec94 100644 --- a/Src/Base/AMReX_IntVect.H +++ b/Src/Base/AMReX_IntVect.H @@ -42,7 +42,6 @@ int coarsen (int i, int ratio) noexcept * C++ array. In addition, the basic arithmetic operators have been overloaded * to implement scaling and translation operations. */ - class IntVect { friend MPI_Datatype ParallelDescriptor::Mpi_typemap::type(); diff --git a/Src/Base/AMReX_MultiFabUtil.H b/Src/Base/AMReX_MultiFabUtil.H index 29af89ba88e..ca9b1ab7fff 100644 --- a/Src/Base/AMReX_MultiFabUtil.H +++ b/Src/Base/AMReX_MultiFabUtil.H @@ -637,13 +637,13 @@ void average_down (const FabArray& S_fine, FabArray& S_crse, - /** - * \brief Returns part of a norm based on two MultiFabs - * The MultiFabs MUST have the same underlying BoxArray. - * The function f is applied elementwise as f(x(i,j,k,n),y(i,j,k,n)) - * inside the summation (subject to a valid mask entry pf(mask(i,j,k,n) - */ - +/** + * \brief Returns part of a norm based on two MultiFabs. + * + * The MultiFabs MUST have the same underlying BoxArray. + * The function f is applied elementwise as f(x(i,j,k,n),y(i,j,k,n)) + * inside the summation (subject to a valid mask entry pf(mask(i,j,k,n) + */ template Real NormHelper (const MultiFab& x, int xcomp, @@ -696,14 +696,14 @@ NormHelper (const MultiFab& x, int xcomp, return sm; } - /** - * \brief Returns part of a norm based on three MultiFabs - * The MultiFabs MUST have the same underlying BoxArray. - * The Predicate pf is used to test the mask - * The function f is applied elementwise as f(x(i,j,k,n),y(i,j,k,n)) - * inside the summation (subject to a valid mask entry pf(mask(i,j,k,n) - */ - +/** + * \brief Returns part of a norm based on three MultiFabs + * + * The MultiFabs MUST have the same underlying BoxArray. + * The Predicate pf is used to test the mask + * The function f is applied elementwise as f(x(i,j,k,n),y(i,j,k,n)) + * inside the summation (subject to a valid mask entry pf(mask(i,j,k,n) + */ template Real NormHelper (const MMF& mask, diff --git a/Src/Base/AMReX_NFiles.H b/Src/Base/AMReX_NFiles.H index 824351b50dc..bd1518dd44c 100644 --- a/Src/Base/AMReX_NFiles.H +++ b/Src/Base/AMReX_NFiles.H @@ -23,7 +23,6 @@ namespace amrex { * nfi.Stream().write((const char *) data.dataPtr(), nChars); * } */ - class NFilesIter { public: diff --git a/Src/Base/AMReX_Orientation.H b/Src/Base/AMReX_Orientation.H index 263bb84a95e..61e3622b336 100644 --- a/Src/Base/AMReX_Orientation.H +++ b/Src/Base/AMReX_Orientation.H @@ -25,7 +25,6 @@ class OrientationIter; * AMREX_SPACEDIM-1 and then the AMREX_SPACEDIM high sides from direction 0 .. * AMREX_SPACEDIM-1. */ - class Orientation { public: diff --git a/Src/Base/AMReX_PArena.H b/Src/Base/AMReX_PArena.H index d2e8c8ebec3..75db747fd9f 100644 --- a/Src/Base/AMReX_PArena.H +++ b/Src/Base/AMReX_PArena.H @@ -15,7 +15,6 @@ namespace amrex { * \brief This arena uses CUDA stream-ordered memory allocator if available. * If not, use The_Arena(). */ - class PArena : public Arena diff --git a/Src/Base/AMReX_ParmParse.H b/Src/Base/AMReX_ParmParse.H index 01a0098333e..b6f4799f2e8 100644 --- a/Src/Base/AMReX_ParmParse.H +++ b/Src/Base/AMReX_ParmParse.H @@ -267,7 +267,6 @@ class IntVect; * #endif * */ - class ParmParse { public: diff --git a/Src/Base/AMReX_ParmParse.cpp b/Src/Base/AMReX_ParmParse.cpp index c2ecfc7b37a..6fe442bfc5b 100644 --- a/Src/Base/AMReX_ParmParse.cpp +++ b/Src/Base/AMReX_ParmParse.cpp @@ -450,7 +450,6 @@ ppfound (const std::string& keyword, // except if n==-1, return the index of the last occurrence. // Return 0 if the specified occurrence does not exist. // - const ParmParse::PP_entry* ppindex (const ParmParse::Table& table, int n, diff --git a/Src/Base/AMReX_RealVect.H b/Src/Base/AMReX_RealVect.H index 635d21927f6..9e1d72700f7 100644 --- a/Src/Base/AMReX_RealVect.H +++ b/Src/Base/AMReX_RealVect.H @@ -28,7 +28,6 @@ namespace amrex C++ array. In addition, the basic arithmetic operators have been overloaded to implement scaling and translation operations. */ - class RealVect { public: diff --git a/Src/Base/AMReX_RungeKutta.H b/Src/Base/AMReX_RungeKutta.H index cfac0851cab..d68bf00bfb4 100644 --- a/Src/Base/AMReX_RungeKutta.H +++ b/Src/Base/AMReX_RungeKutta.H @@ -4,8 +4,6 @@ #include -namespace amrex::RungeKutta { - /** * \brief Functions for Runge-Kutta methods * @@ -48,6 +46,7 @@ namespace amrex::RungeKutta { * FillPatcher class can be useful for implementing such a callable. See * AmrLevel::RK for an example. */ +namespace amrex::RungeKutta { struct PostStageNoOp { template diff --git a/Src/Base/AMReX_Vector.H b/Src/Base/AMReX_Vector.H index c377076fe1b..18e14d5c3c0 100644 --- a/Src/Base/AMReX_Vector.H +++ b/Src/Base/AMReX_Vector.H @@ -20,7 +20,6 @@ namespace amrex { * Vector::operator[] provides bound checking when compiled with * DEBUG=TRUE. */ - template > class Vector : diff --git a/Src/Base/AMReX_VisMF.H b/Src/Base/AMReX_VisMF.H index f0b146f6a9d..468523e0039 100644 --- a/Src/Base/AMReX_VisMF.H +++ b/Src/Base/AMReX_VisMF.H @@ -29,7 +29,6 @@ class IArrayBox; * \brief File I/O for FabArray. * Wrapper class for reading/writing FabArray objects to disk in various "smart" ways. */ - class VisMF : public VisMFBuffer { diff --git a/Src/Boundary/AMReX_BoundCond.H b/Src/Boundary/AMReX_BoundCond.H index 834f790f6b5..963a2fa7ecc 100644 --- a/Src/Boundary/AMReX_BoundCond.H +++ b/Src/Boundary/AMReX_BoundCond.H @@ -16,7 +16,6 @@ namespace amrex { boundary conditions are specified via an integer identifier. This class maintains that integer. */ - class BoundCond { public: diff --git a/Src/Boundary/AMReX_FabSet.H b/Src/Boundary/AMReX_FabSet.H index f4ae8b7d247..9841555b336 100644 --- a/Src/Boundary/AMReX_FabSet.H +++ b/Src/Boundary/AMReX_FabSet.H @@ -40,7 +40,6 @@ namespace amrex { FabSets are used primarily as a data storage mechanism, and are manipulated by more sophisticated control classes. */ - template class FabSetT { diff --git a/Src/Boundary/AMReX_Mask.H b/Src/Boundary/AMReX_Mask.H index 3a41ea81913..02000250f49 100644 --- a/Src/Boundary/AMReX_Mask.H +++ b/Src/Boundary/AMReX_Mask.H @@ -22,7 +22,6 @@ namespace amrex { This class does NOT provide a copy constructor or assignment operator. */ - class Mask final : public BaseFab diff --git a/Src/Boundary/AMReX_YAFluxRegister.H b/Src/Boundary/AMReX_YAFluxRegister.H index 075a630a2f7..e26426ce15b 100644 --- a/Src/Boundary/AMReX_YAFluxRegister.H +++ b/Src/Boundary/AMReX_YAFluxRegister.H @@ -23,7 +23,6 @@ namespace amrex { `Reflux` is called to update the coarse cells next to the coarse/fine boundary. */ - template class YAFluxRegisterT { diff --git a/Src/EB/AMReX_EBFluxRegister.H b/Src/EB/AMReX_EBFluxRegister.H index 33ec811dcf6..72fec3b6a7c 100644 --- a/Src/EB/AMReX_EBFluxRegister.H +++ b/Src/EB/AMReX_EBFluxRegister.H @@ -53,7 +53,6 @@ namespace amrex { to add the part in ghost cells (excluding ghost cells covered by valid cells of other grids) to EBFluxRegister's internal data. */ - class EBFluxRegister : public YAFluxRegister { diff --git a/Src/Extern/Bittree/AMReX_Bittree.H b/Src/Extern/Bittree/AMReX_Bittree.H index 54a046be720..feb05e9f189 100644 --- a/Src/Extern/Bittree/AMReX_Bittree.H +++ b/Src/Extern/Bittree/AMReX_Bittree.H @@ -18,7 +18,6 @@ LIBRARIES += -lbittree Include in inputs: amr.use_bittree = true */ - class btUnit { // Functions used in AmrMesh public: diff --git a/Src/Extern/SUNDIALS/AMReX_NVector_MultiFab.cpp b/Src/Extern/SUNDIALS/AMReX_NVector_MultiFab.cpp index 8408f75c41d..34671fac1a8 100644 --- a/Src/Extern/SUNDIALS/AMReX_NVector_MultiFab.cpp +++ b/Src/Extern/SUNDIALS/AMReX_NVector_MultiFab.cpp @@ -24,7 +24,6 @@ namespace amrex::sundials { /* ---------------------------------------------------------------------------- * Function to create a new empty multifab vector */ - N_Vector N_VNewEmpty_MultiFab(sunindextype length, ::sundials::Context* sunctx) { /* Create vector */ @@ -76,7 +75,6 @@ N_Vector N_VNewEmpty_MultiFab(sunindextype length, ::sundials::Context* sunctx) /* ---------------------------------------------------------------------------- * Function to create a new MultiFab vector */ - N_Vector N_VNew_MultiFab(sunindextype length, const amrex::BoxArray &ba, const amrex::DistributionMapping &dm, @@ -102,7 +100,6 @@ N_Vector N_VNew_MultiFab(sunindextype length, /* ---------------------------------------------------------------------------- * Function to create a MultiFab N_Vector with user-specific MultiFab */ - N_Vector N_VMake_MultiFab(sunindextype length, amrex::MultiFab *v_mf, ::sundials::Context* sunctx) { diff --git a/Src/Extern/SUNDIALS/AMReX_SUNMemory.H b/Src/Extern/SUNDIALS/AMReX_SUNMemory.H index f7700ce4210..5fc01c3b6b9 100644 --- a/Src/Extern/SUNDIALS/AMReX_SUNMemory.H +++ b/Src/Extern/SUNDIALS/AMReX_SUNMemory.H @@ -13,7 +13,6 @@ namespace amrex::sundials { * * This class allows SUNDIALS to allocate memory using the amrex::Arena. */ - class MemoryHelper { public: MemoryHelper(::sundials::Context* sunctx); diff --git a/Src/Extern/SUNDIALS/AMReX_Sundials_Core.H b/Src/Extern/SUNDIALS/AMReX_Sundials_Core.H index bb3695d19ac..090a5f43534 100644 --- a/Src/Extern/SUNDIALS/AMReX_Sundials_Core.H +++ b/Src/Extern/SUNDIALS/AMReX_Sundials_Core.H @@ -15,7 +15,6 @@ namespace amrex::sundials { * This will create the nthreads SUNDIALS context objects that are needed by * the SUNDIALS solver and vector objects. Called by amrex::Initialize. */ - void Initialize(int nthreads); /** @@ -23,7 +22,6 @@ void Initialize(int nthreads); * * Called by amrex::Finalize. */ - void Finalize(); /** @@ -33,7 +31,6 @@ void Finalize(); * * A SUNDIALS context should not be used concurrently from different threads. */ - ::sundials::Context* The_Sundials_Context(int i = amrex::OpenMP::get_thread_num()); } diff --git a/Src/Particle/AMReX_ParticleTransformation.H b/Src/Particle/AMReX_ParticleTransformation.H index aa737455ce6..7ca26cef064 100644 --- a/Src/Particle/AMReX_ParticleTransformation.H +++ b/Src/Particle/AMReX_ParticleTransformation.H @@ -608,10 +608,8 @@ int filterAndTransformParticles (DstTile1& dst1, DstTile2& dst2, const SrcTile& * \param p predicate function - particles will be copied if p returns true * \param src_start the offset at which to start reading particles from src * \param dst_start the offset at which to start writing particles to dst - * \param n the number of particles to apply the operation to * */ - template >,Index> nvccfoo = 0> Index filterAndTransformParticles (DstTile& dst, const SrcTile& src, Pred&& p, F&& f, diff --git a/Src/Particle/AMReX_ParticleUtil.H b/Src/Particle/AMReX_ParticleUtil.H index 03fe2a29d65..182802e51f2 100644 --- a/Src/Particle/AMReX_ParticleUtil.H +++ b/Src/Particle/AMReX_ParticleUtil.H @@ -47,7 +47,6 @@ numParticlesOutOfRange (Iterator const& pti, int nGrow) * \param nGrow the number of grow cells allowed. * */ - template ::value && !Iterator::ContainerType::ParticleType::is_soa_particle, int> foo = 0> int numParticlesOutOfRange (Iterator const& pti, IntVect nGrow)