Skip to content

Commit

Permalink
refs #4201 Fixing test failure
Browse files Browse the repository at this point in the history
Trivial fix (piece of code commented)
  • Loading branch information
abuts committed Dec 9, 2011
1 parent c8e91c9 commit d395410
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Code/Mantid/Framework/Kernel/src/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,13 +787,13 @@ void Momentum::init()
if ( emode == 1 ) // Direct
{
ltot = l2;
sfpFrom = ( sqrt( PhysicalConstants::NeutronMass / (2.0*PhysicalConstants::meV) ) * TOFisinMicroseconds * l1 ) / sqrt(efixed);
sfpFrom = sfpTo;
do_sfpFrom = true;
}
else if ( emode == 2 ) // Indirect
{
ltot = l1;
sfpFrom = ( sqrt( PhysicalConstants::NeutronMass / (2.0*PhysicalConstants::meV) ) * TOFisinMicroseconds * l2 ) / sqrt(efixed);
sfpFrom = sfpTo;
do_sfpFrom = true;
}
else
Expand Down Expand Up @@ -829,7 +829,7 @@ double Momentum::singleFromTOF(const double tof) const
{
double x = tof;
if (do_sfpFrom) x -= sfpFrom;
if (x==0.) x = DBL_MIN;
if (x==0) x = DBL_MIN;

return factorFrom/x;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ class LOOP_ND{
num << i;
std::string Key = pH->Q_modes[Q]+pH->dE_modes[MODE]+pH->ConvModes[CONV]+num.str();

// pH->alg_selector.insert(std::pair<std::string,pMethod>(Key,&ConvertToMDEvents::processQND<i,Q,MODE,CONV>));
pH->alg_selector.insert(std::pair<std::string,pMethod>(Key,&ConvertToMDEvents::processQND<i,Q,MODE,CONV>));
}
};
template< Q_state Q, AnalMode MODE, CnvrtUnits CONV >
Expand Down

0 comments on commit d395410

Please sign in to comment.