Skip to content

Commit

Permalink
Re #7279. Fixed unit test that originally worked on my machine.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Jun 14, 2013
1 parent abc32dc commit bf7dedf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class SetSampleMaterialTest : public CxxTest::TestSuite

const Material *m_sampleMaterial = &(testWS->sample().getMaterial());
TS_ASSERT_DELTA( m_sampleMaterial->numberDensity(), 0.0236649, 0.0001 );
TS_ASSERT_DELTA( m_sampleMaterial->totalScatterXSection(NeutronAtom::ReferenceLambda), 3.1409, 0.0001);
TS_ASSERT_DELTA( m_sampleMaterial->totalScatterXSection(NeutronAtom::ReferenceLambda), 3.1404, 0.0001);
TS_ASSERT_DELTA( m_sampleMaterial->absorbXSection(NeutronAtom::ReferenceLambda), 0.0925, 0.0001);

AnalysisDataService::Instance().remove(wsName);
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/Kernel/src/Material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ namespace Mantid
*/
double Material::totalScatterXSection(const double lambda) const
{
return (cohScatterXSection(lambda) + incohScatterXSection(lambda));
return m_element.tot_scatt_xs;
}

/**
Expand Down

0 comments on commit bf7dedf

Please sign in to comment.