79 DiscreteSpace space_type,
unsigned int n_rows,
unsigned int n_cols, std::string fe_type,
unsigned int n_dofs_per_element)
87 auto &offset_vec = *(
output_mesh_->offsets_->get_component_data(0).get() );
88 size = offset_vec[offset_vec.size()-1];
98 ASSERT(
false).error(
"Should not happen.");
111 auto it=std::find_if(od_vec.begin(), od_vec.end(),
112 [&field_name](
OutputDataPtr ptr) { return (ptr->field_input_name() == field_name); });
116 od_vec.push_back( std::make_shared<
ElementDataCache<T> >(field_name, n_rows*n_cols, size, fe_type, n_dofs_per_element) );
120 ASSERT(
it != od_vec.end()).error(
"Try to add non-existing output field after first step.");
121 *
it = std::make_shared< ElementDataCache<T> >(field_name, n_rows*n_cols, size, fe_type, n_dofs_per_element);