Commit e1fac8e8 authored by Lynn Garren's avatar Lynn Garren
Browse files

Add parentheses to fix a VC++ warning

parent 356b3461
2010-03-09 Lynn Garren <garren@fnal.gov>
* GenericFunctions/src/RKIntegrator.cc:
Add parentheses to fix a VC++ warning
==============================
16.06.10 Release CLHEP-2.1.0.0.b01
==============================
......
......@@ -244,7 +244,7 @@ void RKIntegrator::RKFunction::rkstep(const RKIntegrator::RKData::Data & s, RKIn
double emax = (*std::max_element(errors.begin(),errors.end()))/eps;
if (emax > 1) {
h = std::max(SAFETY*h*pow(emax,PSHRNK),0.1*h);
if (!((float) Tmp0.time+h - (float) Tmp0.time) > 0 ) {
if (!(((float) Tmp0.time+h - (float) Tmp0.time) > 0) ) {
std::cerr << "Warning, RK Integrator step underflow" << std::endl;
}
Tmp1.time = Tmp0.time+h;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment