*/
virtual
void
- transform_covariant (Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ transform_covariant (typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const InternalDataBase& internal) const = 0;
/**
*/
virtual
void
- transform_contravariant (Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ transform_contravariant (typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const InternalDataBase& internal) const = 0;
/**
* @ref{Mapping}.
*/
virtual void
- transform_covariant (Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ transform_covariant (typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const typename Mapping<dim>::InternalDataBase &mapping_data) const;
/**
* @ref{Mapping}.
*/
virtual void
- transform_contravariant (Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ transform_contravariant (typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const typename Mapping<dim>::InternalDataBase &mapping_data) const;
/**
* @ref{Mapping}.
*/
virtual void
- transform_covariant (Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ transform_covariant (typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const typename Mapping<dim>::InternalDataBase &mapping_data) const;
/**
* @ref{Mapping}.
*/
virtual void
- transform_contravariant (Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ transform_contravariant (typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const typename Mapping<dim>::InternalDataBase &mapping_data) const;
/**
* @ref{Mapping}.
*/
virtual void
- transform_covariant (Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ transform_covariant (typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const typename Mapping<dim>::InternalDataBase &mapping_data) const;
/**
* @ref{Mapping}.
*/
virtual void
- transform_contravariant (Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ transform_contravariant (typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const typename Mapping<dim>::InternalDataBase &mapping_data) const;
/**
for (unsigned int d=0; d<dim; ++d)
{
mapping.transform_covariant (diff_quot2.begin(), diff_quot2.end(),
- &diff_quot[d][offset],
+ diff_quot[d].begin()+offset,
mapping_internal);
for (unsigned int q=0; q<n_q_points; ++q)
if (flags & update_gradients)
mapping.transform_covariant(data.shape_gradients[k].begin(),
data.shape_gradients[k].end(),
- &fe_data.shape_gradients[k][offset],
+ fe_data.shape_gradients[k].begin()+offset,
mapping_data);
}
if (flags & update_gradients)
mapping.transform_covariant(data.shape_gradients[k].begin(),
data.shape_gradients[k].end(),
- &fe_data.shape_gradients[k][offset],
+ fe_data.shape_gradients[k].begin()+offset,
mapping_data);
}
if (flags & update_gradients)
mapping.transform_covariant(data.shape_gradients[k].begin(),
data.shape_gradients[k].end(),
- &fe_data.shape_gradients[k][offset],
+ fe_data.shape_gradients[k].begin()+offset,
mapping_data);
}
if (flags & update_gradients)
mapping.transform_covariant(data.shape_gradients[k].begin(),
data.shape_gradients[k].end(),
- &fe_data.shape_gradients[k][offset],
+ fe_data.shape_gradients[k].begin()+offset,
mapping_data);
}
if (flags & update_gradients)
mapping.transform_covariant(data.shape_gradients[k].begin(),
data.shape_gradients[k].end(),
- &fe_data.shape_gradients[k][offset],
+ fe_data.shape_gradients[k].begin()+offset,
mapping_data);
}
if (flags & update_gradients)
mapping.transform_covariant(data.shape_gradients[k].begin(),
data.shape_gradients[k].end(),
- &fe_data.shape_gradients[k][offset],
+ fe_data.shape_gradients[k].begin()+offset,
mapping_data);
}
template <int dim>
void
MappingCartesian<dim>::transform_covariant (
- Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const typename Mapping<dim>::InternalDataBase &mapping_data) const
{
const InternalData &data = dynamic_cast<const InternalData&> (mapping_data);
template <int dim>
void
MappingCartesian<dim>::transform_contravariant (
- Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const typename Mapping<dim>::InternalDataBase &mapping_data) const
{
// convert data object to internal
template <int dim>
void
MappingQ<dim>::transform_covariant (
- Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const typename Mapping<dim>::InternalDataBase &mapping_data) const
{
const typename MappingQ1<dim>::InternalData *q1_data =
template <int dim>
void
MappingQ<dim>::transform_contravariant (
- Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const typename Mapping<dim>::InternalDataBase &mapping_data) const
{
const typename MappingQ1<dim>::InternalData *q1_data =
template <int dim>
void
MappingQ1<dim>::transform_covariant (
- Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const typename Mapping<dim>::InternalDataBase &mapping_data) const
{
const InternalData *data_ptr = dynamic_cast<const InternalData *> (&mapping_data);
template <int dim>
void
MappingQ1<dim>::transform_contravariant (
- Tensor<1,dim>* begin,
- const Tensor<1,dim>* end,
- const Tensor<1,dim>* src,
+ typename std::vector<Tensor<1,dim> >::iterator begin,
+ typename std::vector<Tensor<1,dim> >::const_iterator end,
+ typename std::vector<Tensor<1,dim> >::const_iterator src,
const typename Mapping<dim>::InternalDataBase &mapping_data) const
{
const InternalData* data_ptr = dynamic_cast<const InternalData *> (&mapping_data);