-// $Id$
+/*---------------------------- dof_tools.h ---------------------------*/
+/* $Id$ */
+#ifndef __dof_tools_H
+#define __dof_tools_H
+/*---------------------------- dof_tools.h ---------------------------*/
// Copyright Guido Kanschat, 1999
-#ifndef __deal_dof_tools_H
-#define __deal_dof_tools_H
-#include <bvector.h>
+#include <vector>
+
+
+
/**
* Operations on DoF-numbers.
* is not destroyed by this process.
*/
template<int dim>
- static void extract_dofs(const DoFHandler<dim>& dof,
- const bit_vector& select,
- bit_vector& selected_dofs);
+ static void extract_dofs(const DoFHandler<dim> &dof,
+ const vector<bool> &select,
+ vector<bool> &selected_dofs);
/**
* Same as #extract_dofs# for multi-level.
*/
template<int dim>
- static void extract_level_dofs(unsigned int level,
- const MGDoFHandler<dim>& dof,
- const bit_vector& select,
- bit_vector& selected_dofs);
+ static void extract_level_dofs(const unsigned int level,
+ const MGDoFHandler<dim> &dof,
+ const vector<bool> &select,
+ vector<bool> &selected_dofs);
};
+
+
+/*---------------------------- dof_tools.h ---------------------------*/
+/* end of #ifndef __dof_tools_H */
#endif
+/*---------------------------- dof_tools.h ---------------------------*/
#include <fe/fe_system.h>
#include <basic/dof_tools.h>
+
+
template<int dim>
void
-DoFTools::extract_dofs(const DoFHandler<dim>& dof,
- const bit_vector& local_select,
- bit_vector& selected_dofs)
+DoFTools::extract_dofs(const DoFHandler<dim> &dof,
+ const vector<bool> &local_select,
+ vector<bool> &selected_dofs)
{
- const FiniteElement<dim>& fe = dof.get_fe();
+ const FiniteElement<dim> &fe = dof.get_fe();
Assert(local_select.size() == fe.n_components,
ExcDimensionMismatch(local_select.size(), fe.n_components));
Assert(selected_dofs.size() == dof.n_dofs(),
}
}
+
+
template<int dim>
void
-DoFTools::extract_level_dofs(unsigned int level,
- const MGDoFHandler<dim>& dof,
- const bit_vector& local_select,
- bit_vector& selected_dofs)
+DoFTools::extract_level_dofs(const unsigned int level,
+ const MGDoFHandler<dim> &dof,
+ const vector<bool> &local_select,
+ vector<bool> &selected_dofs)
{
const FiniteElement<dim>& fe = dof.get_fe();
Assert(local_select.size() == fe.n_components,
}
}
+
+
+// explicit instantiations
template void DoFTools::extract_dofs(const DoFHandler<deal_II_dimension>& dof,
- const bit_vector& local_select,
- bit_vector& selected_dofs);
+ const vector<bool>& local_select,
+ vector<bool>& selected_dofs);
template void DoFTools::extract_level_dofs(unsigned int level,
const MGDoFHandler<deal_II_dimension>& dof,
- const bit_vector& local_select,
- bit_vector& selected_dofs);
-//template DoFTools<deal_II_dimension>;
+ const vector<bool>& local_select,
+ vector<bool>& selected_dofs);
+