]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Only output default value if it differs from the one given.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 1 Sep 1999 07:50:58 +0000 (07:50 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 1 Sep 1999 07:50:58 +0000 (07:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@1717 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/parameter_handler.cc

index 553ef7d13e7abe0ceafff2d8c0ea3d0841af0217..e75d4371b1a6aa126a71cf709564308d82fab3bc 100644 (file)
@@ -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:

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.