From: wolf Date: Wed, 1 Sep 1999 07:50:58 +0000 (+0000) Subject: Only output default value if it differs from the one given. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=848fa484d68db4f8488cdf0d28ecf48af68faf24;p=dealii-svn.git Only output default value if it differs from the one given. git-svn-id: https://svn.dealii.org/trunk@1717 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/parameter_handler.cc b/deal.II/base/source/parameter_handler.cc index 553ef7d13e..e75d4371b1 100644 --- a/deal.II/base/source/parameter_handler.cc +++ b/deal.II/base/source/parameter_handler.cc @@ -509,8 +509,10 @@ void ParameterHandler::print_parameters_section (ostream &out, for (ptr = pd->entries.begin(); ptr != pd->entries.end(); ++ptr) { // check whether this entry is listed - // in the Changed tree - if (pc->entries.find(ptr->first) != pc->entries.end()) + // in the Changed tree and actually + // differs from the default value + if ((pc->entries.find(ptr->first) != pc->entries.end()) && + (pc->entries[ptr->first].first != pd->entries[ptr->first].first)) switch (style) { case Text: