]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Determine the kind/style of each program based on a file in its directory.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 21 Jun 2010 19:21:30 +0000 (19:21 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 21 Jun 2010 19:21:30 +0000 (19:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@21259 0785d39b-7218-0410-832d-ea1e28bc413d

37 files changed:
deal.II/doc/doxygen/tutorial/steps.pl
deal.II/doc/doxygen/tutorial/steps.png
deal.II/examples/step-1/doc/kind [new file with mode: 0644]
deal.II/examples/step-10/doc/kind [new file with mode: 0644]
deal.II/examples/step-11/doc/kind [new file with mode: 0644]
deal.II/examples/step-12/doc/kind [new file with mode: 0644]
deal.II/examples/step-13/doc/kind [new file with mode: 0644]
deal.II/examples/step-14/doc/kind [new file with mode: 0644]
deal.II/examples/step-15/doc/kind [new file with mode: 0644]
deal.II/examples/step-16/doc/kind [new file with mode: 0644]
deal.II/examples/step-17/doc/kind [new file with mode: 0644]
deal.II/examples/step-18/doc/kind [new file with mode: 0644]
deal.II/examples/step-19/doc/kind [new file with mode: 0644]
deal.II/examples/step-2/doc/kind [new file with mode: 0644]
deal.II/examples/step-20/doc/kind [new file with mode: 0644]
deal.II/examples/step-21/doc/kind [new file with mode: 0644]
deal.II/examples/step-22/doc/kind [new file with mode: 0644]
deal.II/examples/step-23/doc/kind [new file with mode: 0644]
deal.II/examples/step-24/doc/kind [new file with mode: 0644]
deal.II/examples/step-25/doc/kind [new file with mode: 0644]
deal.II/examples/step-27/doc/kind [new file with mode: 0644]
deal.II/examples/step-28/doc/kind [new file with mode: 0644]
deal.II/examples/step-29/doc/kind [new file with mode: 0644]
deal.II/examples/step-3/doc/kind [new file with mode: 0644]
deal.II/examples/step-30/doc/kind [new file with mode: 0644]
deal.II/examples/step-31/doc/kind [new file with mode: 0644]
deal.II/examples/step-33/doc/kind [new file with mode: 0644]
deal.II/examples/step-34/doc/kind [new file with mode: 0644]
deal.II/examples/step-35/doc/kind [new file with mode: 0644]
deal.II/examples/step-36/doc/kind [new file with mode: 0644]
deal.II/examples/step-39/doc/kind [new file with mode: 0644]
deal.II/examples/step-4/doc/kind [new file with mode: 0644]
deal.II/examples/step-5/doc/kind [new file with mode: 0644]
deal.II/examples/step-6/doc/kind [new file with mode: 0644]
deal.II/examples/step-7/doc/kind [new file with mode: 0644]
deal.II/examples/step-8/doc/kind [new file with mode: 0644]
deal.II/examples/step-9/doc/kind [new file with mode: 0644]

index b34e0d0362c0d5e232fd7ccc979c9dc585951e5e..164ac458688254510487c7c5f431858c18bf3107 100644 (file)
@@ -14,56 +14,17 @@ my @steps = (1,2,3,4,5,6,7,8,9,
             30,31,   33,34,35,36,      39);
 ;
 
-my $essential = ',height=.7,width=.7,shape="octagon",fillcolor="green"';
-my $technique = ',fillcolor="orange"';
-my $fluidapplication = ',fillcolor="yellow"';
-my $solidsapplication = ',fillcolor="lightblue"';
-my $timeapplication = ',fillcolor="blue"';
-my $unfinished = ',style="dashed"';
-
 # List of additional node attributes to highlight purpose and state of the example
-
-my %attribute = (
-    1 => $essential,
-    2 => $essential,
-    3 => $essential,
-    4 => $essential,
-    5 => $essential,
-    6 => $essential,
-
-    7 => $technique,
-    8 => $technique,
-    9 => $technique,
-    10 => $technique,
-    11 => $technique,
-    12 => $technique,
-    13 => $technique,
-    14 => $technique,
-    15 => $technique,
-    16 => $technique,
-    19 => $technique,
-    27 => $technique,
-    28 => $technique,
-    29 => $technique,
-    30 => $technique,
-    36 => $technique,
-
-    17 => $solidsapplication,
-    18 => $solidsapplication,
-
-    20 => $fluidapplication,
-    21 => $fluidapplication,
-    22 => $fluidapplication,
-    31 => $fluidapplication,
-    33 => $fluidapplication,
-    34 => $fluidapplication,
-    35 => $fluidapplication,
-
-    23 => $timeapplication,
-    24 => $timeapplication,
-    25 => $timeapplication,
+my %style = (
+ "basic" => ',height=.7,width=.7,shape="octagon",fillcolor="green"',
+ "techniques" => ',fillcolor="orange"',
+ "fluids" => ',fillcolor="yellow"',
+ "solids" => ',fillcolor="lightblue"',
+ "time dependent" => ',fillcolor="blue"',
+ "unfinished" => ',style="dashed"'
     );
 
+
 # Print a preamble setting common attributes
 
 print << 'EOT'
@@ -99,7 +60,16 @@ foreach (@steps)
     chop $tooltip;
 
     printf "Step%02d [label=\"$_\", URL=\"../deal.II/step_$_.html\", tooltip=\"$tooltip\"", $_;
-    print $attribute{$_};
+
+    open KF, "../../../examples/step-$_/doc/kind"
+       or die "Can't open kind file step-$_/doc/kind";
+    my $kind = <KF>;
+    close KF;
+    chop $kind;
+
+    die "Unknown kind '$kind' in file step-$_/doc/kind" if (! defined $style{$kind});
+    print "$style{$kind}";
+
     print "];\n";
 }
 
index a38026a59c77e07567bc72f7641a8c8a6e5e85bb..c555e35a689ec148ef72dec3979277292ed81c69 100644 (file)
Binary files a/deal.II/doc/doxygen/tutorial/steps.png and b/deal.II/doc/doxygen/tutorial/steps.png differ
diff --git a/deal.II/examples/step-1/doc/kind b/deal.II/examples/step-1/doc/kind
new file mode 100644 (file)
index 0000000..15a13db
--- /dev/null
@@ -0,0 +1 @@
+basic
diff --git a/deal.II/examples/step-10/doc/kind b/deal.II/examples/step-10/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-11/doc/kind b/deal.II/examples/step-11/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-12/doc/kind b/deal.II/examples/step-12/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-13/doc/kind b/deal.II/examples/step-13/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-14/doc/kind b/deal.II/examples/step-14/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-15/doc/kind b/deal.II/examples/step-15/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-16/doc/kind b/deal.II/examples/step-16/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-17/doc/kind b/deal.II/examples/step-17/doc/kind
new file mode 100644 (file)
index 0000000..56e049c
--- /dev/null
@@ -0,0 +1 @@
+solids
diff --git a/deal.II/examples/step-18/doc/kind b/deal.II/examples/step-18/doc/kind
new file mode 100644 (file)
index 0000000..56e049c
--- /dev/null
@@ -0,0 +1 @@
+solids
diff --git a/deal.II/examples/step-19/doc/kind b/deal.II/examples/step-19/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-2/doc/kind b/deal.II/examples/step-2/doc/kind
new file mode 100644 (file)
index 0000000..15a13db
--- /dev/null
@@ -0,0 +1 @@
+basic
diff --git a/deal.II/examples/step-20/doc/kind b/deal.II/examples/step-20/doc/kind
new file mode 100644 (file)
index 0000000..e62f4e7
--- /dev/null
@@ -0,0 +1 @@
+fluids
diff --git a/deal.II/examples/step-21/doc/kind b/deal.II/examples/step-21/doc/kind
new file mode 100644 (file)
index 0000000..e62f4e7
--- /dev/null
@@ -0,0 +1 @@
+fluids
diff --git a/deal.II/examples/step-22/doc/kind b/deal.II/examples/step-22/doc/kind
new file mode 100644 (file)
index 0000000..e62f4e7
--- /dev/null
@@ -0,0 +1 @@
+fluids
diff --git a/deal.II/examples/step-23/doc/kind b/deal.II/examples/step-23/doc/kind
new file mode 100644 (file)
index 0000000..86a44aa
--- /dev/null
@@ -0,0 +1 @@
+time dependent
diff --git a/deal.II/examples/step-24/doc/kind b/deal.II/examples/step-24/doc/kind
new file mode 100644 (file)
index 0000000..86a44aa
--- /dev/null
@@ -0,0 +1 @@
+time dependent
diff --git a/deal.II/examples/step-25/doc/kind b/deal.II/examples/step-25/doc/kind
new file mode 100644 (file)
index 0000000..86a44aa
--- /dev/null
@@ -0,0 +1 @@
+time dependent
diff --git a/deal.II/examples/step-27/doc/kind b/deal.II/examples/step-27/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-28/doc/kind b/deal.II/examples/step-28/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-29/doc/kind b/deal.II/examples/step-29/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-3/doc/kind b/deal.II/examples/step-3/doc/kind
new file mode 100644 (file)
index 0000000..15a13db
--- /dev/null
@@ -0,0 +1 @@
+basic
diff --git a/deal.II/examples/step-30/doc/kind b/deal.II/examples/step-30/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-31/doc/kind b/deal.II/examples/step-31/doc/kind
new file mode 100644 (file)
index 0000000..e62f4e7
--- /dev/null
@@ -0,0 +1 @@
+fluids
diff --git a/deal.II/examples/step-33/doc/kind b/deal.II/examples/step-33/doc/kind
new file mode 100644 (file)
index 0000000..e62f4e7
--- /dev/null
@@ -0,0 +1 @@
+fluids
diff --git a/deal.II/examples/step-34/doc/kind b/deal.II/examples/step-34/doc/kind
new file mode 100644 (file)
index 0000000..e62f4e7
--- /dev/null
@@ -0,0 +1 @@
+fluids
diff --git a/deal.II/examples/step-35/doc/kind b/deal.II/examples/step-35/doc/kind
new file mode 100644 (file)
index 0000000..e62f4e7
--- /dev/null
@@ -0,0 +1 @@
+fluids
diff --git a/deal.II/examples/step-36/doc/kind b/deal.II/examples/step-36/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-39/doc/kind b/deal.II/examples/step-39/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-4/doc/kind b/deal.II/examples/step-4/doc/kind
new file mode 100644 (file)
index 0000000..15a13db
--- /dev/null
@@ -0,0 +1 @@
+basic
diff --git a/deal.II/examples/step-5/doc/kind b/deal.II/examples/step-5/doc/kind
new file mode 100644 (file)
index 0000000..15a13db
--- /dev/null
@@ -0,0 +1 @@
+basic
diff --git a/deal.II/examples/step-6/doc/kind b/deal.II/examples/step-6/doc/kind
new file mode 100644 (file)
index 0000000..15a13db
--- /dev/null
@@ -0,0 +1 @@
+basic
diff --git a/deal.II/examples/step-7/doc/kind b/deal.II/examples/step-7/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-8/doc/kind b/deal.II/examples/step-8/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques
diff --git a/deal.II/examples/step-9/doc/kind b/deal.II/examples/step-9/doc/kind
new file mode 100644 (file)
index 0000000..c1d9154
--- /dev/null
@@ -0,0 +1 @@
+techniques

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.