From: bangerth Date: Mon, 21 Jun 2010 19:21:30 +0000 (+0000) Subject: Determine the kind/style of each program based on a file in its directory. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=741fd09aafdedb057427e275d9b068be60583c0a;p=dealii-svn.git Determine the kind/style of each program based on a file in its directory. git-svn-id: https://svn.dealii.org/trunk@21259 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/doc/doxygen/tutorial/steps.pl b/deal.II/doc/doxygen/tutorial/steps.pl index b34e0d0362..164ac45868 100644 --- a/deal.II/doc/doxygen/tutorial/steps.pl +++ b/deal.II/doc/doxygen/tutorial/steps.pl @@ -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 = ; + close KF; + chop $kind; + + die "Unknown kind '$kind' in file step-$_/doc/kind" if (! defined $style{$kind}); + print "$style{$kind}"; + print "];\n"; } diff --git a/deal.II/doc/doxygen/tutorial/steps.png b/deal.II/doc/doxygen/tutorial/steps.png index a38026a59c..c555e35a68 100644 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 index 0000000000..15a13db451 --- /dev/null +++ b/deal.II/examples/step-1/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-10/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-11/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-12/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-13/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-14/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-15/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-16/doc/kind @@ -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 index 0000000000..56e049c91a --- /dev/null +++ b/deal.II/examples/step-17/doc/kind @@ -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 index 0000000000..56e049c91a --- /dev/null +++ b/deal.II/examples/step-18/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-19/doc/kind @@ -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 index 0000000000..15a13db451 --- /dev/null +++ b/deal.II/examples/step-2/doc/kind @@ -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 index 0000000000..e62f4e7222 --- /dev/null +++ b/deal.II/examples/step-20/doc/kind @@ -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 index 0000000000..e62f4e7222 --- /dev/null +++ b/deal.II/examples/step-21/doc/kind @@ -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 index 0000000000..e62f4e7222 --- /dev/null +++ b/deal.II/examples/step-22/doc/kind @@ -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 index 0000000000..86a44aa1ef --- /dev/null +++ b/deal.II/examples/step-23/doc/kind @@ -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 index 0000000000..86a44aa1ef --- /dev/null +++ b/deal.II/examples/step-24/doc/kind @@ -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 index 0000000000..86a44aa1ef --- /dev/null +++ b/deal.II/examples/step-25/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-27/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-28/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-29/doc/kind @@ -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 index 0000000000..15a13db451 --- /dev/null +++ b/deal.II/examples/step-3/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-30/doc/kind @@ -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 index 0000000000..e62f4e7222 --- /dev/null +++ b/deal.II/examples/step-31/doc/kind @@ -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 index 0000000000..e62f4e7222 --- /dev/null +++ b/deal.II/examples/step-33/doc/kind @@ -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 index 0000000000..e62f4e7222 --- /dev/null +++ b/deal.II/examples/step-34/doc/kind @@ -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 index 0000000000..e62f4e7222 --- /dev/null +++ b/deal.II/examples/step-35/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-36/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-39/doc/kind @@ -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 index 0000000000..15a13db451 --- /dev/null +++ b/deal.II/examples/step-4/doc/kind @@ -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 index 0000000000..15a13db451 --- /dev/null +++ b/deal.II/examples/step-5/doc/kind @@ -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 index 0000000000..15a13db451 --- /dev/null +++ b/deal.II/examples/step-6/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-7/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-8/doc/kind @@ -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 index 0000000000..c1d9154931 --- /dev/null +++ b/deal.II/examples/step-9/doc/kind @@ -0,0 +1 @@ +techniques