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

+ msg from SUmDWBA

parent 307177b2
No related branches found
No related tags found
1 merge request!560Resolve Decorator Pattern in IFormFactor hierarchy
......@@ -87,10 +87,14 @@ complex_t SumDWBA::coherentFF(const DiffuseElement& ele) const
// Note that the order of multiplication matters:
// If a prefactor is 0, then theFF() won't be called.
const complex_t term_S = T_in * T_out * m_ff->theFF(q_TT);
std::cout << "DEBUG TERM q=" << q_TT.getQ() << std::endl;
complex_t ff = m_ff->theFF(q_TT);
std::cout << "DEBUG TERM ->" << ff << std::endl << std::endl;
const complex_t term_S = T_in * T_out * ff;
const complex_t term_RS = R_in * T_out * m_ff->theFF(q_RT);
const complex_t term_SR = T_in * R_out * m_ff->theFF(q_TR);
const complex_t term_RSR = R_in * R_out * m_ff->theFF(q_RR);
std::cout << "DEBUG TERM done with remaining terms" << ff << std::endl << std::endl;
return term_S + term_RS + term_SR + term_RSR;
}
......
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