41 #ifndef DTK_ENTITYCENTEREDFIELD_HPP 42 #define DTK_ENTITYCENTEREDFIELD_HPP 44 #include <unordered_map> 46 #include "DTK_Entity.hpp" 47 #include "DTK_Field.hpp" 48 #include "DTK_Types.hpp" 50 #include <Teuchos_Array.hpp> 51 #include <Teuchos_ArrayRCP.hpp> 52 #include <Teuchos_ArrayView.hpp> 53 #include <Teuchos_RCP.hpp> 87 const Teuchos::ArrayRCP<double> &dof_data,
95 const Teuchos::ArrayRCP<double> &dof_data,
113 const int dimension )
const;
124 Teuchos::Array<SupportId> d_support_ids;
130 Teuchos::ArrayRCP<double> d_data;
139 std::unordered_map<SupportId, int> d_id_map;
148 #endif // end DTK_ENTITYCENTEREDFIELD_HPP DataLayout
Blocked/Interleaved data layout enum.
void writeFieldData(const SupportId support_id, const int dimension, const double data)
Given a local dof id, dimension, and field value, write data into the application field...
Teuchos::ArrayView< const SupportId > getLocalSupportIds() const
Get the locally-owned support location ids of the field.
unsigned long int SupportId
Support id type.
int dimension() const
Get the dimension of the field.
double readFieldData(const SupportId support_id, const int dimension) const
Given a local dof id and a dimension, read data from the application field.
EntityCenteredField(const Teuchos::ArrayView< Entity > &entities, const int field_dim, const Teuchos::ArrayRCP< double > &dof_data, const DataLayout layout)
Entity constructor.