44 #include "DTK_Types.hpp" 46 #include <Teuchos_ArrayView.hpp> 107 const int dimension,
const double data ) = 0;
123 #endif // end DTK_FIELD_HPP virtual ~Field()
Destructor.
unsigned long int SupportId
Support id type.
virtual Teuchos::ArrayView< const SupportId > getLocalSupportIds() const =0
Get the locally-owned support location ids of the field.
virtual int dimension() const =0
Get the dimension of the field.
virtual double readFieldData(const SupportId support_id, const int dimension) const =0
Given a local support id and a dimension, read data from the application field.
virtual void writeFieldData(const SupportId support_id, const int dimension, const double data)=0
Given a local support id, dimension, and field value, write data into the application field...
virtual void finalizeAfterWrite()
Finalize a field after writing into it. This lets some clients do a post-process (e.g. update ghost values). Default finalize does nothing.