]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Simplify code a bit.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 23 Mar 2020 02:17:32 +0000 (20:17 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 23 Mar 2020 02:17:32 +0000 (20:17 -0600)
examples/step-11/step-11.cc

index 10625546f47a23b4ac0d531b1b144586c7651d16..2424e1abfaa2fd78ac9ded1062565f1eede22ea9 100644 (file)
@@ -442,9 +442,8 @@ namespace Step11
                            mapping.get_degree(),
                            DataOut<dim>::curved_inner_cells);
 
-    std::ofstream file(("solution-c=" + std::to_string(cycle) +
-                        ".p=" + std::to_string(mapping.get_degree()) + ".vtu")
-                         .c_str());
+    std::ofstream file("solution-c=" + std::to_string(cycle) +
+                       ".p=" + std::to_string(mapping.get_degree()) + ".vtu");
 
     data_out.write_vtu(file);
   }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.