7 template<
int spacedim,
class Value>
12 for (
unsigned long index=0; index < multi_field.
size(); index++) {
18 template<
int spacedim,
class Value>
20 const RefType ref_type,
24 string name_ = field->
name();
26 unsigned int item_count = 0, comp_count = 0, node_id;
34 if(!stream_name_iter) {
39 OutputTime *output_time = OutputTime::output_stream_by_name(*stream_name_iter);
42 if(output_time == NULL || output_time->
rank != 0) {
50 if(output_time->
get_mesh() == NULL) {
60 output_data = output_time->output_data_by_field((
FieldCommon*)field,
71 item_count += ele->n_nodes();
79 if(output_data == NULL) {
95 throw "Try to register unsupported data type.";
100 output_time->
node_data.push_back(output_data);
106 output_time->
elem_data.push_back(output_data);
111 unsigned int *count =
new unsigned int[item_count];
118 for(node_id=0; node_id<item_count; node_id++) {
138 node = ele->node[node_id];
158 for(node_id=0; node_id<item_count; node_id++) {
178 node = ele->node[node_id];
218 if(output_time->
time < field->
time()) {
double time
The newest time of registered data.
Common abstract parent of all Field<...> classes.
Common parent class for templated OutputData.
#define FOR_ELEMENT_NODES(i, j)
unsigned int size() const
Number of subfields that compose the multi-field.
#define FOR_ELEMENTS(_mesh_, __i)
Class template representing a field with values dependent on: point, element, and region...
void register_data(const DiscreteSpace type, MultiField< spacedim, Value > &multi_field)
Generic method for registering output data stored in MultiField.
#define ELEMENT_FULL_ITER(_mesh_, i)
ElementAccessor< 3 > element_accessor(unsigned int idx, bool boundary=false)
This class is used for storing data that are copied from field.
vector< OutputDataBase * > node_data
unsigned int n_elements() const
void set_mesh(Mesh *_mesh)
vector< OutputDataBase * > elem_data
unsigned int index(const T *pointer) const
virtual Value::return_type const & value(const Point &p, const ElementAccessor< spacedim > &elm) const
int rank
MPI rank of process (is tested in methods)
The class for outputing data during time.
const Mesh * mesh() const
FieldCommon & name(const string &name)
unsigned int n_nodes() const
Class for representation of a vector of fields of the same physical quantity.
NodeVector node_vector
Vector of nodes of the mesh.
vector< OutputDataBase * > corner_data