* namespace is to work around
* bugs in some older compilers.
*/
- SymmetricTensor (const Number (&array) [internal::SymmetricTensorAccessors::StorageType<rank,dim,Number>::n_independent_components]);
+ SymmetricTensor (const Number (&array) [n_independent_components]);
/**
* Assignment operator.
template <int rank, int dim, typename Number>
inline
-SymmetricTensor<rank,dim,Number>::SymmetricTensor (const Number (&array) [internal::SymmetricTensorAccessors::StorageType<rank,dim,Number>::n_independent_components])
+SymmetricTensor<rank,dim,Number>::SymmetricTensor (const Number (&array) [n_independent_components])
:
data (array)
{}
TableBase<N,T>& operator = (const TableBase<N,T2> &src);
/**
- * Test for equality of two tables.
+ * Test for equality of two tables.
*/
bool operator == (const TableBase<N,T> & T2) const;
* This version of the function
* only allows read access.
*/
- internal::TableBaseAccessors::Accessor<2,T,true,1>
+ dealii::internal::TableBaseAccessors::Accessor<2,T,true,1>
operator [] (const unsigned int i) const;
/**
* This version of the function
* allows read-write access.
*/
- internal::TableBaseAccessors::Accessor<2,T,false,1>
+ dealii::internal::TableBaseAccessors::Accessor<2,T,false,1>
operator [] (const unsigned int i);
/**
* This version of the function
* only allows read access.
*/
- internal::TableBaseAccessors::Accessor<3,T,true,2>
+ dealii::internal::TableBaseAccessors::Accessor<3,T,true,2>
operator [] (const unsigned int i) const;
/**
* This version of the function
* allows read-write access.
*/
- internal::TableBaseAccessors::Accessor<3,T,false,2>
+ dealii::internal::TableBaseAccessors::Accessor<3,T,false,2>
operator [] (const unsigned int i);
/**
* only allows read access.
*/
typename std::vector<T>::const_reference operator () (const unsigned int i,
- const unsigned int j,
- const unsigned int k) const;
+ const unsigned int j,
+ const unsigned int k) const;
/**
* allows read-write access.
*/
typename std::vector<T>::reference operator () (const unsigned int i,
- const unsigned int j,
- const unsigned int k);
+ const unsigned int j,
+ const unsigned int k);
/**
* Make the corresponding
* This version of the function
* only allows read access.
*/
- internal::TableBaseAccessors::Accessor<4,T,true,3>
+ dealii::internal::TableBaseAccessors::Accessor<4,T,true,3>
operator [] (const unsigned int i) const;
/**
* This version of the function
* allows read-write access.
*/
- internal::TableBaseAccessors::Accessor<4,T,false,3>
+ dealii::internal::TableBaseAccessors::Accessor<4,T,false,3>
operator [] (const unsigned int i);
/**
* only allows read access.
*/
typename std::vector<T>::const_reference operator () (const unsigned int i,
- const unsigned int j,
- const unsigned int k,
- const unsigned int l) const;
+ const unsigned int j,
+ const unsigned int k,
+ const unsigned int l) const;
/**
* allows read-write access.
*/
typename std::vector<T>::reference operator () (const unsigned int i,
- const unsigned int j,
- const unsigned int k,
- const unsigned int l);
+ const unsigned int j,
+ const unsigned int k,
+ const unsigned int l);
/**
* Make the corresponding
* This version of the function
* only allows read access.
*/
- internal::TableBaseAccessors::Accessor<5,T,true,4>
+ dealii::internal::TableBaseAccessors::Accessor<5,T,true,4>
operator [] (const unsigned int i) const;
/**
* This version of the function
* allows read-write access.
*/
- internal::TableBaseAccessors::Accessor<5,T,false,4>
+ dealii::internal::TableBaseAccessors::Accessor<5,T,false,4>
operator [] (const unsigned int i);
/**
* only allows read access.
*/
typename std::vector<T>::const_reference operator () (const unsigned int i,
- const unsigned int j,
- const unsigned int k,
- const unsigned int l,
- const unsigned int m) const;
+ const unsigned int j,
+ const unsigned int k,
+ const unsigned int l,
+ const unsigned int m) const;
/**
* Direct access to one element
* allows read-write access.
*/
typename std::vector<T>::reference operator () (const unsigned int i,
- const unsigned int j,
- const unsigned int k,
- const unsigned int l,
- const unsigned int m);
+ const unsigned int j,
+ const unsigned int k,
+ const unsigned int l,
+ const unsigned int m);
/**
* Make the corresponding
* This version of the function
* only allows read access.
*/
- internal::TableBaseAccessors::Accessor<6,T,true,5>
+ dealii::internal::TableBaseAccessors::Accessor<6,T,true,5>
operator [] (const unsigned int i) const;
/**
* This version of the function
* allows read-write access.
*/
- internal::TableBaseAccessors::Accessor<6,T,false,5>
+ dealii::internal::TableBaseAccessors::Accessor<6,T,false,5>
operator [] (const unsigned int i);
/**
* only allows read access.
*/
typename std::vector<T>::const_reference operator () (const unsigned int i,
- const unsigned int j,
- const unsigned int k,
- const unsigned int l,
- const unsigned int m,
- const unsigned int n) const;
+ const unsigned int j,
+ const unsigned int k,
+ const unsigned int l,
+ const unsigned int m,
+ const unsigned int n) const;
/**
* Direct access to one element
* allows read-write access.
*/
typename std::vector<T>::reference operator () (const unsigned int i,
- const unsigned int j,
- const unsigned int k,
- const unsigned int l,
- const unsigned int m,
- const unsigned int n);
+ const unsigned int j,
+ const unsigned int k,
+ const unsigned int l,
+ const unsigned int m,
+ const unsigned int n);
/**
* Make the corresponding
* This version of the function
* only allows read access.
*/
- internal::TableBaseAccessors::Accessor<7,T,true,6>
+ dealii::internal::TableBaseAccessors::Accessor<7,T,true,6>
operator [] (const unsigned int i) const;
/**
* This version of the function
* allows read-write access.
*/
- internal::TableBaseAccessors::Accessor<7,T,false,6>
+ dealii::internal::TableBaseAccessors::Accessor<7,T,false,6>
operator [] (const unsigned int i);
/**
* only allows read access.
*/
typename std::vector<T>::const_reference operator () (const unsigned int i,
- const unsigned int j,
- const unsigned int k,
- const unsigned int l,
- const unsigned int m,
- const unsigned int n,
- const unsigned int o) const;
+ const unsigned int j,
+ const unsigned int k,
+ const unsigned int l,
+ const unsigned int m,
+ const unsigned int n,
+ const unsigned int o) const;
/**
* Direct access to one element
* allows read-write access.
*/
typename std::vector<T>::reference operator () (const unsigned int i,
- const unsigned int j,
- const unsigned int k,
- const unsigned int l,
- const unsigned int m,
- const unsigned int n,
- const unsigned int o);
+ const unsigned int j,
+ const unsigned int k,
+ const unsigned int l,
+ const unsigned int m,
+ const unsigned int n,
+ const unsigned int o);
/**
* Make the corresponding
* only allows read access.
*/
typename std::vector<T>::const_reference operator () (const unsigned int i,
- const unsigned int j) const;
+ const unsigned int j) const;
/**
* Direct access to one element
* allows read-write access.
*/
typename std::vector<T>::reference operator () (const unsigned int i,
- const unsigned int j);
+ const unsigned int j);
/**
* Number of rows. This function
* then called <tt>vector2d</tt>.
*/
typename std::vector<T>::reference el (const unsigned int i,
- const unsigned int j);
+ const unsigned int j);
/**
* Return the value of the
* then called <tt>vector2d</tt>.
*/
typename std::vector<T>::const_reference el (const unsigned int i,
- const unsigned int j) const;
+ const unsigned int j) const;
};
template <typename T>
inline
-internal::TableBaseAccessors::Accessor<2,T,true,1>
+dealii::internal::TableBaseAccessors::Accessor<2,T,true,1>
Table<2,T>::operator [] (const unsigned int i) const
{
Assert (i < this->table_size[0],
ExcIndexRange (i, 0, this->table_size[0]));
- return internal::TableBaseAccessors::Accessor<2,T,true,1>(*this,
- this->values.begin()+i*n_cols());
+ return dealii::internal::TableBaseAccessors::Accessor<2,T,true,1>(*this,
+ this->values.begin()+i*n_cols());
}
template <typename T>
inline
-internal::TableBaseAccessors::Accessor<2,T,false,1>
+dealii::internal::TableBaseAccessors::Accessor<2,T,false,1>
Table<2,T>::operator [] (const unsigned int i)
{
Assert (i < this->table_size[0],
ExcIndexRange (i, 0, this->table_size[0]));
- return internal::TableBaseAccessors::Accessor<2,T,false,1>(*this,
- this->values.begin()+i*n_cols());
+ return dealii::internal::TableBaseAccessors::Accessor<2,T,false,1>(*this,
+ this->values.begin()+i*n_cols());
}
template <typename T>
inline
-internal::TableBaseAccessors::Accessor<3,T,true,2>
+dealii::internal::TableBaseAccessors::Accessor<3,T,true,2>
Table<3,T>::operator [] (const unsigned int i) const
{
Assert (i < this->table_size[0],
ExcIndexRange (i, 0, this->table_size[0]));
const unsigned int subobject_size = this->table_size[1] *
this->table_size[2];
- return (internal::TableBaseAccessors::Accessor<3,T,true,2>
+ return (dealii::internal::TableBaseAccessors::Accessor<3,T,true,2>
(*this,
this->values.begin() + i*subobject_size));
}
template <typename T>
inline
-internal::TableBaseAccessors::Accessor<3,T,false,2>
+dealii::internal::TableBaseAccessors::Accessor<3,T,false,2>
Table<3,T>::operator [] (const unsigned int i)
{
Assert (i < this->table_size[0],
ExcIndexRange (i, 0, this->table_size[0]));
const unsigned int subobject_size = this->table_size[1] *
this->table_size[2];
- return (internal::TableBaseAccessors::Accessor<3,T,false,2>
+ return (dealii::internal::TableBaseAccessors::Accessor<3,T,false,2>
(*this,
this->values.begin() + i*subobject_size));
}
Assert (k < this->table_size[2],
ExcIndexRange (k, 0, this->table_size[2]));
return this->values[(i*this->table_size[1]+j)
- *this->table_size[2] + k];
+ *this->table_size[2] + k];
}
Assert (k < this->table_size[2],
ExcIndexRange (k, 0, this->table_size[2]));
return this->values[(i*this->table_size[1]+j)
- *this->table_size[2] + k];
+ *this->table_size[2] + k];
}
template <typename T>
inline
-internal::TableBaseAccessors::Accessor<4,T,true,3>
+dealii::internal::TableBaseAccessors::Accessor<4,T,true,3>
Table<4,T>::operator [] (const unsigned int i) const
{
Assert (i < this->table_size[0],
const unsigned int subobject_size = this->table_size[1] *
this->table_size[2] *
this->table_size[3];
- return (internal::TableBaseAccessors::Accessor<4,T,true,3>
+ return (dealii::internal::TableBaseAccessors::Accessor<4,T,true,3>
(*this,
this->values.begin() + i*subobject_size));
}
template <typename T>
inline
-internal::TableBaseAccessors::Accessor<4,T,false,3>
+dealii::internal::TableBaseAccessors::Accessor<4,T,false,3>
Table<4,T>::operator [] (const unsigned int i)
{
Assert (i < this->table_size[0],
const unsigned int subobject_size = this->table_size[1] *
this->table_size[2] *
this->table_size[3];
- return (internal::TableBaseAccessors::Accessor<4,T,false,3>
+ return (dealii::internal::TableBaseAccessors::Accessor<4,T,false,3>
(*this,
this->values.begin() + i*subobject_size));
}
Assert (l < this->table_size[3],
ExcIndexRange (l, 0, this->table_size[3]));
return this->values[((i*this->table_size[1]+j)
- *this->table_size[2] + k)
- *this->table_size[3] + l];
+ *this->table_size[2] + k)
+ *this->table_size[3] + l];
}
Assert (l < this->table_size[3],
ExcIndexRange (l, 0, this->table_size[3]));
return this->values[((i*this->table_size[1]+j)
- *this->table_size[2] + k)
- *this->table_size[3] + l];
+ *this->table_size[2] + k)
+ *this->table_size[3] + l];
}
template <typename T>
inline
-internal::TableBaseAccessors::Accessor<5,T,true,4>
+dealii::internal::TableBaseAccessors::Accessor<5,T,true,4>
Table<5,T>::operator [] (const unsigned int i) const
{
Assert (i < this->table_size[0],
this->table_size[2] *
this->table_size[3] *
this->table_size[4];
- return (internal::TableBaseAccessors::Accessor<5,T,true,4>
+ return (dealii::internal::TableBaseAccessors::Accessor<5,T,true,4>
(*this,
this->values.begin() + i*subobject_size));
}
template <typename T>
inline
-internal::TableBaseAccessors::Accessor<5,T,false,4>
+dealii::internal::TableBaseAccessors::Accessor<5,T,false,4>
Table<5,T>::operator [] (const unsigned int i)
{
Assert (i < this->table_size[0],
this->table_size[2] *
this->table_size[3] *
this->table_size[4];
- return (internal::TableBaseAccessors::Accessor<5,T,false,4>
+ return (dealii::internal::TableBaseAccessors::Accessor<5,T,false,4>
(*this,
this->values.begin() + i*subobject_size));
}
Assert (m < this->table_size[4],
ExcIndexRange (m, 0, this->table_size[4]));
return this->values[(((i*this->table_size[1]+j)
- *this->table_size[2] + k)
- *this->table_size[3] + l)
- *this->table_size[4] + m];
+ *this->table_size[2] + k)
+ *this->table_size[3] + l)
+ *this->table_size[4] + m];
}
Assert (m < this->table_size[4],
ExcIndexRange (m, 0, this->table_size[4]));
return this->values[(((i*this->table_size[1]+j)
- *this->table_size[2] + k)
- *this->table_size[3] + l)
- *this->table_size[4] + m];
+ *this->table_size[2] + k)
+ *this->table_size[3] + l)
+ *this->table_size[4] + m];
}
template <typename T>
inline
-internal::TableBaseAccessors::Accessor<6,T,true,5>
+dealii::internal::TableBaseAccessors::Accessor<6,T,true,5>
Table<6,T>::operator [] (const unsigned int i) const
{
Assert (i < this->table_size[0],
this->table_size[3] *
this->table_size[4] *
this->table_size[5];
- return (internal::TableBaseAccessors::Accessor<6,T,true,5>
+ return (dealii::internal::TableBaseAccessors::Accessor<6,T,true,5>
(*this,
this->values.begin() + i*subobject_size));
}
template <typename T>
inline
-internal::TableBaseAccessors::Accessor<6,T,false,5>
+dealii::internal::TableBaseAccessors::Accessor<6,T,false,5>
Table<6,T>::operator [] (const unsigned int i)
{
Assert (i < this->table_size[0],
this->table_size[3] *
this->table_size[4] *
this->table_size[5];
- return (internal::TableBaseAccessors::Accessor<6,T,false,5>
+ return (dealii::internal::TableBaseAccessors::Accessor<6,T,false,5>
(*this,
this->values.begin() + i*subobject_size));
}
Assert (n < this->table_size[5],
ExcIndexRange (n, 0, this->table_size[5]));
return this->values[((((i*this->table_size[1]+j)
- *this->table_size[2] + k)
- *this->table_size[3] + l)
- *this->table_size[4] + m)
- *this->table_size[5] + n];
+ *this->table_size[2] + k)
+ *this->table_size[3] + l)
+ *this->table_size[4] + m)
+ *this->table_size[5] + n];
}
Assert (n < this->table_size[5],
ExcIndexRange (n, 0, this->table_size[5]));
return this->values[((((i*this->table_size[1]+j)
- *this->table_size[2] + k)
- *this->table_size[3] + l)
- *this->table_size[4] + m)
- *this->table_size[5] + n];
+ *this->table_size[2] + k)
+ *this->table_size[3] + l)
+ *this->table_size[4] + m)
+ *this->table_size[5] + n];
}
template <typename T>
inline
-internal::TableBaseAccessors::Accessor<7,T,true,6>
+dealii::internal::TableBaseAccessors::Accessor<7,T,true,6>
Table<7,T>::operator [] (const unsigned int i) const
{
Assert (i < this->table_size[0],
this->table_size[4] *
this->table_size[5] *
this->table_size[6];
- return (internal::TableBaseAccessors::Accessor<7,T,true,6>
+ return (dealii::internal::TableBaseAccessors::Accessor<7,T,true,6>
(*this,
this->values.begin() + i*subobject_size));
}
template <typename T>
inline
-internal::TableBaseAccessors::Accessor<7,T,false,6>
+dealii::internal::TableBaseAccessors::Accessor<7,T,false,6>
Table<7,T>::operator [] (const unsigned int i)
{
Assert (i < this->table_size[0],
this->table_size[4] *
this->table_size[5] *
this->table_size[6];
- return (internal::TableBaseAccessors::Accessor<7,T,false,6>
+ return (dealii::internal::TableBaseAccessors::Accessor<7,T,false,6>
(*this,
this->values.begin() + i*subobject_size));
}
Assert (o < this->table_size[6],
ExcIndexRange (o, 0, this->table_size[6]));
return this->values[(((((i*this->table_size[1]+j)
- *this->table_size[2] + k)
- *this->table_size[3] + l)
- *this->table_size[4] + m)
- *this->table_size[5] + n)
- *this->table_size[6] + o];
+ *this->table_size[2] + k)
+ *this->table_size[3] + l)
+ *this->table_size[4] + m)
+ *this->table_size[5] + n)
+ *this->table_size[6] + o];
}
Assert (o < this->table_size[5],
ExcIndexRange (o, 0, this->table_size[6]));
return this->values[(((((i*this->table_size[1]+j)
- *this->table_size[2] + k)
- *this->table_size[3] + l)
- *this->table_size[4] + m)
- *this->table_size[5] + n)
- *this->table_size[6] + o];
+ *this->table_size[2] + k)
+ *this->table_size[3] + l)
+ *this->table_size[4] + m)
+ *this->table_size[5] + n)
+ *this->table_size[6] + o];
}
* @author Wolfgang Bangerth, 1998, 2006, 2008
*/
template <int structdim, class DH>
-class DoFAccessor : public internal::DoFAccessor::Inheritance<structdim, DH::dimension, DH::space_dimension>::BaseClass
+class DoFAccessor : public dealii::internal::DoFAccessor::Inheritance<structdim, DH::dimension, DH::space_dimension>::BaseClass
{
public:
* simpler.
*/
typedef
- typename internal::DoFAccessor::Inheritance<structdim, dimension, space_dimension>::BaseClass
+ typename dealii::internal::DoFAccessor::Inheritance<structdim, dimension, space_dimension>::BaseClass
BaseClass;
/**
* Pointer to the @p ith line
* bounding this object.
*/
- typename internal::DoFHandler::Iterators<DH>::line_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::line_iterator
line (const unsigned int i) const;
/**
* Pointer to the @p ith quad
* bounding this object.
*/
- typename internal::DoFHandler::Iterators<DH>::quad_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::quad_iterator
quad (const unsigned int i) const;
/**
template <int dim, int spacedim> friend class DoFHandler;
template <int dim, int spacedim> friend class hp::DoFHandler;
- friend struct internal::DoFHandler::Policy::Implementation;
- friend struct internal::DoFHandler::Implementation;
- friend struct internal::hp::DoFHandler::Implementation;
- friend struct internal::DoFCellAccessor::Implementation;
+ friend struct dealii::internal::DoFHandler::Policy::Implementation;
+ friend struct dealii::internal::DoFHandler::Implementation;
+ friend struct dealii::internal::hp::DoFHandler::Implementation;
+ friend struct dealii::internal::DoFCellAccessor::Implementation;
};
* Pointer to the @p ith line
* bounding this object.
*/
- typename internal::DoFHandler::Iterators<DH<1,spacedim> >::line_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH<1,spacedim> >::line_iterator
line (const unsigned int i) const;
/**
* Pointer to the @p ith quad
* bounding this object.
*/
- typename internal::DoFHandler::Iterators<DH<1,spacedim> >::quad_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH<1,spacedim> >::quad_iterator
quad (const unsigned int i) const;
/**
template <int, int> friend class DoFHandler;
template <int, int> friend class hp::DoFHandler;
- friend struct internal::DoFHandler::Policy::Implementation;
- friend struct internal::DoFHandler::Implementation;
- friend struct internal::hp::DoFHandler::Implementation;
- friend struct internal::DoFCellAccessor::Implementation;
+ friend struct dealii::internal::DoFHandler::Policy::Implementation;
+ friend struct dealii::internal::DoFHandler::Implementation;
+ friend struct dealii::internal::hp::DoFHandler::Implementation;
+ friend struct dealii::internal::DoFCellAccessor::Implementation;
};
* without access to the DoF
* data.
*/
- typename internal::DoFHandler::Iterators<DH>::cell_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::cell_iterator
parent () const;
/**
* without access to the DoF
* data.
*/
- typename internal::DoFHandler::Iterators<DH>::cell_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::cell_iterator
neighbor (const unsigned int) const;
/**
* without access to the DoF
* data.
*/
- typename internal::DoFHandler::Iterators<DH>::cell_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::cell_iterator
child (const unsigned int) const;
/**
* 1D, and maps to DoFAccessor::line
* in 2D.
*/
- typename internal::DoFHandler::Iterators<DH>::face_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::face_iterator
face (const unsigned int i) const;
/**
* access to the triangulation
* data).
*/
- typename internal::DoFHandler::Iterators<DH>::cell_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::cell_iterator
neighbor_child_on_subface (const unsigned int face_no,
const unsigned int subface_no) const;
* function
*/
template <int dim, int spacedim> friend class DoFHandler;
- friend struct internal::DoFCellAccessor::Implementation;
+ friend struct dealii::internal::DoFCellAccessor::Implementation;
};
const int index,
const DH *dof_handler)
:
- internal::DoFAccessor::Inheritance<structdim,DH::dimension,
- DH::space_dimension>::BaseClass (tria,
- level,
- index),
+ dealii::internal::DoFAccessor::Inheritance<structdim,DH::dimension,
+ DH::space_dimension>::BaseClass (tria,
+ level,
+ index),
dof_handler(const_cast<DH*>(dof_handler))
{}
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- internal::int2type<1>)
+ dealii::internal::int2type<1>)
{
return dof_handler.levels[obj_level]->lines.
get_dof_index (dof_handler,
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- internal::int2type<1>,
+ dealii::internal::int2type<1>,
const unsigned int global_index)
{
dof_handler.levels[obj_level]->lines.
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- internal::int2type<1>)
+ dealii::internal::int2type<1>)
{
// faces have no levels
Assert (obj_level == 0, ExcInternalError());
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- internal::int2type<1>,
+ dealii::internal::int2type<1>,
const unsigned int global_index)
{
// faces have no levels
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- internal::int2type<2>)
+ dealii::internal::int2type<2>)
{
return dof_handler.levels[obj_level]->quads.
get_dof_index (dof_handler,
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- internal::int2type<2>,
+ dealii::internal::int2type<2>,
const unsigned int global_index)
{
dof_handler.levels[obj_level]->quads.
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- internal::int2type<1>)
+ dealii::internal::int2type<1>)
{
// faces have no levels
Assert (obj_level == 0, ExcInternalError());
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- internal::int2type<1>,
+ dealii::internal::int2type<1>,
const unsigned int global_index)
{
// faces have no levels
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- internal::int2type<2>)
+ dealii::internal::int2type<2>)
{
// faces have no levels
Assert (obj_level == 0, ExcInternalError());
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- internal::int2type<2>,
+ dealii::internal::int2type<2>,
const unsigned int global_index)
{
// faces have no levels
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- internal::int2type<3>)
+ dealii::internal::int2type<3>)
{
return dof_handler.levels[obj_level]->hexes.
get_dof_index (dof_handler,
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- internal::int2type<3>,
+ dealii::internal::int2type<3>,
const unsigned int global_index)
{
dof_handler.levels[obj_level]->hexes.
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const internal::int2type<1> &)
+ const dealii::internal::int2type<1> &)
{
return dof_handler.levels[obj_level]->lines.
get_dof_index (dof_handler,
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const internal::int2type<1> &,
+ const dealii::internal::int2type<1> &,
const unsigned int global_index)
{
dof_handler.levels[obj_level]->lines.
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const internal::int2type<1> &)
+ const dealii::internal::int2type<1> &)
{
return dof_handler.faces->lines.
get_dof_index (dof_handler,
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const internal::int2type<1> &,
+ const dealii::internal::int2type<1> &,
const unsigned int global_index)
{
dof_handler.faces->lines.
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const internal::int2type<2> &)
+ const dealii::internal::int2type<2> &)
{
return dof_handler.levels[obj_level]->quads.
get_dof_index (dof_handler,
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const internal::int2type<2> &,
+ const dealii::internal::int2type<2> &,
const unsigned int global_index)
{
dof_handler.levels[obj_level]->quads.
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const internal::int2type<1> &)
+ const dealii::internal::int2type<1> &)
{
return dof_handler.faces->lines.
get_dof_index (dof_handler,
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const internal::int2type<1> &,
+ const dealii::internal::int2type<1> &,
const unsigned int global_index)
{
dof_handler.faces->lines.
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const internal::int2type<2> &)
+ const dealii::internal::int2type<2> &)
{
return dof_handler.faces->quads.
get_dof_index (dof_handler,
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const internal::int2type<2> &,
+ const dealii::internal::int2type<2> &,
const unsigned int global_index)
{
dof_handler.faces->quads.
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const internal::int2type<3> &)
+ const dealii::internal::int2type<3> &)
{
return dof_handler.levels[obj_level]->hexes.
get_dof_index (dof_handler,
const unsigned int obj_index,
const unsigned int fe_index,
const unsigned int local_index,
- const internal::int2type<3> &,
+ const dealii::internal::int2type<3> &,
const unsigned int global_index)
{
dof_handler.levels[obj_level]->hexes.
const unsigned int,
const unsigned int,
const unsigned int fe_index,
- const internal::int2type<structdim> &)
+ const dealii::internal::int2type<structdim> &)
{
return (fe_index == 0);
}
n_active_fe_indices (const dealii::DoFHandler<dim,spacedim> &dof_handler,
const unsigned int obj_level,
const unsigned int obj_index,
- const internal::int2type<structdim> &)
+ const dealii::internal::int2type<structdim> &)
{
// check that the object we look
// at is in fact active. the
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int n,
- const internal::int2type<structdim> &)
+ const dealii::internal::int2type<structdim> &)
{
// check that the object we look
// at is in fact active. the
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int fe_index,
- const internal::int2type<1> &)
+ const dealii::internal::int2type<1> &)
{
return dof_handler.levels[obj_level]->lines.fe_index_is_active(dof_handler,
obj_index,
n_active_fe_indices (const dealii::hp::DoFHandler<1,spacedim> &dof_handler,
const unsigned int obj_level,
const unsigned int obj_index,
- const internal::int2type<1> &)
+ const dealii::internal::int2type<1> &)
{
return dof_handler.levels[obj_level]->lines.n_active_fe_indices (dof_handler,
obj_index);
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int n,
- const internal::int2type<1> &)
+ const dealii::internal::int2type<1> &)
{
return dof_handler.levels[obj_level]->lines.nth_active_fe_index (dof_handler,
obj_level,
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int fe_index,
- const internal::int2type<1> &)
+ const dealii::internal::int2type<1> &)
{
return dof_handler.faces->lines.fe_index_is_active(dof_handler,
obj_index,
n_active_fe_indices (const dealii::hp::DoFHandler<2,spacedim> &dof_handler,
const unsigned int ,
const unsigned int obj_index,
- const internal::int2type<1> &)
+ const dealii::internal::int2type<1> &)
{
return dof_handler.faces->lines.n_active_fe_indices (dof_handler,
obj_index);
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int n,
- const internal::int2type<1> &)
+ const dealii::internal::int2type<1> &)
{
return dof_handler.faces->lines.nth_active_fe_index (dof_handler,
obj_level,
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int fe_index,
- const internal::int2type<2> &)
+ const dealii::internal::int2type<2> &)
{
return dof_handler.levels[obj_level]->quads.fe_index_is_active(dof_handler,
obj_index,
n_active_fe_indices (const dealii::hp::DoFHandler<2,spacedim> &dof_handler,
const unsigned int obj_level,
const unsigned int obj_index,
- const internal::int2type<2> &)
+ const dealii::internal::int2type<2> &)
{
return dof_handler.levels[obj_level]->quads.n_active_fe_indices (dof_handler,
obj_index);
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int n,
- const internal::int2type<2> &)
+ const dealii::internal::int2type<2> &)
{
return dof_handler.levels[obj_level]->quads.nth_active_fe_index (dof_handler,
obj_level,
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int fe_index,
- const internal::int2type<1> &)
+ const dealii::internal::int2type<1> &)
{
return dof_handler.faces->lines.fe_index_is_active(dof_handler,
obj_index,
n_active_fe_indices (const dealii::hp::DoFHandler<3,spacedim> &dof_handler,
const unsigned int,
const unsigned int obj_index,
- const internal::int2type<1> &)
+ const dealii::internal::int2type<1> &)
{
return dof_handler.faces->lines.n_active_fe_indices (dof_handler,
obj_index);
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int n,
- const internal::int2type<1> &)
+ const dealii::internal::int2type<1> &)
{
return dof_handler.faces->lines.nth_active_fe_index (dof_handler,
obj_level,
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int fe_index,
- const internal::int2type<2> &)
+ const dealii::internal::int2type<2> &)
{
return dof_handler.faces->quads.fe_index_is_active(dof_handler,
obj_index,
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int fe_index,
- const internal::int2type<3> &)
+ const dealii::internal::int2type<3> &)
{
return dof_handler.levels[obj_level]->hexes.fe_index_is_active(dof_handler,
obj_index,
n_active_fe_indices (const dealii::hp::DoFHandler<3,spacedim> &dof_handler,
const unsigned int ,
const unsigned int obj_index,
- const internal::int2type<2> &)
+ const dealii::internal::int2type<2> &)
{
return dof_handler.faces->quads.n_active_fe_indices (dof_handler,
obj_index);
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int n,
- const internal::int2type<2> &)
+ const dealii::internal::int2type<2> &)
{
return dof_handler.faces->quads.nth_active_fe_index (dof_handler,
obj_level,
n_active_fe_indices (const dealii::hp::DoFHandler<3,spacedim> &dof_handler,
const unsigned int obj_level,
const unsigned int obj_index,
- const internal::int2type<3> &)
+ const dealii::internal::int2type<3> &)
{
return dof_handler.levels[obj_level]->hexes.n_active_fe_indices (dof_handler,
obj_index);
const unsigned int obj_level,
const unsigned int obj_index,
const unsigned int n,
- const internal::int2type<3> &)
+ const dealii::internal::int2type<3> &)
{
return dof_handler.levels[obj_level]->hexes.nth_active_fe_index (dof_handler,
obj_level,
const unsigned int fe_index) const
{
// access the respective DoF
- return internal::DoFAccessor::Implementation::get_dof_index (*this->dof_handler,
- this->level(),
- this->present_index,
- fe_index,
- i,
- internal::int2type<dim>());
+ return dealii::internal::DoFAccessor::Implementation::get_dof_index (*this->dof_handler,
+ this->level(),
+ this->present_index,
+ fe_index,
+ i,
+ dealii::internal::int2type<dim>());
}
const unsigned int fe_index) const
{
// access the respective DoF
- internal::DoFAccessor::Implementation::set_dof_index (*this->dof_handler,
- this->level(),
- this->present_index,
- fe_index,
- i,
- internal::int2type<dim>(),
- index);
+ dealii::internal::DoFAccessor::Implementation::set_dof_index (*this->dof_handler,
+ this->level(),
+ this->present_index,
+ fe_index,
+ i,
+ dealii::internal::int2type<dim>(),
+ index);
}
{
// access the respective DoF
return
- internal::DoFAccessor::Implementation::
+ dealii::internal::DoFAccessor::Implementation::
n_active_fe_indices (*this->dof_handler,
- this->level(),
- this->present_index,
- internal::int2type<dim>());
+ this->level(),
+ this->present_index,
+ dealii::internal::int2type<dim>());
}
{
// access the respective DoF
return
- internal::DoFAccessor::Implementation::
+ dealii::internal::DoFAccessor::Implementation::
nth_active_fe_index (*this->dof_handler,
- this->level(),
- this->present_index,
- n,
- internal::int2type<dim>());
+ this->level(),
+ this->present_index,
+ n,
+ dealii::internal::int2type<dim>());
}
{
// access the respective DoF
return
- internal::DoFAccessor::Implementation::
+ dealii::internal::DoFAccessor::Implementation::
fe_index_is_active (*this->dof_handler,
this->level(),
this->present_index,
fe_index,
- internal::int2type<dim>());
+ dealii::internal::int2type<dim>());
}
const unsigned int fe_index) const
{
return
- internal::DoFAccessor::Implementation::get_vertex_dof_index
+ dealii::internal::DoFAccessor::Implementation::get_vertex_dof_index
(*this->dof_handler,
this->vertex_index(vertex),
fe_index,
const unsigned int index,
const unsigned int fe_index) const
{
- internal::DoFAccessor::Implementation::set_vertex_dof_index
+ dealii::internal::DoFAccessor::Implementation::set_vertex_dof_index
(*this->dof_handler,
this->vertex_index(vertex),
fe_index,
Assert (fe_index_is_active (fe_index) == true,
ExcMessage ("This function can only be called for active fe indices"));
- return internal::DoFAccessor::get_fe (this->dof_handler->get_fe(), fe_index);
+ return dealii::internal::DoFAccessor::get_fe (this->dof_handler->get_fe(), fe_index);
}
ExcInternalError());
// now do the actual work
- internal::DoFAccessor::get_dof_indices (*this, dof_indices, fe_index);
+ dealii::internal::DoFAccessor::get_dof_indices (*this, dof_indices, fe_index);
}
template <int structdim, class DH>
inline
-typename internal::DoFHandler::Iterators<DH>::line_iterator
+typename dealii::internal::DoFHandler::Iterators<DH>::line_iterator
DoFAccessor<structdim,DH>::line (const unsigned int i) const
{
Assert (structdim > 1, ExcImpossibleInDim(structdim));
// checking of 'i' happens in
// line_index(i)
- return typename internal::DoFHandler::Iterators<DH>::line_iterator
+ return typename dealii::internal::DoFHandler::Iterators<DH>::line_iterator
(
this->tria,
0, // only sub-objects are allowed, which have no level
template <int structdim, class DH>
inline
-typename internal::DoFHandler::Iterators<DH>::quad_iterator
+typename dealii::internal::DoFHandler::Iterators<DH>::quad_iterator
DoFAccessor<structdim,DH>::quad (const unsigned int i) const
{
Assert (structdim > 2, ExcImpossibleInDim(structdim));
// checking of 'i' happens in
// quad_index(i)
- return typename internal::DoFHandler::Iterators<DH>::quad_iterator
+ return typename dealii::internal::DoFHandler::Iterators<DH>::quad_iterator
(
this->tria,
0, // only sub-objects are allowed, which have no level
{
for (unsigned int i=0; i<dof_indices.size(); ++i)
dof_indices[i]
- = internal::DoFAccessor::Implementation::
+ = dealii::internal::DoFAccessor::Implementation::
get_vertex_dof_index (*dof_handler,
this->global_vertex_index,
fe_index,
const unsigned int fe_index) const
{
Assert (vertex == 0, ExcIndexRange (vertex, 0, 1));
- return internal::DoFAccessor::Implementation::
+ return dealii::internal::DoFAccessor::Implementation::
get_vertex_dof_index (*dof_handler,
this->global_vertex_index,
fe_index,
// make sure we refer to class
// dealii::DoFCellAccessor, not
// namespace
- // internal::DoFCellAccessor
+ // dealii::internal::DoFCellAccessor
using dealii::DoFCellAccessor;
using dealii::DoFHandler;
unsigned int * dofs = &accessor.dof_handler->levels[accessor.level()]
->cell_dof_indices_cache[accessor.present_index * n_dofs];
- // distribute cell vector
+ // distribute cell vector
global_destination.add(n_dofs, dofs, local_source_begin);
}
//TODO[WB/MK]: This function could me made more efficient because it allocates memory, which could be avoided by passing in another argument as a scratch array. This should be fixed eventually
- // get indices of dofs
+ // get indices of dofs
std::vector<unsigned int> dofs (n_dofs);
accessor.get_dof_indices (dofs);
- // distribute cell vector
+ // distribute cell vector
global_destination.add (n_dofs, dofs.begin(), local_source_begin);
}
unsigned int * dofs = &accessor.dof_handler->levels[accessor.level()]
->cell_dof_indices_cache[accessor.present_index * n_dofs];
- // distribute cell vector
+ // distribute cell vector
constraints.distribute_local_to_global (local_source_begin, local_source_end,
dofs, global_destination);
}
//TODO[WB/MK]: This function could me made more efficient because it allocates memory, which could be avoided by passing in another argument as a scratch array. This should be fixed eventually
- // get indices of dofs
+ // get indices of dofs
std::vector<unsigned int> dofs (n_dofs);
accessor.get_dof_indices (dofs);
- // distribute cell vector
+ // distribute cell vector
constraints.distribute_local_to_global (local_source_begin, local_source_end,
dofs.begin(), global_destination);
}
unsigned int * dofs = &accessor.dof_handler->levels[accessor.level()]
->cell_dof_indices_cache[accessor.present_index * n_dofs];
- // distribute cell matrix
+ // distribute cell matrix
for (unsigned int i=0; i<n_dofs; ++i)
global_destination.add(dofs[i], n_dofs, dofs,
&local_source(i,0));
//TODO[WB/MK]: This function could me made more efficient because it allocates memory, which could be avoided by passing in another argument as a scratch array.
- // get indices of dofs
+ // get indices of dofs
std::vector<unsigned int> dofs (n_dofs);
accessor.get_dof_indices (dofs);
- // distribute cell matrix
+ // distribute cell matrix
global_destination.add(dofs,local_source);
}
unsigned int * dofs = &accessor.dof_handler->levels[accessor.level()]
->cell_dof_indices_cache[accessor.present_index * n_dofs];
- // distribute cell matrices
+ // distribute cell matrices
for (unsigned int i=0; i<n_dofs; ++i)
{
global_matrix.add(dofs[i], n_dofs, dofs, &local_matrix(i,0));
//TODO[WB/MK]: This function could me made more efficient because it allocates memory, which could be avoided by passing in another argument as a scratch array.
- // get indices of dofs
+ // get indices of dofs
std::vector<unsigned int> dofs (n_dofs);
accessor.get_dof_indices (dofs);
- // distribute cell matrix and vector
+ // distribute cell matrix and vector
global_matrix.add(dofs,local_matrix);
global_vector.add(dofs,local_vector);
}
template <class DH>
inline
-typename internal::DoFHandler::Iterators<DH>::cell_iterator
+typename dealii::internal::DoFHandler::Iterators<DH>::cell_iterator
DoFCellAccessor<DH>::neighbor (const unsigned int i) const
{
- typename internal::DoFHandler::Iterators<DH>::cell_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::cell_iterator
q (this->tria,
this->neighbor_level (i),
this->neighbor_index (i),
template <class DH>
inline
-typename internal::DoFHandler::Iterators<DH>::cell_iterator
+typename dealii::internal::DoFHandler::Iterators<DH>::cell_iterator
DoFCellAccessor<DH>::child (const unsigned int i) const
{
- typename internal::DoFHandler::Iterators<DH>::cell_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::cell_iterator
q (this->tria,
this->level()+1,
this->child_index (i),
template <class DH>
inline
-typename internal::DoFHandler::Iterators<DH>::cell_iterator
+typename dealii::internal::DoFHandler::Iterators<DH>::cell_iterator
DoFCellAccessor<DH>::parent () const
{
- typename internal::DoFHandler::Iterators<DH>::cell_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::cell_iterator
q (this->tria,
this->level() - 1,
this->parent_index (),
{
template <class DH>
inline
- typename internal::DoFHandler::Iterators<DH>::face_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::face_iterator
get_face (const dealii::DoFCellAccessor<DH> &cell,
const unsigned int i,
- const internal::int2type<1>)
+ const dealii::internal::int2type<1>)
{
dealii::DoFAccessor<0, DH>
a (&cell.get_triangulation(),
dealii::TriaAccessor<0, 1, DH::space_dimension>::interior_vertex)),
cell.vertex_index(i),
&cell.get_dof_handler());
- return typename internal::DoFHandler::Iterators<DH>::face_iterator(a);
+ return typename dealii::internal::DoFHandler::Iterators<DH>::face_iterator(a);
}
template <class DH>
inline
- typename internal::DoFHandler::Iterators<DH>::face_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::face_iterator
get_face (const dealii::DoFCellAccessor<DH> &cell,
const unsigned int i,
- const internal::int2type<2>)
+ const dealii::internal::int2type<2>)
{
return cell.line(i);
}
template <class DH>
inline
- typename internal::DoFHandler::Iterators<DH>::face_iterator
+ typename dealii::internal::DoFHandler::Iterators<DH>::face_iterator
get_face (const dealii::DoFCellAccessor<DH> &cell,
const unsigned int i,
- const internal::int2type<3>)
+ const dealii::internal::int2type<3>)
{
return cell.quad(i);
}
template <class DH>
-typename internal::DoFHandler::Iterators<DH>::face_iterator
+typename dealii::internal::DoFHandler::Iterators<DH>::face_iterator
DoFCellAccessor<DH>::face (const unsigned int i) const
{
Assert (i<GeometryInfo<dim>::faces_per_cell, ExcIndexRange (i, 0, GeometryInfo<dim>::faces_per_cell));
ExcMessage ("DoFHandler not initialized"));
const unsigned int dim = DH::dimension;
- return internal::DoFCellAccessor::get_face (*this, i, internal::int2type<dim>());
+ return dealii::internal::DoFCellAccessor::get_face (*this, i, dealii::internal::int2type<dim>());
}
ExcMessage ("Can't ask for DoF indices on artificial cells."));
AssertDimension (dof_indices.size(), this->get_fe().dofs_per_cell);
- internal::DoFCellAccessor::Implementation::get_dof_indices (*this, dof_indices);
+ dealii::internal::DoFCellAccessor::Implementation::get_dof_indices (*this, dof_indices);
}
ExcMessage ("Can't ask for DoF indices on artificial cells."));
AssertDimension (local_values.size(), this->get_fe().dofs_per_cell);
- internal::DoFCellAccessor::Implementation
+ dealii::internal::DoFCellAccessor::Implementation
::get_dof_values (*this, values, local_values.begin(), local_values.end());
}
{
Assert (this->is_artificial() == false,
ExcMessage ("Can't ask for DoF indices on artificial cells."));
- internal::DoFCellAccessor::Implementation
+ dealii::internal::DoFCellAccessor::Implementation
::get_dof_values (*this, values, local_values_begin, local_values_end);
}
{
Assert (this->is_artificial() == false,
ExcMessage ("Can't ask for DoF indices on artificial cells."));
- internal::DoFCellAccessor::Implementation
+ dealii::internal::DoFCellAccessor::Implementation
::get_dof_values (*this, constraints, values,
local_values_begin, local_values_end);
}
{
Assert (this->is_artificial() == false,
ExcMessage ("Can't ask for DoF indices on artificial cells."));
- internal::DoFCellAccessor::Implementation
+ dealii::internal::DoFCellAccessor::Implementation
::set_dof_values (*this, local_values, values);
}
const FiniteElement<DH::dimension,DH::space_dimension> &
DoFCellAccessor<DH>::get_fe () const
{
- return internal::DoFAccessor::get_fe (this->dof_handler->get_fe(), active_fe_index());
+ return dealii::internal::DoFAccessor::get_fe (this->dof_handler->get_fe(), active_fe_index());
}
unsigned int
DoFCellAccessor<DH>::active_fe_index () const
{
- return internal::DoFCellAccessor::Implementation::active_fe_index (*this);
+ return dealii::internal::DoFCellAccessor::Implementation::active_fe_index (*this);
}
void
DoFCellAccessor<DH>::set_active_fe_index (const unsigned int i)
{
- internal::DoFCellAccessor::Implementation::set_active_fe_index (*this, i);
+ dealii::internal::DoFCellAccessor::Implementation::set_active_fe_index (*this, i);
}
distribute_local_to_global (const Vector<number> &local_source,
OutputVector &global_destination) const
{
- internal::DoFCellAccessor::Implementation::
+ dealii::internal::DoFCellAccessor::Implementation::
distribute_local_to_global (*this, local_source.begin(),
local_source.end(), global_destination);
}
ForwardIterator local_source_end,
OutputVector &global_destination) const
{
- internal::DoFCellAccessor::Implementation::
+ dealii::internal::DoFCellAccessor::Implementation::
distribute_local_to_global (*this, local_source_begin,
local_source_end, global_destination);
}
ForwardIterator local_source_end,
OutputVector &global_destination) const
{
- internal::DoFCellAccessor::Implementation::
+ dealii::internal::DoFCellAccessor::Implementation::
distribute_local_to_global (*this, constraints, local_source_begin,
local_source_end, global_destination);
}
distribute_local_to_global (const FullMatrix<number> &local_source,
OutputMatrix &global_destination) const
{
- internal::DoFCellAccessor::Implementation::
+ dealii::internal::DoFCellAccessor::Implementation::
distribute_local_to_global (*this,local_source,global_destination);
}
OutputMatrix &global_matrix,
OutputVector &global_vector) const
{
- internal::DoFCellAccessor::Implementation::
+ dealii::internal::DoFCellAccessor::Implementation::
distribute_local_to_global (*this,local_matrix,local_vector,
global_matrix,global_vector);
}
* to the fact that indices in global vectors and matrices also refer to all
* degrees of freedom and some kind of condensation is needed to restrict the
* systems of equations to the unconstrained degrees of freedom only. The
- * actual layout of storage of the indices is described in the internal::DoFHandler::DoFLevel class
+ * actual layout of storage of the indices is described in the dealii::internal::DoFHandler::DoFLevel class
* documentation.
*
* The class offers iterators to traverse all cells, in much the same way as
template <int dim, int spacedim=dim>
class DoFHandler : public Subscriptor
{
- typedef internal::DoFHandler::Iterators<DoFHandler<dim,spacedim> > IteratorSelector;
+ typedef dealii::internal::DoFHandler::Iterators<DoFHandler<dim,spacedim> > IteratorSelector;
public:
typedef typename IteratorSelector::CellAccessor cell_accessor;
typedef typename IteratorSelector::FaceAccessor face_accessor;
*/
virtual void clear ();
- /**
- * Renumber degrees of freedom based on
- * a list of new dof numbers for all the
- * dofs.
- *
- * This function is called by
- * the functions in
- * DoFRenumbering function
- * after computing the ordering
- * of the degrees of freedom.
- * This function is called, for
- * example, by the functions in
- * the DoFRenumbering
- * namespace, but it can of
- * course also be called from
- * user code.
- *
- * @arg new_number This array
- * must have a size equal to
- * the number of degrees of
- * freedom owned by the current
- * processor, i.e. the size
- * must be equal to what
- * n_locally_owned_dofs()
- * returns. If only one
- * processor participates in
- * storing the current mesh,
- * then this equals the total
- * number of degrees of
- * freedom, i.e. the result of
- * n_dofs(). The contents of
- * this array are the new
- * global indices for each
- * freedom listed in the
- * IndexSet returned by
- * locally_owned_dofs(). In the
- * case of a sequential mesh
- * this means that the array is
- * a list of new indices for
- * each of the degrees of
- * freedom on the current
- * mesh. In the case that we
- * have a
- * parallel::distributed::Triangulation
- * underlying this DoFHandler
- * object, the array is a list
- * of new indices for all the
- * locally owned degrees of
- * freedom, enumerated in the
- * same order as the currently
- * locally owned DoFs. In other
- * words, assume that degree of
- * freedom <code>i</code> is
- * currently locally owned,
- * then
- * <code>new_numbers[locally_owned_dofs().index_within_set(i)]</code>
- * returns the new global DoF
- * index of
- * <code>i</code>. Since the
- * IndexSet of
- * locally_owned_dofs() is
- * complete in the sequential
- * case, the latter convention
- * for the content of the array
- * reduces to the former in the
- * case that only one processor
- * participates in the mesh.
- */
+ /**
+ * Renumber degrees of freedom based on
+ * a list of new dof numbers for all the
+ * dofs.
+ *
+ * This function is called by
+ * the functions in
+ * DoFRenumbering function
+ * after computing the ordering
+ * of the degrees of freedom.
+ * This function is called, for
+ * example, by the functions in
+ * the DoFRenumbering
+ * namespace, but it can of
+ * course also be called from
+ * user code.
+ *
+ * @arg new_number This array
+ * must have a size equal to
+ * the number of degrees of
+ * freedom owned by the current
+ * processor, i.e. the size
+ * must be equal to what
+ * n_locally_owned_dofs()
+ * returns. If only one
+ * processor participates in
+ * storing the current mesh,
+ * then this equals the total
+ * number of degrees of
+ * freedom, i.e. the result of
+ * n_dofs(). The contents of
+ * this array are the new
+ * global indices for each
+ * freedom listed in the
+ * IndexSet returned by
+ * locally_owned_dofs(). In the
+ * case of a sequential mesh
+ * this means that the array is
+ * a list of new indices for
+ * each of the degrees of
+ * freedom on the current
+ * mesh. In the case that we
+ * have a
+ * parallel::distributed::Triangulation
+ * underlying this DoFHandler
+ * object, the array is a list
+ * of new indices for all the
+ * locally owned degrees of
+ * freedom, enumerated in the
+ * same order as the currently
+ * locally owned DoFs. In other
+ * words, assume that degree of
+ * freedom <code>i</code> is
+ * currently locally owned,
+ * then
+ * <code>new_numbers[locally_owned_dofs().index_within_set(i)]</code>
+ * returns the new global DoF
+ * index of
+ * <code>i</code>. Since the
+ * IndexSet of
+ * locally_owned_dofs() is
+ * complete in the sequential
+ * case, the latter convention
+ * for the content of the array
+ * reduces to the former in the
+ * case that only one processor
+ * participates in the mesh.
+ */
void renumber_dofs (const std::vector<unsigned int> &new_numbers);
/**
* Return an iterator pointing to the last
* line of the level @p level, used or not.
- */
+ */
raw_line_iterator last_raw_line (const unsigned int level) const;
/**
* Return an iterator pointing to the last
* quad of the level @p level, used or not.
- */
+ */
raw_quad_iterator last_raw_quad (const unsigned int level) const;
/**
* Return an iterator pointing to the last
* hex of the level @p level, used or not.
- */
+ */
raw_hex_iterator
last_raw_hex (const unsigned int level) const;
* stream for the purpose of
* serialization.
*/
- template <class Archive>
- void save (Archive & ar, const unsigned int version) const;
+ template <class Archive>
+ void save (Archive & ar, const unsigned int version) const;
/**
* Read the data of this object from a
* stream for the purpose of
* serialization.
*/
- template <class Archive>
- void load (Archive & ar, const unsigned int version);
+ template <class Archive>
+ void load (Archive & ar, const unsigned int version);
- BOOST_SERIALIZATION_SPLIT_MEMBER()
+ BOOST_SERIALIZATION_SPLIT_MEMBER()
/**
* We are trying to renumber the
* of freedom should be distributed and
* renumbered.
*/
- std_cxx1x::shared_ptr<internal::DoFHandler::Policy::PolicyBase<dim,spacedim> > policy;
+ std_cxx1x::shared_ptr<dealii::internal::DoFHandler::Policy::PolicyBase<dim,spacedim> > policy;
/**
* A structure that contains all
* accessor function in this
* class that returns its value.
*/
- internal::DoFHandler::NumberCache number_cache;
+ dealii::internal::DoFHandler::NumberCache number_cache;
private:
* <tt>levels[]</tt> tree of the
* Triangulation objects.
*/
- std::vector<internal::DoFHandler::DoFLevel<dim>*> levels;
+ std::vector<dealii::internal::DoFHandler::DoFLevel<dim>*> levels;
/**
* Space to store DoF numbers of
* hierarchically, but in a flat
* array.
*/
- internal::DoFHandler::DoFFaces<dim> *faces;
+ dealii::internal::DoFHandler::DoFFaces<dim> *faces;
/**
* Make accessor objects friends.
*/
template <int, class> friend class DoFAccessor;
template <class> friend class DoFCellAccessor;
- friend struct internal::DoFAccessor::Implementation;
- friend struct internal::DoFCellAccessor::Implementation;
+ friend struct dealii::internal::DoFAccessor::Implementation;
+ friend struct dealii::internal::DoFCellAccessor::Implementation;
- friend struct internal::DoFHandler::Implementation;
- friend struct internal::DoFHandler::Policy::Implementation;
+ friend struct dealii::internal::DoFHandler::Implementation;
+ friend struct dealii::internal::DoFHandler::Policy::Implementation;
};
ar & levels;
ar & faces;
- // write out the number of triangulation cells and later check
- // during loading that this number is indeed correct; same with something that
- // identifies the FE and the policy
+ // write out the number of triangulation cells and later check
+ // during loading that this number is indeed correct; same with something that
+ // identifies the FE and the policy
unsigned int n_cells = tria->n_cells();
std::string fe_name = selected_fe->get_name();
std::string policy_name = typeid(*policy).name();
ar & vertex_dofs;
ar & number_cache;
- // boost::serialization can restore pointers just fine, but if the
- // pointer object still points to something useful, that object is
- // not destroyed and we end up with a memory leak. consequently,
- // first delete previous content before re-loading stuff
+ // boost::serialization can restore pointers just fine, but if the
+ // pointer object still points to something useful, that object is
+ // not destroyed and we end up with a memory leak. consequently,
+ // first delete previous content before re-loading stuff
for (unsigned int i=0; i<levels.size(); ++i)
delete levels[i];
levels.resize (0);
ar & levels;
ar & faces;
- // these are the checks that correspond to the last block in the save() function
+ // these are the checks that correspond to the last block in the save() function
unsigned int n_cells;
std::string fe_name;
std::string policy_name;
* The piece of code in the constructor of a finite element
* responsible for this looks like
* @code
- FullMatrix<double> M(this->dofs_per_cell, this->dofs_per_cell);
- FETools::compute_node_matrix(M, *this);
- this->inverse_node_matrix.reinit(this->dofs_per_cell, this->dofs_per_cell);
- this->inverse_node_matrix.invert(M);
+ FullMatrix<double> M(this->dofs_per_cell, this->dofs_per_cell);
+ FETools::compute_node_matrix(M, *this);
+ this->inverse_node_matrix.reinit(this->dofs_per_cell, this->dofs_per_cell);
+ this->inverse_node_matrix.invert(M);
* @endcode
* Don't forget to make sure that #unit_support_points or
* #generalized_support_points are initialized before this!
*
* This can be achieved by
* @code
- for (unsigned int i=0; i<GeometryInfo<dim>::children_per_cell; ++i)
- this->prolongation[i].reinit (this->dofs_per_cell,
- this->dofs_per_cell);
- FETools::compute_embedding_matrices (*this, this->prolongation);
+ for (unsigned int i=0; i<GeometryInfo<dim>::children_per_cell; ++i)
+ this->prolongation[i].reinit (this->dofs_per_cell,
+ this->dofs_per_cell);
+ FETools::compute_embedding_matrices (*this, this->prolongation);
* @endcode
*
* <h5>Computing the #restriction matrices for error estimators</h5>
public FiniteElementData<dim>
{
public:
- /**
- * Base class for internal data.
- * Adds data for second derivatives to
- * Mapping::InternalDataBase()
- *
- * For information about the
- * general purpose of this class,
- * see the documentation of the
- * base class.
- *
- * @author Guido Kanschat, 2001
- */
- class InternalDataBase : public Mapping<dim,spacedim>::InternalDataBase
+ /**
+ * Base class for internal data.
+ * Adds data for second derivatives to
+ * Mapping::InternalDataBase()
+ *
+ * For information about the
+ * general purpose of this class,
+ * see the documentation of the
+ * base class.
+ *
+ * @author Guido Kanschat, 2001
+ */
+ class InternalDataBase : public Mapping<dim,spacedim>::InternalDataBase
{
public:
/**
* succeed or generate the
* exception.
*/
- const FullMatrix<double> & constraints (const internal::SubfaceCase<dim> &subface_case=internal::SubfaceCase<dim>::case_isotropic) const;
+ const FullMatrix<double> & constraints (const dealii::internal::SubfaceCase<dim> &subface_case=dealii::internal::SubfaceCase<dim>::case_isotropic) const;
/**
* Return whether this element
* the lack of information this
* just expresses.
*/
- bool constraints_are_implemented (const internal::SubfaceCase<dim> &subface_case=internal::SubfaceCase<dim>::case_isotropic) const;
+ bool constraints_are_implemented (const dealii::internal::SubfaceCase<dim> &subface_case=dealii::internal::SubfaceCase<dim>::case_isotropic) const;
/**
* from the system_to_component_index()
* function.
*/
- unsigned int component_to_system_index(const unsigned int component,
- const unsigned int index) const;
+ unsigned int component_to_system_index(const unsigned int component,
+ const unsigned int index) const;
/**
* Same as
FiniteElement<dim,spacedim>::system_to_component_index (const unsigned int index) const
{
Assert (index < system_to_component_table.size(),
- ExcIndexRange(index, 0, system_to_component_table.size()));
+ ExcIndexRange(index, 0, system_to_component_table.size()));
Assert (is_primitive (index),
( typename FiniteElement<dim,spacedim>::ExcShapeFunctionNotPrimitive(index)) );
return system_to_component_table[index];
inline
unsigned int
FiniteElement<dim,spacedim>::component_to_system_index (const unsigned int component,
- const unsigned int index) const
+ const unsigned int index) const
{
- std::vector< std::pair<unsigned int, unsigned int> >::const_iterator
- it = std::find(system_to_component_table.begin(), system_to_component_table.end(),
- std::pair<unsigned int, unsigned int>(component, index));
+ std::vector< std::pair<unsigned int, unsigned int> >::const_iterator
+ it = std::find(system_to_component_table.begin(), system_to_component_table.end(),
+ std::pair<unsigned int, unsigned int>(component, index));
- Assert(it != system_to_component_table.end(), ExcComponentIndexInvalid(component, index));
- return std::distance(system_to_component_table.begin(), it);
+ Assert(it != system_to_component_table.end(), ExcComponentIndexInvalid(component, index));
+ return std::distance(system_to_component_table.begin(), it);
}
FiniteElement<dim,spacedim>::system_to_base_index (const unsigned int index) const
{
Assert (index < system_to_base_table.size(),
- ExcIndexRange(index, 0, system_to_base_table.size()));
+ ExcIndexRange(index, 0, system_to_base_table.size()));
return system_to_base_table[index];
}
// first block of this base plus
// the index within the base blocks
return std::pair<unsigned int, unsigned int>(
- first_block_of_base(system_to_base_table[index].first.first)
- + system_to_base_table[index].first.second,
- system_to_base_table[index].second);
+ first_block_of_base(system_to_base_table[index].first.first)
+ + system_to_base_table[index].first.second,
+ system_to_base_table[index].second);
}
#include <algorithm>
#include <memory>
- // dummy include in order to have the
- // definition of PetscScalar available
- // without including other PETSc stuff
+ // dummy include in order to have the
+ // definition of PetscScalar available
+ // without including other PETSc stuff
#ifdef DEAL_II_USE_PETSC
# include <petsc.h>
#endif
* <code>spacedim=3</code> it is a
* <code>Tensor@<1, dim@></code>.
*/
- typedef typename internal::CurlType<spacedim>::type curl_type;
+ typedef typename dealii::internal::CurlType<spacedim>::type curl_type;
/**
* A typedef for the type of second
*/
curl_type
curl (const unsigned int shape_function,
- const unsigned int q_point) const;
+ const unsigned int q_point) const;
/**
* Return the Hessian (the tensor of
*/
template <class InputVector>
void get_function_curls (const InputVector& fe_function,
- std::vector<curl_type>& curls) const;
+ std::vector<curl_type>& curls) const;
/**
* Return the Hessians of the selected
std::vector<dealii::FEValuesViews::Scalar<dim,spacedim> > scalars;
std::vector<dealii::FEValuesViews::Vector<dim,spacedim> > vectors;
std::vector<dealii::FEValuesViews::SymmetricTensor<2,dim,spacedim> >
- symmetric_second_order_tensors;
+ symmetric_second_order_tensors;
/**
* Constructor.
*/
std::auto_ptr<const CellIteratorBase> present_cell;
- /**
- * A signal connection we use to ensure we get informed whenever the
- * triangulation changes. We need to know about that because it
- * invalidates all cell iterators and, as part of that, the
- * 'present_cell' iterator we keep around between subsequent
- * calls to reinit() in order to compute the cell similarity.
- */
+ /**
+ * A signal connection we use to ensure we get informed whenever the
+ * triangulation changes. We need to know about that because it
+ * invalidates all cell iterators and, as part of that, the
+ * 'present_cell' iterator we keep around between subsequent
+ * calls to reinit() in order to compute the cell similarity.
+ */
boost::signals2::connection tria_listener;
- /**
- * A function that is connected to the triangulation in
- * order to reset the stored 'present_cell' iterator to an invalid
- * one whenever the triangulation is changed and the iterator consequently
- * becomes invalid.
- */
+ /**
+ * A function that is connected to the triangulation in
+ * order to reset the stored 'present_cell' iterator to an invalid
+ * one whenever the triangulation is changed and the iterator consequently
+ * becomes invalid.
+ */
void invalidate_present_cell ();
- /**
- * This function is called by the various reinit() functions in derived
- * classes. Given the cell indicated by the argument, test whether
- * we have to throw away the previously stored present_cell argument
- * because it would require us to compare cells from different
- * triangulations. In checking all this, also make sure that we have
- * tria_listener connected to the triangulation to which we will set
- * present_cell right after calling this function.
- */
+ /**
+ * This function is called by the various reinit() functions in derived
+ * classes. Given the cell indicated by the argument, test whether
+ * we have to throw away the previously stored present_cell argument
+ * because it would require us to compare cells from different
+ * triangulations. In checking all this, also make sure that we have
+ * tria_listener connected to the triangulation to which we will set
+ * present_cell right after calling this function.
+ */
void
maybe_invalidate_previous_present_cell (const typename Triangulation<dim,spacedim>::cell_iterator &cell);
* A cache for all possible FEValuesViews
* objects.
*/
- internal::FEValuesViews::Cache<dim,spacedim> fe_values_views_cache;
+ dealii::internal::FEValuesViews::Cache<dim,spacedim> fe_values_views_cache;
/**
* Make the view classes friends of this
inline
typename Vector<dim,spacedim>::curl_type
Vector<dim,spacedim>::curl (const unsigned int shape_function, const unsigned int q_point) const {
- // this function works like in the case above
- typedef FEValuesBase<dim,spacedim> FVB;
-
- Assert (shape_function < fe_values.fe->dofs_per_cell,
- ExcIndexRange (shape_function, 0, fe_values.fe->dofs_per_cell));
- Assert (fe_values.update_flags & update_gradients,
- typename FVB::ExcAccessToUninitializedField());
- // same as for the scalar case except that we have one more index
- const int snc = shape_function_data[shape_function].single_nonzero_component;
-
- if (snc == -2)
- return curl_type ();
-
- else
- switch (dim) {
- case 1: {
- Assert (false, ExcMessage("Computing the curl in 1d is not a useful operation"));
- return curl_type ();
- }
-
- case 2: {
- if (snc != -1) {
- curl_type return_value;
-
- // the single
- // nonzero component
- // can only be zero
- // or one in 2d
- if (shape_function_data[shape_function].single_nonzero_component_index == 0)
- return_value[0] = -1.0 * fe_values.shape_gradients[snc][q_point][1];
- else
- return_value[0] = fe_values.shape_gradients[snc][q_point][0];
-
- return return_value;
- }
+ // this function works like in the case above
+ typedef FEValuesBase<dim,spacedim> FVB;
- else {
- curl_type return_value;
+ Assert (shape_function < fe_values.fe->dofs_per_cell,
+ ExcIndexRange (shape_function, 0, fe_values.fe->dofs_per_cell));
+ Assert (fe_values.update_flags & update_gradients,
+ typename FVB::ExcAccessToUninitializedField());
+ // same as for the scalar case except that we have one more index
+ const int snc = shape_function_data[shape_function].single_nonzero_component;
- return_value[0] = 0.0;
+ if (snc == -2)
+ return curl_type ();
- if (shape_function_data[shape_function].is_nonzero_shape_function_component[0])
- return_value[0]
- -= fe_values.shape_gradients[shape_function_data[shape_function].row_index[0]][q_point][1];
+ else
+ switch (dim) {
+ case 1: {
+ Assert (false, ExcMessage("Computing the curl in 1d is not a useful operation"));
+ return curl_type ();
+ }
- if (shape_function_data[shape_function].is_nonzero_shape_function_component[1])
- return_value[0]
- += fe_values.shape_gradients[shape_function_data[shape_function].row_index[1]][q_point][0];
+ case 2: {
+ if (snc != -1) {
+ curl_type return_value;
- return return_value;
+ // the single
+ // nonzero component
+ // can only be zero
+ // or one in 2d
+ if (shape_function_data[shape_function].single_nonzero_component_index == 0)
+ return_value[0] = -1.0 * fe_values.shape_gradients[snc][q_point][1];
+ else
+ return_value[0] = fe_values.shape_gradients[snc][q_point][0];
+
+ return return_value;
+ }
+
+ else {
+ curl_type return_value;
+
+ return_value[0] = 0.0;
+
+ if (shape_function_data[shape_function].is_nonzero_shape_function_component[0])
+ return_value[0]
+ -= fe_values.shape_gradients[shape_function_data[shape_function].row_index[0]][q_point][1];
+
+ if (shape_function_data[shape_function].is_nonzero_shape_function_component[1])
+ return_value[0]
+ += fe_values.shape_gradients[shape_function_data[shape_function].row_index[1]][q_point][0];
+
+ return return_value;
+ }
+ }
+
+ case 3: {
+ if (snc != -1) {
+ curl_type return_value;
+
+ switch (shape_function_data[shape_function].single_nonzero_component_index) {
+ case 0: {
+ return_value[0] = 0;
+ return_value[1] = fe_values.shape_gradients[snc][q_point][2];
+ return_value[2] = -1.0 * fe_values.shape_gradients[snc][q_point][1];
+ return return_value;
}
- }
-
- case 3: {
- if (snc != -1) {
- curl_type return_value;
-
- switch (shape_function_data[shape_function].single_nonzero_component_index) {
- case 0: {
- return_value[0] = 0;
- return_value[1] = fe_values.shape_gradients[snc][q_point][2];
- return_value[2] = -1.0 * fe_values.shape_gradients[snc][q_point][1];
- return return_value;
- }
-
- case 1: {
- return_value[0] = -1.0 * fe_values.shape_gradients[snc][q_point][2];
- return_value[1] = 0;
- return_value[2] = fe_values.shape_gradients[snc][q_point][0];
- return return_value;
- }
-
- default: {
- return_value[0] = fe_values.shape_gradients[snc][q_point][1];
- return_value[1] = -1.0 * fe_values.shape_gradients[snc][q_point][0];
- return_value[2] = 0;
- return return_value;
- }
- }
+
+ case 1: {
+ return_value[0] = -1.0 * fe_values.shape_gradients[snc][q_point][2];
+ return_value[1] = 0;
+ return_value[2] = fe_values.shape_gradients[snc][q_point][0];
+ return return_value;
}
- else {
- curl_type return_value;
-
- for (unsigned int i = 0; i < dim; ++i)
- return_value[i] = 0.0;
-
- if (shape_function_data[shape_function].is_nonzero_shape_function_component[0]) {
- return_value[1]
- += fe_values.shape_gradients[shape_function_data[shape_function].row_index[0]][q_point][2];
- return_value[2]
- -= fe_values.shape_gradients[shape_function_data[shape_function].row_index[0]][q_point][1];
- }
-
- if (shape_function_data[shape_function].is_nonzero_shape_function_component[1]) {
- return_value[0]
- -= fe_values.shape_gradients[shape_function_data[shape_function].row_index[1]][q_point][2];
- return_value[2]
- += fe_values.shape_gradients[shape_function_data[shape_function].row_index[1]][q_point][0];
- }
-
- if (shape_function_data[shape_function].is_nonzero_shape_function_component[2]) {
- return_value[0]
- += fe_values.shape_gradients[shape_function_data[shape_function].row_index[2]][q_point][1];
- return_value[1]
- -= fe_values.shape_gradients[shape_function_data[shape_function].row_index[2]][q_point][0];
- }
-
- return return_value;
+ default: {
+ return_value[0] = fe_values.shape_gradients[snc][q_point][1];
+ return_value[1] = -1.0 * fe_values.shape_gradients[snc][q_point][0];
+ return_value[2] = 0;
+ return return_value;
}
- }
+ }
+ }
+
+ else {
+ curl_type return_value;
+
+ for (unsigned int i = 0; i < dim; ++i)
+ return_value[i] = 0.0;
+
+ if (shape_function_data[shape_function].is_nonzero_shape_function_component[0]) {
+ return_value[1]
+ += fe_values.shape_gradients[shape_function_data[shape_function].row_index[0]][q_point][2];
+ return_value[2]
+ -= fe_values.shape_gradients[shape_function_data[shape_function].row_index[0]][q_point][1];
+ }
+
+ if (shape_function_data[shape_function].is_nonzero_shape_function_component[1]) {
+ return_value[0]
+ -= fe_values.shape_gradients[shape_function_data[shape_function].row_index[1]][q_point][2];
+ return_value[2]
+ += fe_values.shape_gradients[shape_function_data[shape_function].row_index[1]][q_point][0];
+ }
+
+ if (shape_function_data[shape_function].is_nonzero_shape_function_component[2]) {
+ return_value[0]
+ += fe_values.shape_gradients[shape_function_data[shape_function].row_index[2]][q_point][1];
+ return_value[1]
+ -= fe_values.shape_gradients[shape_function_data[shape_function].row_index[2]][q_point][0];
+ }
+
+ return return_value;
+ }
}
- // should not end up here
- Assert (false, ExcInternalError());
- return curl_type();
+ }
+ // should not end up here
+ Assert (false, ExcInternalError());
+ return curl_type();
}
template <int dim, int spacedim>
* are the ones one wants to use in the boundary element method.
*
* This class is written to be as independent of the dimension as possible
- * (thus the complex construction of the internal::Triangulation::TriaLevel
+ * (thus the complex construction of the dealii::internal::Triangulation::TriaLevel
* classes) to allow code-sharing, to allow reducing the need to mirror
* changes in the code for one dimension to the code for other
* dimensions. Nonetheless, some of the functions are dependent of the
* the definition of the iterator
* classes simpler.
*/
- typedef internal::Triangulation::Iterators<dim, spacedim> IteratorSelector;
+ typedef dealii::internal::Triangulation::Iterators<dim, spacedim> IteratorSelector;
public:
/**
* objects storing the cell data on the
* different levels.
*/
- std::vector<internal::Triangulation::TriaLevel<dim>*> levels;
+ std::vector<dealii::internal::Triangulation::TriaLevel<dim>*> levels;
/**
* Pointer to the faces of the triangulation. In 1d
* these have no level and are therefore treated
* seperately.
*/
- internal::Triangulation::TriaFaces<dim> * faces;
+ dealii::internal::Triangulation::TriaFaces<dim> * faces;
/**
* frequent operation, this was not
* an optimal solution.
*/
- internal::Triangulation::NumberCache<dim> number_cache;
+ dealii::internal::Triangulation::NumberCache<dim> number_cache;
/**
* A map that relates the number of a
friend class CellAccessor<dim, spacedim>;
- friend struct internal::TriaAccessor::Implementation;
+ friend struct dealii::internal::TriaAccessor::Implementation;
friend class hp::DoFHandler<dim,spacedim>;
- friend struct internal::Triangulation::Implementation;
+ friend struct dealii::internal::Triangulation::Implementation;
};
* a Triangulation with same
* dimension.
*/
- internal::Triangulation::TriaObjects<internal::Triangulation::TriaObject<structdim> > &
+ dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<structdim> > &
objects () const;
public:
* (<tt>structdim==dim</tt>). Else,
* contains zero.
*/
- typename internal::TriaAccessor::PresentLevelType<structdim,dim>::type present_level;
+ typename dealii::internal::TriaAccessor::PresentLevelType<structdim,dim>::type present_level;
/**
* Used to store the index of
* Pointer to the @p ith line
* bounding this object.
*/
- typename internal::Triangulation::Iterators<dim,spacedim>::line_iterator
+ typename dealii::internal::Triangulation::Iterators<dim,spacedim>::line_iterator
line (const unsigned int i) const;
/**
* Pointer to the @p ith quad
* bounding this object.
*/
- typename internal::Triangulation::Iterators<dim,spacedim>::quad_iterator
+ typename dealii::internal::Triangulation::Iterators<dim,spacedim>::quad_iterator
quad (const unsigned int i) const;
/**
* domain and so cannot determine whether
* the value you are trying to set makes
* sense under the current circumstances.
- *
- * @ingroup boundary
+ *
+ * @ingroup boundary
*/
void set_boundary_indicator (const types::boundary_id_t) const;
* of face and edges are all set
* at the same time using the
* current function.
- *
- * @ingroup boundary
+ *
+ * @ingroup boundary
*/
void set_all_boundary_indicators (const types::boundary_id_t) const;
* structures of a
* triangulation.
*/
- void set (const internal::Triangulation::TriaObject<structdim> &o) const;
+ void set (const dealii::internal::Triangulation::TriaObject<structdim> &o) const;
/**
* Set the flag indicating, what
template <int, int> friend class Triangulation;
- friend struct internal::Triangulation::Implementation;
- friend struct internal::TriaAccessor::Implementation;
+ friend struct dealii::internal::Triangulation::Implementation;
+ friend struct dealii::internal::TriaAccessor::Implementation;
};
* bounding this object. Will
* point to an invalid object.
*/
- typename internal::Triangulation::Iterators<1,spacedim>::line_iterator
+ typename dealii::internal::Triangulation::Iterators<1,spacedim>::line_iterator
static line (const unsigned int);
/**
* bounding this object.
*/
static
- typename internal::Triangulation::Iterators<1,spacedim>::quad_iterator
+ typename dealii::internal::Triangulation::Iterators<1,spacedim>::quad_iterator
quad (const unsigned int i);
/**
* domain and so cannot determine whether
* the value you are trying to set makes
* sense under the current circumstances.
- *
- * @ingroup boundary
+ *
+ * @ingroup boundary
*/
void
set_boundary_indicator (const types::boundary_id_t);
* single vertex, call
* set_boundary_indicator with the same
* argument.
- *
- * @ingroup boundary
+ *
+ * @ingroup boundary
*/
void
set_all_boundary_indicators (const types::boundary_id_t);
* function may only be called for active
* cells in 2d and 3d.
*/
- internal::SubfaceCase<dim> subface_case(const unsigned int face_no) const;
+ dealii::internal::SubfaceCase<dim> subface_case(const unsigned int face_no) const;
/**
* Return whether the coarsen flag
*/
bool active () const;
- /**
- * Return whether this cell is owned by the current processor
- * or is owned by another processor. The function always returns
- * true if applied to an object of type dealii::Triangulation,
- * but may yield false if the triangulation is of type
- * parallel::distributed::Triangulation.
- *
- * See the @ref GlossGhostCell
- * "glossary" and the @ref
- * distributed module for more
- * information.
- *
- * @post The returned value is equal to <code>!is_ghost() &&
- * !is_artificial()</code>.
- **/
+ /**
+ * Return whether this cell is owned by the current processor
+ * or is owned by another processor. The function always returns
+ * true if applied to an object of type dealii::Triangulation,
+ * but may yield false if the triangulation is of type
+ * parallel::distributed::Triangulation.
+ *
+ * See the @ref GlossGhostCell
+ * "glossary" and the @ref
+ * distributed module for more
+ * information.
+ *
+ * @post The returned value is equal to <code>!is_ghost() &&
+ * !is_artificial()</code>.
+ **/
bool is_locally_owned () const;
/**
to the manifold where the cell is embedded and
then check if this projection is inside the cell.
- */
+ */
bool point_inside (const Point<spacedim> &p) const;
/**
template <int, int> friend class Triangulation;
- friend struct internal::Triangulation::Implementation;
+ friend struct dealii::internal::Triangulation::Implementation;
};
*/
template <int dim>
inline
- internal::Triangulation::TriaObjects<internal::Triangulation::TriaObject<1> >*
- get_objects (internal::Triangulation::TriaFaces<dim> *faces,
- const internal::int2type<1>)
+ dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<1> >*
+ get_objects (dealii::internal::Triangulation::TriaFaces<dim> *faces,
+ const dealii::internal::int2type<1>)
{
return &faces->lines;
}
template <int dim>
inline
- internal::Triangulation::TriaObjects<internal::Triangulation::TriaObject<2> >*
- get_objects (internal::Triangulation::TriaFaces<dim> *faces,
- const internal::int2type<2>)
+ dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<2> >*
+ get_objects (dealii::internal::Triangulation::TriaFaces<dim> *faces,
+ const dealii::internal::int2type<2>)
{
return &faces->quads;
}
inline
- internal::Triangulation::TriaObjects<internal::Triangulation::TriaObject<1> >*
- get_objects (internal::Triangulation::TriaFaces<1>*,
- const internal::int2type<1>)
+ dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<1> >*
+ get_objects (dealii::internal::Triangulation::TriaFaces<1>*,
+ const dealii::internal::int2type<1>)
{
Assert (false, ExcInternalError());
return 0;
}
inline
- internal::Triangulation::TriaObjects<internal::Triangulation::TriaObject<2> >*
- get_objects (internal::Triangulation::TriaFaces<2>*,
- const internal::int2type<2>)
+ dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<2> >*
+ get_objects (dealii::internal::Triangulation::TriaFaces<2>*,
+ const dealii::internal::int2type<2>)
{
Assert (false, ExcInternalError());
return 0;
}
inline
- internal::Triangulation::TriaObjects<internal::Triangulation::TriaObject<3> >*
- get_objects (internal::Triangulation::TriaFaces<3>*,
- const internal::int2type<3>)
+ dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<3> >*
+ get_objects (dealii::internal::Triangulation::TriaFaces<3>*,
+ const dealii::internal::int2type<3>)
{
Assert (false, ExcInternalError());
return 0;
*/
template <int dim>
inline
- internal::Triangulation::TriaObjects<internal::Triangulation::TriaObject<3> >*
- get_objects (internal::Triangulation::TriaFaces<dim> *faces,
- const internal::int2type<3>)
+ dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<3> >*
+ get_objects (dealii::internal::Triangulation::TriaFaces<dim> *faces,
+ const dealii::internal::int2type<3>)
{
Assert (false, ExcInternalError());
return 0;
*/
template <int structdim, int dim>
inline
- internal::Triangulation::TriaObjects<internal::Triangulation::TriaObject<structdim> >*
- get_objects (internal::Triangulation::TriaObjects<internal::Triangulation::TriaObject<dim> >*,
- const internal::int2type<structdim>)
+ dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<structdim> >*
+ get_objects (dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<dim> >*,
+ const dealii::internal::int2type<structdim>)
{
Assert (false, ExcInternalError());
return 0;
template <int dim>
inline
- internal::Triangulation::TriaObjects<internal::Triangulation::TriaObject<dim> >*
- get_objects (internal::Triangulation::TriaObjects<internal::Triangulation::TriaObject<dim> >* cells,
- const internal::int2type<dim>)
+ dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<dim> >*
+ get_objects (dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<dim> >* cells,
+ const dealii::internal::int2type<dim>)
{
return cells;
}
template <int structdim, int dim, int spacedim>
inline
-internal::Triangulation::TriaObjects<internal::Triangulation::TriaObject<structdim> > &
+dealii::internal::Triangulation::TriaObjects<dealii::internal::Triangulation::TriaObject<structdim> > &
TriaAccessorBase<structdim,dim,spacedim>::objects() const
{
if (structdim != dim)
// get sub-objects. note that the
// current class is only used for
// objects that are *not* cells
- return *internal::TriaAccessorBase::get_objects (this->tria->faces,
- internal::int2type<structdim> ());
+ return *dealii::internal::TriaAccessorBase::get_objects (this->tria->faces,
+ dealii::internal::int2type<structdim> ());
else
- return *internal::TriaAccessorBase::get_objects (&this->tria->levels[this->present_level]->cells,
- internal::int2type<structdim> ());
+ return *dealii::internal::TriaAccessorBase::get_objects (&this->tria->levels[this->present_level]->cells,
+ dealii::internal::int2type<structdim> ());
}
// we mean the *class*
// dealii::TriaAccessor, not the
// enclosing namespace
- // internal::TriaAccessor
+ // dealii::internal::TriaAccessor
using dealii::TriaAccessor;
/**
inline
TriaAccessor<structdim, dim, spacedim>::
TriaAccessor (const Triangulation<dim,spacedim> *parent,
- const int level,
- const int index,
- const AccessorData *local_data)
+ const int level,
+ const int index,
+ const AccessorData *local_data)
:
TriaAccessorBase<structdim,dim,spacedim> (parent, level, index, local_data)
{}
Assert (corner<GeometryInfo<structdim>::vertices_per_cell,
ExcIndexRange(corner,0,GeometryInfo<structdim>::vertices_per_cell));
- return internal::TriaAccessor::Implementation::vertex_index (*this, corner);
+ return dealii::internal::TriaAccessor::Implementation::vertex_index (*this, corner);
}
template <int structdim, int dim, int spacedim>
inline
-typename internal::Triangulation::Iterators<dim,spacedim>::line_iterator
+typename dealii::internal::Triangulation::Iterators<dim,spacedim>::line_iterator
TriaAccessor<structdim,dim,spacedim>::line (const unsigned int i) const
{
// checks happen in line_index
- return typename internal::Triangulation::Iterators<dim,spacedim>::line_iterator
+ return typename dealii::internal::Triangulation::Iterators<dim,spacedim>::line_iterator
(this->tria, 0, line_index (i));
}
Assert (i < GeometryInfo<structdim>::lines_per_cell,
ExcIndexRange (i, 0, GeometryInfo<structdim>::lines_per_cell));
- return internal::TriaAccessor::Implementation::line_index (*this, i);
+ return dealii::internal::TriaAccessor::Implementation::line_index (*this, i);
}
template <int structdim, int dim, int spacedim>
inline
-typename internal::Triangulation::Iterators<dim,spacedim>::quad_iterator
+typename dealii::internal::Triangulation::Iterators<dim,spacedim>::quad_iterator
TriaAccessor<structdim,dim,spacedim>::quad (const unsigned int i) const
{
// checks happen in quad_index
- return typename internal::Triangulation::Iterators<dim,spacedim>::quad_iterator
+ return typename dealii::internal::Triangulation::Iterators<dim,spacedim>::quad_iterator
(this->tria, 0, quad_index (i));
}
unsigned int
TriaAccessor<structdim,dim,spacedim>::quad_index (const unsigned int i) const
{
- return internal::TriaAccessor::Implementation::quad_index (*this, i);
+ return dealii::internal::TriaAccessor::Implementation::quad_index (*this, i);
}
{
Assert (used(), TriaAccessorExceptions::ExcCellNotUsed());
- return internal::TriaAccessor::Implementation::face_orientation (*this, face);
+ return dealii::internal::TriaAccessor::Implementation::face_orientation (*this, face);
}
{
Assert (used(), TriaAccessorExceptions::ExcCellNotUsed());
- return internal::TriaAccessor::Implementation::face_flip (*this, face);
+ return dealii::internal::TriaAccessor::Implementation::face_flip (*this, face);
}
{
Assert (used(), TriaAccessorExceptions::ExcCellNotUsed());
- return internal::TriaAccessor::Implementation::face_rotation (*this, face);
+ return dealii::internal::TriaAccessor::Implementation::face_rotation (*this, face);
}
Assert (line<GeometryInfo<structdim>::lines_per_cell,
ExcIndexRange (line, 0, GeometryInfo<structdim>::lines_per_cell));
- return internal::TriaAccessor::Implementation::line_orientation (*this, line);
+ return dealii::internal::TriaAccessor::Implementation::line_orientation (*this, line);
}
inline
void
TriaAccessor<structdim,dim,spacedim>::set_face_orientation (const unsigned int face,
- const bool value) const
+ const bool value) const
{
Assert (used(), TriaAccessorExceptions::ExcCellNotUsed());
- internal::TriaAccessor::Implementation::set_face_orientation (*this, face, value);
+ dealii::internal::TriaAccessor::Implementation::set_face_orientation (*this, face, value);
}
inline
void
TriaAccessor<structdim,dim,spacedim>::set_face_flip (const unsigned int face,
- const bool value) const
+ const bool value) const
{
Assert (used(), TriaAccessorExceptions::ExcCellNotUsed());
- internal::TriaAccessor::Implementation::set_face_flip (*this, face, value);
+ dealii::internal::TriaAccessor::Implementation::set_face_flip (*this, face, value);
}
inline
void
TriaAccessor<structdim,dim,spacedim>::set_face_rotation (const unsigned int face,
- const bool value) const
+ const bool value) const
{
Assert (used(), TriaAccessorExceptions::ExcCellNotUsed());
- internal::TriaAccessor::Implementation::set_face_rotation (*this, face, value);
+ dealii::internal::TriaAccessor::Implementation::set_face_rotation (*this, face, value);
}
inline
void
TriaAccessor<structdim,dim,spacedim>::set_line_orientation (const unsigned int line,
- const bool value) const
+ const bool value) const
{
Assert (used(), TriaAccessorExceptions::ExcCellNotUsed());
Assert (line<GeometryInfo<structdim>::lines_per_cell,
ExcIndexRange (line, 0, GeometryInfo<structdim>::lines_per_cell));
- internal::TriaAccessor::Implementation::set_line_orientation (*this, line, value);
+ dealii::internal::TriaAccessor::Implementation::set_line_orientation (*this, line, value);
}
{
Assert (this->present_level > 0, TriaAccessorExceptions::ExcCellHasNoParent ());
- // the parent of two consecutive cells
- // is stored only once, since it is
- // the same
+ // the parent of two consecutive cells
+ // is stored only once, since it is
+ // the same
return this->tria->levels[this->present_level]->parents[this->present_index / 2];
}
template <int structdim, int dim, int spacedim>
void
TriaAccessor<structdim, dim, spacedim>::set_children (const unsigned int i,
- const int index) const
+ const int index) const
{
Assert (this->used(), TriaAccessorExceptions::ExcCellNotUsed());
Assert (i%2==0, TriaAccessorExceptions::ExcSetOnlyEvenChildren(i));
double
TriaAccessor<structdim, dim, spacedim>::minimum_vertex_distance () const
{
- switch (structdim)
+ switch (structdim)
{
case 1:
return std::sqrt((this->vertex(1)-this->vertex(0)).square());
template <int spacedim>
inline
-typename internal::Triangulation::Iterators<1,spacedim>::line_iterator
+typename dealii::internal::Triangulation::Iterators<1,spacedim>::line_iterator
TriaAccessor<0, 1, spacedim>::line (const unsigned int)
{
- return typename internal::Triangulation::Iterators<1,spacedim>::line_iterator();
+ return typename dealii::internal::Triangulation::Iterators<1,spacedim>::line_iterator();
}
template <int spacedim>
inline
-typename internal::Triangulation::Iterators<1,spacedim>::quad_iterator
+typename dealii::internal::Triangulation::Iterators<1,spacedim>::quad_iterator
TriaAccessor<0, 1, spacedim>::quad (const unsigned int)
{
- return typename internal::Triangulation::Iterators<1,spacedim>::quad_iterator();
+ return typename dealii::internal::Triangulation::Iterators<1,spacedim>::quad_iterator();
}
const int index,
const AccessorData *local_data)
:
- TriaAccessor<dim, dim, spacedim> (parent, level, index, local_data)
+ TriaAccessor<dim, dim, spacedim> (parent, level, index, local_data)
{}
TriaIterator<TriaAccessor<dim-1, dim, spacedim> >
CellAccessor<dim,spacedim>::face (const unsigned int i) const
{
- return internal::CellAccessor::get_face (*this, i);
+ return dealii::internal::CellAccessor::get_face (*this, i);
}
inline
bool
CellAccessor<dim,spacedim>::flag_for_face_refinement (const unsigned int face_no,
- const RefinementCase<dim-1> &face_refinement_case) const
+ const RefinementCase<dim-1> &face_refinement_case) const
{
Assert (dim>1, ExcImpossibleInDim(dim));
Assert (face_no<GeometryInfo<dim>::faces_per_cell,
// line refinement and the already existing
// flagged refinement case
RefinementCase<dim> old_ref_case=refine_flag_set(),
- new_ref_case=old_ref_case
- | GeometryInfo<dim>::min_cell_refinement_case_for_line_refinement(line_no);
+ new_ref_case=old_ref_case
+ | GeometryInfo<dim>::min_cell_refinement_case_for_line_refinement(line_no);
set_refine_flag(new_ref_case);
// return, whether we had to change the
// refinement flag
template <>
inline
-internal::SubfaceCase<1>
+dealii::internal::SubfaceCase<1>
CellAccessor<1>::subface_case(const unsigned int) const
{
- return internal::SubfaceCase<1>::case_none;
+ return dealii::internal::SubfaceCase<1>::case_none;
}
template <>
inline
-internal::SubfaceCase<1>
+dealii::internal::SubfaceCase<1>
CellAccessor<1,2>::subface_case(const unsigned int) const
{
- return internal::SubfaceCase<1>::case_none;
+ return dealii::internal::SubfaceCase<1>::case_none;
}
template <>
inline
-internal::SubfaceCase<1>
+dealii::internal::SubfaceCase<1>
CellAccessor<1,3>::subface_case(const unsigned int) const
{
- return internal::SubfaceCase<1>::case_none;
+ return dealii::internal::SubfaceCase<1>::case_none;
}
template <>
inline
-internal::SubfaceCase<2>
+dealii::internal::SubfaceCase<2>
CellAccessor<2>::subface_case(const unsigned int face_no) const
{
Assert(active(), TriaAccessorExceptions::ExcCellNotActive());
Assert(face_no<GeometryInfo<2>::faces_per_cell,
ExcIndexRange(face_no,0,GeometryInfo<2>::faces_per_cell));
return ((face(face_no)->has_children()) ?
- internal::SubfaceCase<2>::case_x :
- internal::SubfaceCase<2>::case_none);
+ dealii::internal::SubfaceCase<2>::case_x :
+ dealii::internal::SubfaceCase<2>::case_none);
}
template <>
inline
-internal::SubfaceCase<2>
+dealii::internal::SubfaceCase<2>
CellAccessor<2,3>::subface_case(const unsigned int face_no) const
{
Assert(active(), TriaAccessorExceptions::ExcCellNotActive());
Assert(face_no<GeometryInfo<2>::faces_per_cell,
ExcIndexRange(face_no,0,GeometryInfo<2>::faces_per_cell));
return ((face(face_no)->has_children()) ?
- internal::SubfaceCase<2>::case_x :
- internal::SubfaceCase<2>::case_none);
+ dealii::internal::SubfaceCase<2>::case_x :
+ dealii::internal::SubfaceCase<2>::case_none);
}
template <>
inline
-internal::SubfaceCase<3>
+dealii::internal::SubfaceCase<3>
CellAccessor<3>::subface_case(const unsigned int face_no) const
{
Assert(active(), TriaAccessorExceptions::ExcCellNotActive());
switch (static_cast<unsigned char> (face(face_no)->refinement_case()))
{
case RefinementCase<3>::no_refinement:
- return internal::SubfaceCase<3>::case_none;
+ return dealii::internal::SubfaceCase<3>::case_none;
break;
case RefinementCase<3>::cut_x:
if (face(face_no)->child(0)->has_children())
{
Assert(face(face_no)->child(1)->refinement_case()==RefinementCase<2>::cut_y,
ExcInternalError());
- return internal::SubfaceCase<3>::case_x1y2y;
+ return dealii::internal::SubfaceCase<3>::case_x1y2y;
}
else
- return internal::SubfaceCase<3>::case_x1y;
+ return dealii::internal::SubfaceCase<3>::case_x1y;
}
else
{
{
Assert(face(face_no)->child(1)->refinement_case()==RefinementCase<2>::cut_y,
ExcInternalError());
- return internal::SubfaceCase<3>::case_x2y;
+ return dealii::internal::SubfaceCase<3>::case_x2y;
}
else
- return internal::SubfaceCase<3>::case_x;
+ return dealii::internal::SubfaceCase<3>::case_x;
}
break;
case RefinementCase<3>::cut_y:
{
Assert(face(face_no)->child(1)->refinement_case()==RefinementCase<2>::cut_x,
ExcInternalError());
- return internal::SubfaceCase<3>::case_y1x2x;
+ return dealii::internal::SubfaceCase<3>::case_y1x2x;
}
else
- return internal::SubfaceCase<3>::case_y1x;
+ return dealii::internal::SubfaceCase<3>::case_y1x;
}
else
{
{
Assert(face(face_no)->child(1)->refinement_case()==RefinementCase<2>::cut_x,
ExcInternalError());
- return internal::SubfaceCase<3>::case_y2x;
+ return dealii::internal::SubfaceCase<3>::case_y2x;
}
else
- return internal::SubfaceCase<3>::case_y;
+ return dealii::internal::SubfaceCase<3>::case_y;
}
break;
case RefinementCase<3>::cut_xy:
- return internal::SubfaceCase<3>::case_xy;
+ return dealii::internal::SubfaceCase<3>::case_xy;
break;
default:
Assert(false, ExcInternalError());
}
// we should never get here
- return internal::SubfaceCase<3>::case_none;
+ return dealii::internal::SubfaceCase<3>::case_none;
}
TriaIterator<CellAccessor<dim,spacedim> >
CellAccessor<dim,spacedim>::neighbor (const unsigned int i) const
{
- TriaIterator<CellAccessor<dim,spacedim> >
+ TriaIterator<CellAccessor<dim,spacedim> >
q (this->tria, neighbor_level (i), neighbor_index (i));
Assert ((q.state() == IteratorState::past_the_end) || q->used(),
TriaIterator<CellAccessor<dim,spacedim> >
CellAccessor<dim,spacedim>::child (const unsigned int i) const
{
- TriaIterator<CellAccessor<dim,spacedim> >
+ TriaIterator<CellAccessor<dim,spacedim> >
q (this->tria, this->present_level+1, this->child_index (i));
Assert ((q.state() == IteratorState::past_the_end) || q->used(),
template <int dim, int spacedim=dim>
class DoFHandler : public Subscriptor
{
- typedef internal::DoFHandler::Iterators<DoFHandler<dim,spacedim> > IteratorSelector;
+ typedef dealii::internal::DoFHandler::Iterators<DoFHandler<dim,spacedim> > IteratorSelector;
public:
typedef typename IteratorSelector::CellAccessor cell_accessor;
typedef typename IteratorSelector::FaceAccessor face_accessor;
* Create default tables for
* the active_fe_indices in
* the
- * internal::hp::DoFLevels. They
+ * dealii::internal::hp::DoFLevels. They
* are initialized with the a
* zero indicator, meaning
* that fe[0] is going to be
* entity.
*/
void renumber_dofs_internal (const std::vector<unsigned int> &new_numbers,
- internal::int2type<0>);
+ dealii::internal::int2type<0>);
void renumber_dofs_internal (const std::vector<unsigned int> &new_numbers,
- internal::int2type<1>);
+ dealii::internal::int2type<1>);
void renumber_dofs_internal (const std::vector<unsigned int> &new_numbers,
- internal::int2type<2>);
+ dealii::internal::int2type<2>);
void renumber_dofs_internal (const std::vector<unsigned int> &new_numbers,
- internal::int2type<3>);
+ dealii::internal::int2type<3>);
/**
* Space to store the DoF
* <tt>levels[]</tt> tree of
* the Triangulation objects.
*/
- std::vector<internal::hp::DoFLevel<dim>*> levels;
+ std::vector<dealii::internal::hp::DoFLevel<dim>*> levels;
/**
* Space to store the DoF
* numbers for the faces.
* <tt>faces</tt> pointer of
* the Triangulation objects.
*/
- internal::hp::DoFFaces<dim> * faces;
+ dealii::internal::hp::DoFFaces<dim> * faces;
/**
* A structure that contains all
* accessor function in this
* class that returns its value.
*/
- internal::DoFHandler::NumberCache number_cache;
+ dealii::internal::DoFHandler::NumberCache number_cache;
/**
* Array to store the indices
*/
template <int, class> friend class dealii::DoFAccessor;
template <class> friend class dealii::DoFCellAccessor;
- friend struct internal::DoFAccessor::Implementation;
- friend struct internal::DoFCellAccessor::Implementation;
+ friend struct dealii::internal::DoFAccessor::Implementation;
+ friend struct dealii::internal::DoFCellAccessor::Implementation;
/**
* Likewise for DoFLevel
* the functions that set and
* retrieve vertex dof indices.
*/
- template <int> friend class internal::hp::DoFLevel;
- template <int> friend class internal::hp::DoFObjects;
- friend struct internal::hp::DoFHandler::Implementation;
+ template <int> friend class dealii::internal::hp::DoFLevel;
+ template <int> friend class dealii::internal::hp::DoFObjects;
+ friend struct dealii::internal::hp::DoFHandler::Implementation;
};
* @author Wolfgang Bangerth, 2003
*/
template <int dim, int spacedim=dim>
- class FEValues : public internal::hp::FEValuesBase<dim,dim,dealii::FEValues<dim,spacedim> >
+ class FEValues : public dealii::internal::hp::FEValuesBase<dim,dim,dealii::FEValues<dim,spacedim> >
{
public:
* @author Wolfgang Bangerth, 2003
*/
template <int dim, int spacedim=dim>
- class FEFaceValues : public internal::hp::FEValuesBase<dim,dim-1,dealii::FEFaceValues<dim,spacedim> >
+ class FEFaceValues : public dealii::internal::hp::FEValuesBase<dim,dim-1,dealii::FEFaceValues<dim,spacedim> >
{
public:
/**
* @author Wolfgang Bangerth, 2003
*/
template <int dim, int spacedim=dim>
- class FESubfaceValues : public internal::hp::FEValuesBase<dim,dim-1,dealii::FESubfaceValues<dim,spacedim> >
+ class FESubfaceValues : public dealii::internal::hp::FEValuesBase<dim,dim-1,dealii::FESubfaceValues<dim,spacedim> >
{
public:
/**
typedef typename BlockType::value_type value_type;
typedef value_type *pointer;
typedef const value_type *const_pointer;
- typedef internal::BlockVectorIterators::Iterator<BlockVectorBase,false> iterator;
- typedef internal::BlockVectorIterators::Iterator<BlockVectorBase,true> const_iterator;
+ typedef dealii::internal::BlockVectorIterators::Iterator<BlockVectorBase,false> iterator;
+ typedef dealii::internal::BlockVectorIterators::Iterator<BlockVectorBase,true> const_iterator;
typedef typename BlockType::reference reference;
typedef typename BlockType::const_reference const_reference;
*/
#ifndef DEAL_II_NAMESP_TEMPL_FRIEND_BUG
template <typename N, bool C>
- friend class internal::BlockVectorIterators::Iterator;
+ friend class dealii::internal::BlockVectorIterators::Iterator;
#else
friend class iterator;
friend class const_iterator;
Assert (numbers::is_finite(s), ExcNumberNotFinite());
if (s != Number())
Assert (vec_size!=0, ExcEmptyObject());
- if (vec_size>internal::Vector::minimum_parallel_grain_size)
+ if (vec_size>dealii::internal::Vector::minimum_parallel_grain_size)
parallel::apply_to_subranges (0U, vec_size,
- std_cxx1x::bind(&internal::Vector::template
+ std_cxx1x::bind(&dealii::internal::Vector::template
set_subrange<Number>,
s, std_cxx1x::_1, std_cxx1x::_2, std_cxx1x::ref(*this)),
- internal::Vector::minimum_parallel_grain_size);
+ dealii::internal::Vector::minimum_parallel_grain_size);
else if (vec_size > 0)
- internal::Vector::set_subrange<Number>(s, 0U, vec_size, *this);
+ dealii::internal::Vector::set_subrange<Number>(s, 0U, vec_size, *this);
return *this;
}
if (v.vec_size != vec_size)
reinit (v.vec_size, true);
- if (vec_size>internal::Vector::minimum_parallel_grain_size)
+ if (vec_size>dealii::internal::Vector::minimum_parallel_grain_size)
parallel::apply_to_subranges (0U, vec_size,
- std_cxx1x::bind(&internal::Vector::template
+ std_cxx1x::bind(&dealii::internal::Vector::template
copy_subrange<Number>,
std_cxx1x::cref(v), std_cxx1x::_1, std_cxx1x::_2,
std_cxx1x::ref(*this)),
- internal::Vector::minimum_parallel_grain_size);
+ dealii::internal::Vector::minimum_parallel_grain_size);
else if (vec_size > 0)
- internal::Vector::copy_subrange<Number>(v, 0U, vec_size, *this);
+ dealii::internal::Vector::copy_subrange<Number>(v, 0U, vec_size, *this);
return *this;
}
{
if (v.vec_size != vec_size)
reinit (v.vec_size, true);
- if (vec_size>internal::Vector::minimum_parallel_grain_size)
+ if (vec_size>dealii::internal::Vector::minimum_parallel_grain_size)
parallel::apply_to_subranges (0U, vec_size,
- std_cxx1x::bind(&internal::Vector::template
+ std_cxx1x::bind(&dealii::internal::Vector::template
copy_subrange_ext<Number2,Number>,
std_cxx1x::cref(v), std_cxx1x::_1, std_cxx1x::_2,
std_cxx1x::ref(*this)),
- internal::Vector::minimum_parallel_grain_size);
+ dealii::internal::Vector::minimum_parallel_grain_size);
else if (vec_size > 0)
- internal::Vector::copy_subrange_ext<Number2,Number>(v, 0U, vec_size, *this);
+ dealii::internal::Vector::copy_subrange_ext<Number2,Number>(v, 0U, vec_size, *this);
return *this;
}
val+vec_size,
val,
(factor*boost::lambda::_1),
- internal::Vector::minimum_parallel_grain_size);
+ dealii::internal::Vector::minimum_parallel_grain_size);
}
v.val,
val,
(boost::lambda::_1 + a*boost::lambda::_2),
- internal::Vector::minimum_parallel_grain_size);
+ dealii::internal::Vector::minimum_parallel_grain_size);
}
v.val,
val,
(x*boost::lambda::_1 + a*boost::lambda::_2),
- internal::Vector::minimum_parallel_grain_size);
+ dealii::internal::Vector::minimum_parallel_grain_size);
}
* @author Wolfgang Bangerth, 1998, 2006, 2008
*/
template <int structdim, int dim, int spacedim>
-class MGDoFAccessor : public internal::MGDoFAccessor::Inheritance<structdim,dim,spacedim>::BaseClass
+class MGDoFAccessor : public dealii::internal::MGDoFAccessor::Inheritance<structdim,dim,spacedim>::BaseClass
{
public:
/**
* simpler.
*/
typedef
- typename internal::MGDoFAccessor::Inheritance<structdim,dim,spacedim>::BaseClass
+ typename dealii::internal::MGDoFAccessor::Inheritance<structdim,dim,spacedim>::BaseClass
BaseClass;
/**
* Return a pointer to the @p ith line
* bounding this @p Hex.
*/
- typename internal::MGDoFHandler::Iterators<dim,spacedim>::line_iterator
+ typename dealii::internal::MGDoFHandler::Iterators<dim,spacedim>::line_iterator
line (const unsigned int i) const;
/**
* Return a pointer to the @p ith quad
* bounding this @p Hex.
*/
- typename internal::MGDoFHandler::Iterators<dim,spacedim>::quad_iterator
+ typename dealii::internal::MGDoFHandler::Iterators<dim,spacedim>::quad_iterator
quad (const unsigned int i) const;
/**
operator = (const MGDoFAccessor &da);
template <int, int> friend class MGDoFHandler;
- friend struct internal::MGDoFHandler::Implementation;
+ friend struct dealii::internal::MGDoFHandler::Implementation;
};
* @author Wolfgang Bangerth, 2010
*/
template <int spacedim>
-class MGDoFAccessor<0,1,spacedim> : public internal::MGDoFAccessor::Inheritance<0,1,spacedim>::BaseClass
+class MGDoFAccessor<0,1,spacedim> : public dealii::internal::MGDoFAccessor::Inheritance<0,1,spacedim>::BaseClass
{
public:
/**
* simpler.
*/
typedef
- typename internal::MGDoFAccessor::Inheritance<0,1,spacedim>::BaseClass
+ typename dealii::internal::MGDoFAccessor::Inheritance<0,1,spacedim>::BaseClass
BaseClass;
/**
* This function is not implemented in 1D,
* and maps to MGDoFAccessor<2, dim>::line in 2D.
*/
- typename internal::MGDoFHandler::Iterators<dim,spacedim>::face_iterator
+ typename dealii::internal::MGDoFHandler::Iterators<dim,spacedim>::face_iterator
face (const unsigned int i) const;
/**
* access to the triangulation
* data).
*/
- typename internal::MGDoFHandler::Iterators<dim,spacedim>::cell_iterator
+ typename dealii::internal::MGDoFHandler::Iterators<dim,spacedim>::cell_iterator
neighbor_child_on_subface (const unsigned int face_no,
const unsigned int subface_no) const;
template <int dim, int spacedim=dim>
class MGDoFHandler : public DoFHandler<dim,spacedim>
{
- typedef internal::MGDoFHandler::Iterators<dim,spacedim> IteratorSelector;
+ typedef dealii::internal::MGDoFHandler::Iterators<dim,spacedim> IteratorSelector;
public:
typedef typename IteratorSelector::CellAccessor cell_accessor;
typedef typename IteratorSelector::FaceAccessor face_accessor;
* are numbers which start from
* zero on each level.
*/
- std::vector<internal::DoFHandler::DoFLevel<dim>*> mg_levels;
+ std::vector<dealii::internal::DoFHandler::DoFLevel<dim>*> mg_levels;
/**
* Space to store the DoF numbers
* for the faces.
*/
- internal::DoFHandler::DoFFaces<dim> * mg_faces;
+ dealii::internal::DoFHandler::DoFFaces<dim> * mg_faces;
/**
* For each vertex there is a
* Make accessor objects friends.
*/
template <int dim1, int dim2, int dim3> friend class MGDoFAccessor;
- friend struct internal::MGDoFHandler::Implementation;
+ friend struct dealii::internal::MGDoFHandler::Implementation;
};
/*@}*/