#include <fstream>
-std::string id_to_string(const CellId &id)
-{
- std::ostringstream ss;
- ss << id;
- return ss.str();
-}
-
template<int dim>
void pack_function (const typename parallel::distributed::Triangulation<dim,dim>::cell_iterator &cell,
const typename parallel::distributed::Triangulation<dim,dim>::CellStatus status,
cell != tr.end();
++cell)
{
- if (id_to_string(cell->id())=="0_1:0")
- {
+ if (cell->id().to_string()=="0_1:0")
+ {
cell->set_refine_flag();
}
- else if (id_to_string(cell->parent()->id())=="3_0:")
+ else if (cell->parent()->id().to_string()=="3_0:")
cell->set_coarsen_flag();
-
+
if (cell->is_locally_owned())
{
deallog << "myid=" << myid << " cellid=" << cell->id();
// lctrl);
}
-std::string id_to_string(const CellId &id)
-{
- std::ostringstream ss;
- ss << id;
- return ss.str();
-}
-
template<int dim>
void test_loop(DoFHandler<dim> &dofs, MeshWorker::LoopControl &lctrl)
{
// lctrl);
}
-std::string id_to_string(const CellId &id)
-{
- std::ostringstream ss;
- ss << id;
- return ss.str();
-}
-
template<int dim>
void test_loop(DoFHandler<dim> &dofs, MeshWorker::LoopControl &lctrl)
{
// lctrl);
}
-std::string id_to_string(const CellId &id)
-{
- std::ostringstream ss;
- ss << id;
- return ss.str();
-}
-
template<int dim>
void test_loop(DoFHandler<dim> &dofs, MeshWorker::LoopControl &lctrl)
{
// lctrl);
}
-std::string id_to_string(const CellId &id)
-{
- std::ostringstream ss;
- ss << id;
- return ss.str();
-}
-
template<int dim>
void test_loop(DoFHandler<dim> &dofs, MeshWorker::LoopControl &lctrl)
{
// lctrl);
}
-std::string id_to_string(const CellId &id)
-{
- std::ostringstream ss;
- ss << id;
- return ss.str();
-}
-
template<int dim>
void test_loop(DoFHandler<dim> &dofs, MeshWorker::LoopControl &lctrl)
{
matrix.print(deallog.get_file_stream());
}
-std::string id_to_string(const CellId &id)
-{
- std::ostringstream ss;
- ss << id;
- return ss.str();
-}
-
template<int dim>
void
f >> id;
if (f.eof())
break;
- std::vector<types::global_dof_index> &d = dofmap[id_to_string(id)];
+ std::vector<types::global_dof_index> &d = dofmap[id.to_string()];
d.reserve(fe.dofs_per_cell);
for (unsigned int i=0; i<fe.dofs_per_cell; ++i)
{
if (!cell->is_locally_owned())
continue;
- std::vector<types::global_dof_index> &renumbered = dofmap[id_to_string(cell->id())];
+ std::vector<types::global_dof_index> &renumbered = dofmap[cell->id().to_string()];
cell->set_dof_indices(renumbered);
cell->update_cell_dof_indices_cache();