grid_in.attach_triangulation(triangulation);
std::ifstream input_file(parameters.mesh_filename);
- Assert(input_file, ExcFileNotOpen(parameters.mesh_filename.c_str()));
+ Assert(input_file, ExcFileNotOpen(parameters.mesh_filename));
grid_in.read_ucd(input_file);
}
{
std::string filename = "nsbench2.inp";
std::ifstream file(filename);
- Assert(file, ExcFileNotOpen(filename.c_str()));
+ Assert(file, ExcFileNotOpen(filename));
grid_in.read_ucd(file);
}
<< std::setfill('0') << frequency_idx;
std::string filename = (parameters.simulation_name + "_" +
frequency_idx_stream.str() + ".vtu");
- data_out.write_vtu_in_parallel(filename.c_str(), mpi_communicator);
+ data_out.write_vtu_in_parallel(filename, mpi_communicator);
}
}
else if (n_groups == 1)
{
// write only a single data file in parallel
- this->write_vtu_in_parallel(filename.c_str(), mpi_communicator);
+ this->write_vtu_in_parallel(filename, mpi_communicator);
}
else
{
MPI_Comm comm_group;
int ierr = MPI_Comm_split(mpi_communicator, color, rank, &comm_group);
AssertThrowMPI(ierr);
- this->write_vtu_in_parallel(filename.c_str(), comm_group);
+ this->write_vtu_in_parallel(filename, comm_group);
Utilities::MPI::free_communicator(comm_group);
#else
AssertThrow(false, ExcMessage("Logical error. Should not arrive here."));