switch (dim)
{
case 1:
- solution_names.push_back ("displacement");
+ solution_names.emplace_back ("displacement");
break;
case 2:
- solution_names.push_back ("x_displacement");
- solution_names.push_back ("y_displacement");
+ solution_names.emplace_back ("x_displacement");
+ solution_names.emplace_back ("y_displacement");
break;
case 3:
- solution_names.push_back ("x_displacement");
- solution_names.push_back ("y_displacement");
- solution_names.push_back ("z_displacement");
+ solution_names.emplace_back ("x_displacement");
+ solution_names.emplace_back ("y_displacement");
+ solution_names.emplace_back ("z_displacement");
break;
default:
Assert (false, ExcInternalError());
switch (dim)
{
case 1:
- solution_names.push_back ("delta_x");
+ solution_names.emplace_back ("delta_x");
break;
case 2:
- solution_names.push_back ("delta_x");
- solution_names.push_back ("delta_y");
+ solution_names.emplace_back ("delta_x");
+ solution_names.emplace_back ("delta_y");
break;
case 3:
- solution_names.push_back ("delta_x");
- solution_names.push_back ("delta_y");
- solution_names.push_back ("delta_z");
+ solution_names.emplace_back ("delta_x");
+ solution_names.emplace_back ("delta_y");
+ solution_names.emplace_back ("delta_z");
break;
default:
Assert (false, ExcNotImplemented());
return;
std::vector<std::string> stokes_names (dim, "velocity");
- stokes_names.push_back ("p");
+ stokes_names.emplace_back ("p");
std::vector<DataComponentInterpretation::DataComponentInterpretation>
stokes_component_interpretation
(dim+1, DataComponentInterpretation::component_is_scalar);
BoussinesqFlowProblem<dim>::Postprocessor::get_names() const
{
std::vector<std::string> solution_names (dim, "velocity");
- solution_names.push_back ("p");
- solution_names.push_back ("T");
- solution_names.push_back ("friction_heating");
- solution_names.push_back ("partition");
+ solution_names.emplace_back ("p");
+ solution_names.emplace_back ("T");
+ solution_names.emplace_back ("friction_heating");
+ solution_names.emplace_back ("partition");
return solution_names;
}
component_names ()
{
std::vector<std::string> names (dim, "momentum");
- names.push_back ("density");
- names.push_back ("energy_density");
+ names.emplace_back ("density");
+ names.emplace_back ("energy_density");
return names;
}
{
std::vector<std::string> names;
for (unsigned int d=0; d<dim; ++d)
- names.push_back ("velocity");
- names.push_back ("pressure");
+ names.emplace_back ("velocity");
+ names.emplace_back ("pressure");
if (do_schlieren_plot == true)
- names.push_back ("schlieren_plot");
+ names.emplace_back ("schlieren_plot");
return names;
}
}
}
std::vector<std::string> joint_solution_names (dim, "velocity");
- joint_solution_names.push_back ("pressure");
- joint_solution_names.push_back ("saturation");
+ joint_solution_names.emplace_back ("pressure");
+ joint_solution_names.emplace_back ("saturation");
std::vector<DataComponentInterpretation::DataComponentInterpretation>
data_component_interpretation
StokesProblem<dim>::output_results (const unsigned int refinement_cycle) const
{
std::vector<std::string> solution_names (dim, "velocity");
- solution_names.push_back ("pressure");
+ solution_names.emplace_back ("pressure");
std::vector<DataComponentInterpretation::DataComponentInterpretation>
data_component_interpretation
std::vector<std::string> solution_names (dim, "velocity");
- solution_names.push_back ("pressure");
+ solution_names.emplace_back ("pressure");
std::vector<DataComponentInterpretation::DataComponentInterpretation>
data_component_interpretation
(dim, DataComponentInterpretation::component_is_part_of_vector);
interpolated_relevant = interpolated;
{
std::vector<std::string> solution_names (dim, "ref_u");
- solution_names.push_back ("ref_p");
+ solution_names.emplace_back ("ref_p");
data_out.add_data_vector (interpolated_relevant, solution_names,
DataOut<dim>::type_dof_data,
data_component_interpretation);