[cig-commits] commit: increasing the tolerance for these tests. Also making the optionsFile parsing more intelligent

Mercurial hg at geodynamics.org
Mon Feb 1 15:29:54 PST 2010


changeset:   204:70008f4ca592
user:        JulianGiordani
date:        Mon Dec 07 09:37:49 2009 +1100
files:       script/checkpointTest.pl
description:
increasing the tolerance for these tests. Also making the optionsFile parsing more intelligent


diff -r 461e47db761d -r 70008f4ca592 script/checkpointTest.pl
--- a/script/checkpointTest.pl	Fri Dec 04 17:01:04 2009 +1100
+++ b/script/checkpointTest.pl	Mon Dec 07 09:37:49 2009 +1100
@@ -267,7 +267,7 @@ sub readOptionsFile {
 	foreach $line (<OPTFILE>) {
 		chomp $line;
 		# only process lines that start with np
-		if( $line =~ m/^np\s+(\d+)\s+(.*)/ ) {
+		if( $line =~ m/^np\s+(\d+)(\s*$|\s+(.*))/ ) {
 			$procs->[$line_I] = $1;
 			$commandLines->[$line_I] = $2;
 			$line_I++;
@@ -279,7 +279,7 @@ sub testConvergence {
 sub testConvergence {
  	my $datFile = $_[0]; 
 	my @keys;
-	my $tolerance = 3e-2;
+	my $tolerance = 1e-3;
 	my @errors;
 	my $line;
 	my $nKeys;



More information about the CIG-COMMITS mailing list