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
No related branches found
No related tags found
No related merge requests found
...@@ -52,9 +52,11 @@ public: ...@@ -52,9 +52,11 @@ public:
w_(w), w_(w),
n_(1) n_(1)
{ {
m_[0]=val; if(MAX_MOMENT>0){
for(unsigned int i=1;i<MAX_MOMENT;++i){ m_[0]=val;
m_[i]=0.0; 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