// ---------------------------------------------------------------------
//
-// Copyright (C) 2001 - 2014 by the deal.II authors
+// Copyright (C) 2001 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
write_mat_id_to_file(tria);
// Write to file to visually check result
{
- const std::string filename = "grid_no_halo_" + std::to_string(dim) + "d.vtk";
- std::ofstream f(filename);
+ const std::string filename = "grid_no_halo_" + Utilities::int_to_string(dim) + "d.vtk";
+ std::ofstream f(filename.c_str());
GridOut().write_vtk (tria, f);
}
write_mat_id_to_file(tria);
// Write to file to visually check result
{
- const std::string filename = "grid_with_halo_" + std::to_string(dim) + "d.vtk";
- std::ofstream f(filename);
+ const std::string filename = "grid_with_halo_" + Utilities::int_to_string(dim) + "d.vtk";
+ std::ofstream f(filename.c_str());
GridOut().write_vtk (tria, f);
}
}
// ---------------------------------------------------------------------
//
-// Copyright (C) 2001 - 2014 by the deal.II authors
+// Copyright (C) 2001 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
write_mat_id_to_file(tria);
// Write to file to visually check result
{
- const std::string filename = "grid_no_halo_" + std::to_string(dim) + "d.vtk";
- std::ofstream f(filename);
+ const std::string filename = "grid_no_halo_" + Utilities::int_to_string(dim) + "d.vtk";
+ std::ofstream f(filename.c_str());
GridOut().write_vtk (tria, f);
}
write_mat_id_to_file(tria);
// Write to file to visually check result
{
- const std::string filename = "grid_with_halo_" + std::to_string(dim) + "d.vtk";
- std::ofstream f(filename);
+ const std::string filename = "grid_with_halo_" + Utilities::int_to_string(dim) + "d.vtk";
+ std::ofstream f(filename.c_str());
GridOut().write_vtk (tria, f);
}
}
// ---------------------------------------------------------------------
//
-// Copyright (C) 2001 - 2014 by the deal.II authors
+// Copyright (C) 2001 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
write_mat_id_to_file(tria);
// Write to file to visually check result
{
- const std::string filename = "grid_no_halo_" + std::to_string(dim) + "d.vtk";
- std::ofstream f(filename);
+ const std::string filename = "grid_no_halo_" + Utilities::int_to_string(dim) + "d.vtk";
+ std::ofstream f(filename.c_str());
GridOut().write_vtk (tria, f);
}
write_mat_id_to_file(tria);
// Write to file to visually check result
{
- const std::string filename = "grid_with_halo_" + std::to_string(dim) + "d.vtk";
- std::ofstream f(filename);
+ const std::string filename = "grid_with_halo_" + Utilities::int_to_string(dim) + "d.vtk";
+ std::ofstream f(filename.c_str());
GridOut().write_vtk (tria, f);
}
}
// ---------------------------------------------------------------------
//
-// Copyright (C) 2001 - 2014 by the deal.II authors
+// Copyright (C) 2001 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
write_active_fe_index_to_file(dof_handler);
// Write to file to visually check result
{
- const std::string filename = "grid_no_halo_" + std::to_string(dim) + "d.vtk";
- write_vtk(dof_handler, filename);
+ const std::string filename = "grid_no_halo_" + Utilities::int_to_string(dim) + "d.vtk";
+ write_vtk(dof_handler, filename.c_str());
}
// Compute a halo layer around active fe index 2 and set it to active fe index 3
write_active_fe_index_to_file(dof_handler);
// Write to file to visually check result
{
- const std::string filename = "grid_with_halo_" + std::to_string(dim) + "d.vtk";
- write_vtk(dof_handler, filename);
+ const std::string filename = "grid_with_halo_" + Utilities::int_to_string(dim) + "d.vtk";
+ write_vtk(dof_handler, filename.c_str());
}
}
// ---------------------------------------------------------------------
//
-// Copyright (C) 2001 - 2014 by the deal.II authors
+// Copyright (C) 2001 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
write_active_fe_index_to_file(dof_handler);
// Write to file to visually check result
{
- const std::string filename = "grid_no_halo_" + std::to_string(dim) + "d.vtk";
- write_vtk(dof_handler, filename);
+ const std::string filename = "grid_no_halo_" + Utilities::int_to_string(dim) + "d.vtk";
+ write_vtk(dof_handler, filename.c_str());
}
// Compute a halo layer around active fe indices 2,3 and set it to active fe index 4
write_active_fe_index_to_file(dof_handler);
// Write to file to visually check result
{
- const std::string filename = "grid_with_halo_" + std::to_string(dim) + "d.vtk";
- write_vtk(dof_handler, filename);
+ const std::string filename = "grid_with_halo_" + Utilities::int_to_string(dim) + "d.vtk";
+ write_vtk(dof_handler, filename.c_str());
}
}
// ---------------------------------------------------------------------
//
-// Copyright (C) 2001 - 2014 by the deal.II authors
+// Copyright (C) 2001 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
GridGenerator::hyper_cube(tria);
tria.refine_global(2);
-// // Write to file for visual inspection
-// const std::string filename = "grid_" + std::to_string(dim) + "d";
-// tria.write_mesh_vtk(filename.c_str());
-
typedef typename parallel::distributed::Triangulation<dim>::active_cell_iterator cell_iterator;
// Mark a small block at the corner of the hypercube