]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-2: Separate number from main file name. 14816/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 21 Feb 2023 22:36:58 +0000 (15:36 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 22 Feb 2023 13:44:05 +0000 (06:44 -0700)
examples/step-2/step-2.cc

index 89d37f38ac4cec2686a1687edb6eaaa378945fce..c4cc8f865b73b5451cdd00c716518fee1855603f 100644 (file)
@@ -181,7 +181,7 @@ void distribute_dofs(DoFHandler<2> &dof_handler)
   sparsity_pattern.copy_from(dynamic_sparsity_pattern);
 
   // With this, we can now write the results to a file:
-  std::ofstream out("sparsity_pattern1.svg");
+  std::ofstream out("sparsity-pattern-1.svg");
   sparsity_pattern.print_svg(out);
   // The result is stored in an <code>.svg</code> file, where each nonzero entry
   // in the matrix corresponds with a red square in the image. The output will
@@ -237,7 +237,7 @@ void renumber_dofs(DoFHandler<2> &dof_handler)
   SparsityPattern sparsity_pattern;
   sparsity_pattern.copy_from(dynamic_sparsity_pattern);
 
-  std::ofstream out("sparsity_pattern2.svg");
+  std::ofstream out("sparsity-pattern-2.svg");
   sparsity_pattern.print_svg(out);
 }
 

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.