DoFTools::make_hanging_node_constraints (dofh, cm2);
{
- std::ofstream file((std::string("p4est_2d_constraintmatrix_01/ncpu_") + Utilities::int_to_string(Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat." + Utilities::int_to_string(myid)).c_str());
+ std::ofstream file((std::string("dat." + Utilities::int_to_string(myid)).c_str());
file << "**** proc " << myid << std::endl;
cm.print(file);
file << "****" << std::endl;
{
for (unsigned int i=0; i<numproc; ++i)
{
- cat_file((std::string("p4est_2d_constraintmatrix_01/ncpu_") + Utilities::int_to_string(Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat." + Utilities::int_to_string(i)).c_str());
+ cat_file((std::string("dat." + Utilities::int_to_string(i)).c_str());
}
}
if (myid==0)
{
- std::ofstream file((std::string("p4est_2d_constraintmatrix_03/ncpu_") + Utilities::int_to_string(Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat." + Utilities::int_to_string(myid)).c_str());
+ std::ofstream file((std::string("dat." + Utilities::int_to_string(myid)).c_str());
file << "**** proc " << myid << std::endl;
x_dub.print(file);
}
if (myid==0)
{
- cat_file((std::string("p4est_2d_constraintmatrix_03/ncpu_") + Utilities::int_to_string(Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat." + Utilities::int_to_string(0)).c_str());
+ cat_file((std::string("dat." + Utilities::int_to_string(0)).c_str());
}
tr.set_boundary (0);
DoFTools::make_hanging_node_constraints (dofh, cm2);
{
- std::ofstream file((std::string("p4est_3d_constraintmatrix_01/ncpu_") + Utilities::int_to_string(Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat." + Utilities::int_to_string(myid)).c_str());
+ std::ofstream file((std::string("dat." + Utilities::int_to_string(myid)).c_str());
file << "**** proc " << myid << std::endl;
cm.print(file);
file << "****" << std::endl;
{
for (unsigned int i=0; i<numproc; ++i)
{
- cat_file((std::string("p4est_3d_constraintmatrix_01/ncpu_") + Utilities::int_to_string(Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat." + Utilities::int_to_string(i)).c_str());
+ cat_file((std::string("dat." + Utilities::int_to_string(i)).c_str());
}
}
IndexSet locally_active (dof.n_dofs());
DoFTools::extract_locally_active_dofs (dof, locally_active);
- std::ofstream file((std::string("p4est_3d_constraintmatrix_04/ncpu_") + Utilities::int_to_string(Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat." + Utilities::int_to_string(myid)).c_str());
+ std::ofstream file((std::string("dat." + Utilities::int_to_string(myid)).c_str());
file << "**** proc " << myid << ": \n\n";
file << "Constraints:\n";
constraints.print(file);
{
for (unsigned int i=0; i<numproc; ++i)
{
- cat_file((std::string("p4est_3d_constraintmatrix_04/ncpu_") + Utilities::int_to_string(Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat." + Utilities::int_to_string(i)).c_str());
+ cat_file((std::string("dat." + Utilities::int_to_string(i)).c_str());
}
}
}
deallog << "hyper_cube" << std::endl;
std::string filename =
- (std::string("p4est_save_01/ncpu_") + Utilities::int_to_string(Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat");
+ (std::string("dat");
{
parallel::distributed::Triangulation<dim> tr(MPI_COMM_WORLD);
if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 0)
deallog << "hyper_cube" << std::endl;
- std::string filename =
- (std::string("p4est_save_02/ncpu_") + Utilities::int_to_string(Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat");
+ std::string filename = "dat";
{
parallel::distributed::Triangulation<dim> tr(MPI_COMM_WORLD);
if (Utilities::MPI::this_mpi_process (MPI_COMM_WORLD) == 0)
deallog << "hyper_cube" << std::endl;
- std::string filename =
- (std::string ("p4est_save_03/ncpu_") + Utilities::int_to_string (Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat");
+ std::string filename = "dat";
{
parallel::distributed::Triangulation<dim> tr (MPI_COMM_WORLD);
// write the info on ghost processors and import indices to file
{
- std::ofstream file((std::string("parallel_partitioner_03/ncpu_") + Utilities::int_to_string(Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat." + Utilities::int_to_string(myid)).c_str());
+ std::ofstream file(("dat." + Utilities::int_to_string(myid)).c_str());
file << "**** proc " << myid << std::endl;
file << "ghost targets: ";
for (unsigned int i=0; i<v.ghost_targets().size(); ++i)
{
for (unsigned int i=0; i<numproc; ++i)
{
- cat_file((std::string("parallel_partitioner_03/ncpu_") + Utilities::int_to_string(Utilities::MPI::n_mpi_processes (MPI_COMM_WORLD)) + "/dat." + Utilities::int_to_string(i)).c_str());
+ cat_file(("dat." + Utilities::int_to_string(i)).c_str());
}
}