Skip to content
Snippets Groups Projects
Commit 65b5a0f8 authored by Gesner Passos's avatar Gesner Passos
Browse files

Change Propagation error

re #6538
parent 83328cf8
No related branches found
No related tags found
No related merge requests found
......@@ -339,7 +339,7 @@ void Q1D2::addWaveAdj(const double * c, const double * Dc, MantidVec::iterator b
for( ; bInOut != end; ++e2InOut, ++c, ++Dc, ++bInOut)
{
//first the error
*e2InOut += ( (*e2InOut)*(*c)*(*c) )+( (*Dc)*(*Dc)*(*bInOut)*(*bInOut) );
*e2InOut = ( (*e2InOut)*(*c)*(*c) )+( (*Dc)*(*Dc)*(*bInOut)*(*bInOut) );
// now the actual calculation a = b*c
*bInOut = (*bInOut)*(*c);
}
......
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