]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Keep the 'dealii::' in 'using namespace dealii::'. 9209/head
authorDavid Wells <drwells@email.unc.edu>
Tue, 31 Dec 2019 23:05:58 +0000 (18:05 -0500)
committerDavid Wells <drwells@email.unc.edu>
Tue, 31 Dec 2019 23:05:58 +0000 (18:05 -0500)
Some of our example code on the website (e.g., step-40) doesn't work since we
get rid of the preceding dealii and print

    using namespace ::LinearAlgebraPETSc;

when it should be

    using namespace dealii::LinearAlgebraPETSc;

instead. This change keeps the 'dealii::' only in this case, which currently
only occurs in step-40.cc, step-50.cc, step-55.cc, and local_integrators.h.

doc/doxygen/scripts/filter

index 16666a2a7ac474b969c952441d80e32a7afc24b0..5195da724a90e4d695b2f27bfa79d50196b9a376 100755 (executable)
@@ -60,6 +60,11 @@ while (<>)
         s/::dealii::(.*)\\$/::\1        \\/g;
         s/dealii::(.*)\\$/\1        \\/g;
     }
+    elsif (m/using namespace dealii::/)
+    {
+        # namespace declarations (see, e.g., step-40) in source code don't work
+        # if we cut off the 'dealii::' part, so leave it in that case.
+    }
     else
     {
         s/(::)?dealii::/::/g;

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.