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_data().get() );
88 size = offset_vec[offset_vec.size()-1];
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);
#define ASSERT_PERMANENT(expr)
Allow use shorter versions of macro names if these names is not used with external library.
std::shared_ptr< ElementDataCacheBase > OutputDataPtr
OutputDataPtr prepare_compute_data(std::string field_name, DiscreteSpace space_type, unsigned int n_rows, unsigned int n_cols, std::string fe_type="", unsigned int n_dofs_per_element=1)
std::shared_ptr< OutputMeshBase > output_mesh_
Output mesh.
OutputDataFieldVec output_data_vec_[N_DISCRETE_SPACES]
Class OutputElement and its iterator OutputElementIterator on the output mesh.
Classes for auxiliary output mesh.