86 size = this->
nodes_->n_values();
93 ASSERT(
false).error(
"Should not happen.");
98 auto it=std::find_if(od_vec.begin(), od_vec.end(),
99 [&field_name](
OutputDataPtr ptr) {
return (ptr->field_input_name() == field_name); });
100 if (
it == od_vec.end() ) {
101 od_vec.push_back( std::make_shared<
ElementDataCache<T> >(field_name, n_rows, n_cols, size) );
ElementDataCache< T > & prepare_compute_data(std::string field_name, DiscreteSpace space_type, unsigned int n_rows, unsigned int n_cols)
Classes for auxiliary output mesh.
std::shared_ptr< ElementDataCache< unsigned int > > offsets_
Vector of offsets of node indices of elements. Maps elements to their nodes in connectivity_.
std::shared_ptr< ElementDataCacheBase > OutputDataPtr
std::shared_ptr< ElementDataCache< double > > nodes_
Vector of node coordinates. [spacedim x n_nodes].
#define ASSERT(expr)
Allow use shorter versions of macro names if these names is not used with external library...
Class OutputElement and its iterator OutputElementIterator on the output mesh.
OutputDataFieldVec output_data_vec_[N_DISCRETE_SPACES]