Skip to content

Commit

Permalink
Fix silly error in clang fix. Print out the names of the disagreeing …
Browse files Browse the repository at this point in the history
…calculators in testOsc.
  • Loading branch information
cjbacchus committed Nov 5, 2020
1 parent 8763930 commit 1f60d46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OscLib/PMNS.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ template class osc::_PMNS<double>;
#ifdef __clang__
namespace stan::math{
inline bool isinf(const stan::math::var& x){return stan::math::is_inf(x);}
inline bool isnan(const stan::math::var& x){return !stan::math::is_nan(x);}
inline bool isnan(const stan::math::var& x){return stan::math::is_nan(x);}
inline bool isfinite(const stan::math::var& x){return !stan::math::is_inf(x) && !stan::math::is_nan(x);}
inline stan::math::var copysign(stan::math::var x, stan::math::var y){return y > 0 ? x : -x;}
}
Expand Down
2 changes: 1 addition & 1 deletion OscLib/PMNSOpt.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ template class osc::_PMNSOpt<double>;
#ifdef __clang__
namespace stan::math{
inline bool isinf(const stan::math::var& x){return stan::math::is_inf(x);}
inline bool isnan(const stan::math::var& x){return !stan::math::is_nan(x);}
inline bool isnan(const stan::math::var& x){return stan::math::is_nan(x);}
inline bool isfinite(const stan::math::var& x){return !stan::math::is_inf(x) && !stan::math::is_nan(x);}
inline stan::math::var copysign(stan::math::var x, stan::math::var y){return y > 0 ? x : -x;}

Expand Down
2 changes: 1 addition & 1 deletion OscLib/test/testOsc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ int main()
std::cerr << "!!! Probabilities for " << title.Data()
<< " differ at " << E << " GeV. "
<< Ps[i] << " vs " << Ps[j]
<< " between calculators " << i << " and " << j << std::endl;
<< " between calculators " << names[i] << " and " << names[j] << std::endl;
}
} // end for j
} // end for i
Expand Down

0 comments on commit 1f60d46

Please sign in to comment.