Skip to content
Snippets Groups Projects
Commit c49ff141 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

repair computation order for Windows

parent 1289de14
No related branches found
No related tags found
No related merge requests found
...@@ -165,8 +165,10 @@ void InterferenceFunction2DParaCrystal::transformToPrincipalAxes(double qx, doub ...@@ -165,8 +165,10 @@ void InterferenceFunction2DParaCrystal::transformToPrincipalAxes(double qx, doub
//! Returns interference function for fixed angle xi. //! Returns interference function for fixed angle xi.
double InterferenceFunction2DParaCrystal::interferenceForXi(double xi) const double InterferenceFunction2DParaCrystal::interferenceForXi(double xi) const
{ {
return interference1D(m_qx, m_qy, xi, 0) // don't touch order of computation; problems under Windows
* interference1D(m_qx, m_qy, xi + m_lattice->latticeAngle(), 1); double rx = interference1D(m_qx, m_qy, xi, 0);
double ry = interference1D(m_qx, m_qy, xi + m_lattice->latticeAngle(), 1);
return rx * ry;
} }
//! Returns interference function for fixed xi in the dimension determined by the given index. //! Returns interference function for fixed xi in the dimension determined by the given index.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment