11 #include "PanzerDiscFE_config.hpp"
21 const std::string & elementBlock,
22 const std::vector<std::size_t>& local_cell_ids,
23 const Kokkos::DynRankView<double,PHX::Device>& node_coordinates);
28 const std::string& elementBlock,
29 const std::vector<std::size_t>& local_cell_ids,
30 const std::vector<std::size_t>& local_side_ids,
31 const Kokkos::DynRankView<double,PHX::Device>& node_coordinates,
32 const bool populate_value_arrays);
37 const std::string & blockid_a,
38 const std::vector<std::size_t>& local_cell_ids_a,
39 const std::vector<std::size_t>& local_side_ids_a,
40 const Kokkos::DynRankView<double,PHX::Device> & node_coordinates_a,
42 const std::string & blockid_b,
43 const std::vector<std::size_t>& local_cell_ids_b,
44 const std::vector<std::size_t>& local_side_ids_b,
45 const Kokkos::DynRankView<double,PHX::Device> & node_coordinates_b);
50 const std::string & eblock_a,
51 const std::vector<std::size_t>& local_cell_ids_a,
52 const std::vector<std::size_t>& local_side_ids_a,
53 const Kokkos::DynRankView<double,PHX::Device> & node_coordinates_a,
55 const std::string & eblock_b,
56 const std::vector<std::size_t>& local_cell_ids_b,
57 const std::vector<std::size_t>& local_side_ids_b,
58 const Kokkos::DynRankView<double,PHX::Device> & node_coordinates_b);
73 if(other_details!=Teuchos::null and other_details->
numOwnedCells()==-1)
80 std::vector<RCP<const panzer::PureBasis> > bases;
81 std::vector<RCP<const panzer::IntegrationRule> > int_rules;
87 for(std::size_t i=0;i<needs.
int_rules.size();i++)
90 for(std::size_t i=0;i<needs.
bases.size();i++)
101 for(std::size_t i=0;i<int_rules.size();i++) {
103 details.
ir_degrees->push_back(int_rules[i]->cubature_degree);
107 iv2->setupArrays(int_rules[i]);
116 for(std::size_t b=0;b<bases.size();b++) {
120 std::size_t int_degree_index = std::distance(details.
ir_degrees->begin(),
123 int_rules[i]->order()));
126 bv2->setupArrays(b_layout);
127 bv2->evaluateValues(details.
int_rules[int_degree_index]->cub_points,
128 details.
int_rules[int_degree_index]->jac,
129 details.
int_rules[int_degree_index]->jac_det,
130 details.
int_rules[int_degree_index]->jac_inv,
131 details.
int_rules[int_degree_index]->weighted_measure,
136 details.
bases.push_back(bv2);
std::vector< Teuchos::RCP< const PureBasis > > bases
bool nonnull(const std::shared_ptr< T > &p)
Teuchos::RCP< std::vector< int > > ir_degrees
If workset corresponds to a sub cell, what is the index?
std::vector< Teuchos::RCP< panzer::BasisValues2< double > > > bases
Static basis function data, key is basis name, value is index in the static_bases vector...
Teuchos::RCP< std::vector< std::string > > basis_names
Value corresponds to basis type. Use the offest for indexing.
Teuchos::RCP< std::vector< Workset > > buildWorksets(const WorksetNeeds &needs, const std::string &elementBlock, const std::vector< std::size_t > &local_cell_ids, const ArrayT &node_coordinates)
int numOwnedCells() const
Number of cells owned by this workset.
Teuchos::RCP< const shards::CellTopology > getCellTopology() const
Get CellTopology for the base cell.
std::vector< Teuchos::RCP< const IntegrationRule > > int_rules
Teuchos::RCP< std::vector< Workset > > buildEdgeWorksets(const WorksetNeeds &needs_a, const std::string &eblock_a, const std::vector< std::size_t > &local_cell_ids_a, const std::vector< std::size_t > &local_side_ids_a, const ArrayT &node_coordinates_a, const WorksetNeeds &needs_b, const std::string &eblock_b, const std::vector< std::size_t > &local_cell_ids_b, const std::vector< std::size_t > &local_side_ids_b, const ArrayT &node_coordinates_b)
void setNumberOfCells(const int owned_cells, const int ghost_cells, const int virtual_cells)
Provides access to set numbers of cells (required for backwards compatibility)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Data for determining cell topology and dimensionality.
std::vector< Teuchos::RCP< panzer::IntegrationValues2< double > > > int_rules
Teuchos::RCP< std::map< unsigned, Workset > > buildBCWorkset(const WorksetNeeds &needs, const std::string &elementBlock, const std::vector< std::size_t > &local_cell_ids, const std::vector< std::size_t > &local_side_ids, const ArrayT &node_coordinates, const bool populate_value_arrays=true)
std::string name() const
Unique key for workset indexing composed of basis name and point rule name.
int subcell_index
DEPRECATED - use: getSubcellIndex()
CellCoordArray cell_node_coordinates
DEPRECATED - use: getCellNodes()
Description and data layouts associated with a particular basis.
void populateValueArrays(std::size_t num_cells, bool isSide, const WorksetNeeds &needs, WorksetDetails &details, const Teuchos::RCP< WorksetDetails > other_details)