Skip to content

Commit

Permalink
Re #4693 fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mdoucet committed Feb 7, 2012
1 parent 1c19797 commit 210310e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Code/Mantid/Framework/Crystal/src/TOFExtinction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ namespace Crystal
double wl = peak1.getWavelength();
double twoth = peak1.getScattering();
double tbar = 0.0;
double transmission = absor_sphere(twoth, wl, tbar);
//double transmission = absor_sphere(twoth, wl, tbar);
// Extinction Correction


Expand Down Expand Up @@ -243,8 +243,10 @@ namespace Crystal
}
double TOFExtinction::getEgLaue(double Eg, double twoth, double wl)
{
UNUSED_ARG(wl)
UNUSED_ARG(twoth)
// Tomiyoshi, Yamada and Watanabe
double EgLaue = Eg*std::tan(twoth/2.0)/wl;
//double EgLaue = Eg*std::tan(twoth/2.0)/wl;
// Ask Xiaoping if this should be EqLaue
return Eg;
}
Expand Down Expand Up @@ -287,6 +289,8 @@ namespace Crystal
}
double TOFExtinction::getRg(double EgLaue, double EsLaue, double wl, double twoth)
{
UNUSED_ARG(wl)
UNUSED_ARG(twoth)
// Two-theta dependence by Becker & Coppens, Acta Cryst A 30, 129 (1974)
// The factor is std::pow((std::sin(twoth/2)/wl),2) for tof neutron
//double Es = r*std::pow((1000.0*std::sin(twoth/2)/wl),2);
Expand Down

0 comments on commit 210310e

Please sign in to comment.