// @HEADER // ***************************************************************************** // Rapid Optimization Library (ROL) Package // // Copyright 2014 NTESS and the ROL contributors. // SPDX-License-Identifier: BSD-3-Clause // ***************************************************************************** // @HEADER /*! \file pde.hpp \brief Implements the local PDE interface for the Poisson control problem. */ #ifndef PDEOPT_TOOLS_BOUNDARY_CELLS_HPP #define PDEOPT_TOOLS_BOUNDARY_CELLS_HPP #include "Intrepid_FieldContainer.hpp" #include "ROL_Ptr.hpp" #include enum EBoundaryType { DIRICHLET = 0, NEUMANN, ROBIN, USERDEFINED, LAST }; template class BoundaryCells { private: const int boundaryID_; const EBoundaryType boundaryType_; const std::vector localCellIndex_; const ROL::Ptr > cellNodes_; const int localCellSideID_; public: BoundaryCells(const int &boundaryID, const EBoundaryType &boundaryType, const std::vector &localCellIndex, const ROL::Ptr > &cellNodes, const int &localCellSideID) : boundaryID_(boundaryID), boundaryType_(boundaryType), localCellIndex_(localCellIndex), cellNodes_(cellNodes), localCellSideID_(localCellSideID) {} const int getBoundaryID(void) const { return boundaryID_; } const EBoundaryType getBoundaryType(void) const { return boundaryType_; } const std::vector getBoundaryCellLocalIndex(void) const { return localCellIndex_; } const ROL::Ptr > getCellNodes(void) const { return cellNodes_; } const int getLocalCellSideID(void) const { return localCellSideID_; } }; #endif