* just the values in the suport
* points. All other elements
* must reimplement it.
- *
- * @warning This function will
- * only be available in future
- * versions. Right now, is
- * implemented for a few elements
- * and not tested.
*/
virtual void interpolate(std::vector<double>& local_dofs,
const std::vector<double>& values) const;
* interpolated. Maybe consider
* changing your data structures
* to use the next function.
- *
- * @warning This function will
- * only be available in future
- * versions. Right now, is
- * implemented for a few elements
- * and not tested.
*/
virtual void interpolate(std::vector<double>& local_dofs,
const std::vector<Vector<double> >& values,
* Interpolate a set of vector
* values, computed in the
* generalized support points.
- *
- * @warning This function will
- * only be available in future
- * versions. Right now, is
- * implemented for a few elements
- * and not tested.
*/
virtual void interpolate(
std::vector<double>& local_dofs,
ExcDimensionMismatch(local_dofs.size(),this->dofs_per_cell));
Assert (this->n_components() == 1,
ExcDimensionMismatch(this->n_components(), 1));
-
- Assert(false, ExcNotImplemented());
-// std::fill(values.begin(), values.end(), local_dofs.begin());
+ std::copy(values.begin(), values.end(), local_dofs.begin());
}
{
const std::pair<unsigned int, unsigned int> index
= this->system_to_component_index(i);
- local_dofs[i] = values[index.second](offset+index.first);
+ local_dofs[i] = values[i](offset+index.first);
}
}
{
const std::pair<unsigned int, unsigned int> index
= this->system_to_component_index(i);
- local_dofs[i] = values[index.first][index.second];
+ local_dofs[i] = values[index.first][i];
}
}