atlas
Public Member Functions | Friends | List of all members
atlas::mesh::Elements Class Reference

Describe elements of a single type. More...

#include <Elements.h>

Inheritance diagram for atlas::mesh::Elements:
Inheritance graph
[legend]
Collaboration diagram for atlas::mesh::Elements:
Collaboration graph
[legend]

Public Member Functions

 Elements (HybridElements &elements, idx_t type_idx)
 Constructor that treats elements as sub-elements in HybridElements.
 
 Elements (ElementType *, idx_t nb_elements, const std::vector< idx_t > &node_connectivity)
 Constructor that internally creates a HybridElements that owns the data.
 
 Elements (ElementType *, idx_t nb_elements, const idx_t node_connectivity[], bool fortran_array=false)
 Constructor that internally creates a HybridElements that owns the data.
 
virtual ~Elements ()
 Destructor.
 
idx_t size () const
 Number of elements.
 
const std::string & name () const
 Name of this element type.
 
idx_t nb_nodes () const
 Number of nodes for each element type.
 
idx_t nb_edges () const
 Number of edges for each element type.
 
const BlockConnectivitynode_connectivity () const
 Element to Node connectivity table.
 
BlockConnectivitynode_connectivity ()
 
const BlockConnectivityedge_connectivity () const
 Element to Edge connectivity table.
 
BlockConnectivityedge_connectivity ()
 
const BlockConnectivitycell_connectivity () const
 Element to Cell connectivity table.
 
BlockConnectivitycell_connectivity ()
 
const ElementTypeelement_type () const
 Element type of these Elements.
 
idx_t begin () const
 Access hybrid_elements HybridElements can contain more Elements, and holds the data. More...
 
idx_t end () const
 End of elements in hybrid_elements.
 
const Fieldfield (const std::string &name) const
 
Fieldfield (const std::string &name)
 
bool has_field (const std::string &name) const
 
const Fieldfield (idx_t idx) const
 
Fieldfield (idx_t idx)
 
idx_t nb_fields () const
 
const Fieldglobal_index () const
 
Fieldglobal_index ()
 
const Fieldremote_index () const
 
Fieldremote_index ()
 
const Fieldpartition () const
 
Fieldpartition ()
 
const Fieldhalo () const
 
Fieldhalo ()
 
const Fieldflags () const
 
Fieldflags ()
 
template<typename DATATYPE , int RANK>
array::LocalView< const DATATYPE, RANK > view (const Field &) const
 
template<typename DATATYPE , int RANK>
array::LocalView< DATATYPE, RANK > view (Field &) const
 
template<typename DATATYPE , int RANK>
array::LocalIndexView< DATATYPE, RANK > indexview (const Field &) const
 
template<typename DATATYPE , int RANK>
array::LocalIndexView< DATATYPE, RANK > indexview (Field &) const
 
idx_t add (const idx_t nb_elements)
 
template<>
array::LocalView< const double, 1 > view (const Field &field) const
 
template<>
array::LocalView< const float, 1 > view (const Field &field) const
 
template<>
array::LocalView< const int, 1 > view (const Field &field) const
 
template<>
array::LocalView< const long, 1 > view (const Field &field) const
 
template<>
array::LocalView< const double, 2 > view (const Field &field) const
 
template<>
array::LocalView< const float, 2 > view (const Field &field) const
 
template<>
array::LocalView< const int, 2 > view (const Field &field) const
 
template<>
array::LocalView< const long, 2 > view (const Field &field) const
 
template<>
array::LocalView< double, 1 > view (Field &field) const
 
template<>
array::LocalView< float, 1 > view (Field &field) const
 
template<>
array::LocalView< int, 1 > view (Field &field) const
 
template<>
array::LocalView< long, 1 > view (Field &field) const
 
template<>
array::LocalView< double, 2 > view (Field &field) const
 
template<>
array::LocalView< float, 2 > view (Field &field) const
 
template<>
array::LocalView< int, 2 > view (Field &field) const
 
template<>
array::LocalView< long, 2 > view (Field &field) const
 
template<>
array::LocalIndexView< idx_t, 1 > indexview (Field &field) const
 
template<>
array::LocalIndexView< const idx_t, 1 > indexview (const Field &field) const
 

Friends

class HybridElements
 

Detailed Description

Describe elements of a single type.

Member Function Documentation

◆ begin()

idx_t atlas::mesh::Elements::begin ( ) const
inline

Access hybrid_elements HybridElements can contain more Elements, and holds the data.

Index of Elements in hybrid_elements Begin of elements in hybrid_elements


The documentation for this class was generated from the following files: