Skip to content
Snippets Groups Projects
Commit 283438ee authored by Andreas Schenk's avatar Andreas Schenk
Browse files

skip initialization of moment array in stat accumulator for MAX_MOMENT=0

parent 7aa19107
Branches
Tags
No related merge requests found
......@@ -52,9 +52,11 @@ public:
w_(w),
n_(1)
{
m_[0]=val;
for(unsigned int i=1;i<MAX_MOMENT;++i){
m_[i]=0.0;
if(MAX_MOMENT>0){
m_[0]=val;
for(unsigned int i=1;i<MAX_MOMENT;++i){
m_[i]=0.0;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment