46 #include "Teuchos_Assert.hpp" 
   47 #include "Phalanx_DataLayout_MDALayout.hpp" 
   48 #include "Intrepid2_DefaultCubatureFactory.hpp" 
   59   setup(ptName,np,cell_data);
 
   65           const int num_points_per_cell,
 
   67           const int num_points_per_face,
 
   70   setup(point_rule_name, num_cells, num_points_per_cell, num_faces, num_points_per_face, cell_topology);
 
   81   setup(description.
getType(), num_cells, num_points_per_cell, 0, 0, cell_topology);
 
   85 setup(
const std::string & ptName,
 
   94   _num_points_per_face = -1;
 
   98                      "PointRule::setup - Base topology from cell_data cannot be null!");
 
  100          "PointRule::setup - Spatial dimension from cell_data does not match the cell topology.");
 
  103          "PointRule::setup - Failed to allocate cell topology!");
 
  106   if(cell_data.
isSide() && spatial_dimension==1) {
 
  111   side_topology = getSideTopology(cell_data);
 
  112   if (side_topology!=Teuchos::null)
 
  113     side = cell_data.
side();
 
  117          "Failed to allocate side topology!");
 
  121   using PHX::MDALayout;
 
  124     rcp(
new MDALayout<Cell,IP>(workset_size,num_points));
 
  127     rcp(
new MDALayout<Cell,IP,Dim>(workset_size, num_points,
 
  131     rcp(
new MDALayout<Cell,IP,Dim,Dim>(workset_size, num_points,
 
  136       rcp(
new MDALayout<Cell,IP,Dim>(workset_size, num_points,3));
 
  138       rcp(
new MDALayout<Cell,IP,Dim,Dim>(workset_size, num_points,3,3));
 
  144 setup(
const std::string & point_rule_name,
 
  146       const int num_points_per_cell,
 
  148       const int num_points_per_face,
 
  152   topology = cell_topology;
 
  154                        "PointRule::setup - Cell topology cannot be null.");
 
  156   point_name = point_rule_name;
 
  157   num_points = num_points_per_cell;
 
  158   spatial_dimension = cell_topology->getDimension();
 
  159   workset_size = num_cells;
 
  160   _num_faces = num_faces;
 
  161   _num_points_per_face = num_points_per_face;
 
  165   dl_scalar = 
Teuchos::rcp(
new PHX::MDALayout<Cell,IP>(workset_size,num_points));
 
  166   dl_vector = 
Teuchos::rcp(
new PHX::MDALayout<Cell,IP,Dim>(workset_size, num_points,spatial_dimension));
 
  167   dl_tensor = 
Teuchos::rcp(
new PHX::MDALayout<Cell,IP,Dim,Dim>(workset_size, num_points,spatial_dimension,spatial_dimension));
 
  169   dl_vector3 = 
Teuchos::rcp(
new PHX::MDALayout<Cell,IP,Dim>(workset_size, num_points,3));
 
  170   dl_tensor3x3 = 
Teuchos::rcp(
new PHX::MDALayout<Cell,IP,Dim,Dim>(workset_size, num_points,3,3));
 
  190   if (cell_data.
isSide() && spatial_dimension>1) {
 
  191     int side = cell_data.
side();
 
  194       std::runtime_error, 
"Error - local side "  
  195       << side << 
" is not in range (0->" << topology->getSideCount()-1 
 
  196         << 
") of topologic entity!");
 
  198     sideTopo = 
Teuchos::rcp(
new shards::CellTopology(topology->getCellTopologyData(topology->getDimension()-1,side)));
 
  200   else if(cell_data.
isSide() && spatial_dimension==1) {
 
  201     sideTopo = 
Teuchos::rcp(
new shards::CellTopology(shards::getCellTopologyData<shards::Node>()));
 
  209 {
return Teuchos::rcp(
new PHX::MDALayout<Cell>(workset_size));}
 
  213 {
return Teuchos::rcp(
new PHX::MDALayout<Cell,Dim>(workset_size, dim0));}
 
  217 {
return Teuchos::rcp(
new PHX::MDALayout<Cell,Dim,Dim>(workset_size, dim0, dim1));}
 
  222 {
return Teuchos::rcp(
new PHX::MDALayout<Cell,IP>(workset_size, num_points));}
 
  226 {
return Teuchos::rcp(
new PHX::MDALayout<Cell,IP,Dim>(workset_size, num_points, dim0));}
 
  230 {
return Teuchos::rcp(
new PHX::MDALayout<Cell,IP,Dim,Dim>(workset_size, num_points, dim0, dim1));}
 
  235 {
return Teuchos::rcp(
new PHX::MDALayout<Face>(_num_faces));}
 
  239 {
return Teuchos::rcp(
new PHX::MDALayout<Face,Dim>(_num_faces, dim0));}
 
  243 {
return Teuchos::rcp(
new PHX::MDALayout<Face,Dim,Dim>(_num_faces, dim0, dim1));}
 
  248 {
return Teuchos::rcp(
new PHX::MDALayout<Face,IP>(_num_faces, _num_points_per_face));}
 
  252 {
return Teuchos::rcp(
new PHX::MDALayout<Face,IP,Dim>(_num_faces, _num_points_per_face, dim0));}
 
  256 {
return Teuchos::rcp(
new PHX::MDALayout<Face,IP,Dim,Dim>(_num_faces, _num_points_per_face, dim0, dim1));}
 
  262    os << 
"panzer::PointRule ( " 
  263       << 
"Name = " << getName()
 
  264       << 
", Dimension = " << spatial_dimension 
 
  265       << 
", Workset Size = " << workset_size
 
  266       << 
", Num Points = " << num_points 
 
  267       << 
", Side = " << side
 
int baseCellDimension() const 
Dimension of the base cell. NOT the dimension of the local side, even if the side() method returns tr...
 
void setup(const std::string &ptName, int np, const panzer::CellData &cell_data)
 
bool is_null(const std::shared_ptr< T > &p)
 
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
 
Teuchos::RCP< const shards::CellTopology > getCellTopology() const 
Get CellTopology for the base cell. 
 
Teuchos::RCP< PHX::DataLayout > getCellDataLayout() const 
 
virtual int numPoints(const shards::CellTopology &topo) const =0
Get the points for a particular topology. 
 
const std::string & getName() const 
 
std::size_t numCells() const 
 
virtual void print(std::ostream &os)
print information about the integration rule 
 
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
 
Data for determining cell topology and dimensionality. 
 
Teuchos::RCP< PHX::DataLayout > getFacePointDataLayout() const 
 
Teuchos::RCP< PHX::DataLayout > getFaceDataLayout() const 
 
const PointGenerator & getGenerator() const 
 
const std::string & getType() const 
Get unique string associated with the type of point descriptor. This will be used generate a hash to ...
 
static Teuchos::RCP< shards::CellTopology > getSideTopology(const CellData &cell_data)
 
#define TEUCHOS_ASSERT(assertion_test)
 
Teuchos::RCP< PHX::DataLayout > getCellPointDataLayout() const