From: Wolfgang Bangerth Date: Wed, 10 Oct 2001 14:42:06 +0000 (+0000) Subject: Fix forgotten reverse grey scale color function in declaration of parameters. X-Git-Tag: v8.0.0~18683 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f76829c6292dd3ea60c619d4f8f8014964af083;p=dealii.git Fix forgotten reverse grey scale color function in declaration of parameters. git-svn-id: https://svn.dealii.org/trunk@5137 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/data_out_base.all_dimensions.cc b/deal.II/base/source/data_out_base.all_dimensions.cc index 4604412c0b..ab989cc4c9 100644 --- a/deal.II/base/source/data_out_base.all_dimensions.cc +++ b/deal.II/base/source/data_out_base.all_dimensions.cc @@ -283,7 +283,7 @@ void DataOutBase::EpsFlags::declare_parameters (ParameterHandler &prm) prm.declare_entry ("Color shading of interior of cells", "true", Patterns::Bool()); prm.declare_entry ("Color function", "default", - Patterns::Selection ("default|grey scale")); + Patterns::Selection ("default|grey scale|reverse grey scale")); }; @@ -306,8 +306,16 @@ void DataOutBase::EpsFlags::parse_parameters (ParameterHandler &prm) shade_cells = prm.get_bool ("Color shading of interior of cells"); if (prm.get("Color function") == "default") color_function = &default_color_function; - else + else if (prm.get("Color function") == "grey scale") color_function = &grey_scale_color_function; + else if (prm.get("Color function") == "reverse grey scale") + color_function = &reverse_grey_scale_color_function; + else + // we shouldn't get here, since + // the parameter object should + // already have checked that the + // given value is valid + Assert (false, ExcInternalError()); }; diff --git a/deal.II/doc/news/2001/c-3-2.html b/deal.II/doc/news/2001/c-3-2.html index 734b47291e..97b7e9d105 100644 --- a/deal.II/doc/news/2001/c-3-2.html +++ b/deal.II/doc/news/2001/c-3-2.html @@ -35,7 +35,15 @@ documentation, etc.

base

    - +
  1. + Fixed: The DataOutBase::EpsFlags + class forgot to declare the reverse grey scale function as one + possible input for the color function for the + ParameterHandler class. This is now + possible. +
    + (WB 2001/10/10) +