From 3fcafc296ebe9b46ad83be45cb5f44678df91010 Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 10 Oct 2001 14:44:20 +0000 Subject: [PATCH] Fix forgotten reverse grey scale color function in declaration of parameters. git-svn-id: https://svn.dealii.org/branches/Branch-3-2@5138 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/source/data_out_base.all_dimensions.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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()); }; -- 2.39.5