Skip to content

Commit

Permalink
Consistency check: checksum for values
Browse files Browse the repository at this point in the history
  • Loading branch information
h-dh committed Jan 19, 2016
1 parent b67d04b commit 6407160
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 24 deletions.
2 changes: 2 additions & 0 deletions scripts/qa-dkrz
Original file line number Diff line number Diff line change
Expand Up @@ -4017,6 +4017,8 @@ std_out()

taskSum()
{
test ${NO_SUMMARY:-f} = t && return

local cvr prj qrs tcl ers
test ${PROJECT} && prj="-P ${PROJECT}"
test ${QA_RESULTS} && qrs="-r ${QA_RESULTS}"
Expand Down
33 changes: 9 additions & 24 deletions src/QA_PT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,34 +221,19 @@ Consistency::check(Variable &dataVar, std::string entryID)
else
capt += hdhC::tf_var(xt_a[0], hdhC::colon) ;

capt += "changed ";

if( xt_eq[0] == "values" )
capt += "layout ";
capt += "across sub-temporal files";

std::string text(xt_eq[0]) ;
text += " (table)" ;
if( xt_eq[1].size() )
{
text += '=' ;
text += xt_eq[1] ;
}
capt += "values have changed ";
else
text += ": not available" ;

text += "\n" ;
text += xf_eq[0] ;
text += " (file)" ;
if( xf_eq[1].size() )
{
text += '=' ;
text += xf_eq[1] ;
capt += xt_eq[0] ;
capt += " has changed from";
capt += hdhC::tf_val(xt_eq[1]) ;
capt += " to";
capt += hdhC::tf_val(xf_eq[1]) ;
capt += " across experiment or sub-temporal files";
}
else
text += ": not available" ;

(void) notes->operate(capt, text) ;
(void) notes->operate(capt) ;
notes->setCheckMetaStr( "FAIL" );
}

Expand Down Expand Up @@ -555,7 +540,7 @@ Consistency::getValues(Variable &var, std::string &s)
}

s += ",values=";
s += hdhC::double2String(ck) ;
s += hdhC::double2String(ck, "p=|adj,float") ;

return;
}
Expand Down

0 comments on commit 6407160

Please sign in to comment.