]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix the normalization script: it accidentally replaced '-0.009' by '0.009' because...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 23 Nov 2011 12:33:46 +0000 (12:33 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 23 Nov 2011 12:33:46 +0000 (12:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@24764 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/scripts/normalize.pl

index ec90f06c2007d304d2965c2d289e2309e122725e..3dc53ffe30ea131c71761541afdb41de97a212df 100644 (file)
@@ -1,7 +1,7 @@
 ######################################################################
 # $Id$
 #
-# Copyright (C) 2001, 2003, 2005, 2010, the deal.II authors
+# Copyright (C) 2001, 2003, 2005, 2010, 2011, the deal.II authors
 #
 # Remove insignificant volatile data from output files of tests
 #
@@ -40,9 +40,9 @@ s/line <\d+> of file <.*\//file </;
 
 #s/-?\d?\.\d+e-[123456789]\d+/0.00/g;
 
-# Zeroes are zero
-
-s/-0\.00/0.00/g;
+# See if we have a -0.0... (not followed by any other digit) and replace it
+# by the same number without the negative sign
+s/-0\.(0+)(?!\d)/0.\1/g;
 
 # Residual values
 

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.