Commit 516b75a0 authored by COULAUD Olivier's avatar COULAUD Olivier

Ass setNbElements method; this is needed to compute the RMS for a vector (force)

parent 280eba73
......@@ -250,7 +250,7 @@ struct FMath{
l2Dot += inAcc.getl2Dot();
max = Max(max,inAcc.getmax());
maxDiff = Max(maxDiff,inAcc.getInfNorm());
nbElements += inAcc.getnbElements();
nbElements += inAcc.getNbElements();
}
FReal getl2Diff() const{
......@@ -262,9 +262,12 @@ struct FMath{
FReal getmax() const{
return max;
}
FReal getnbElements() const{
FReal getNbElements() const{
return nbElements;
}
void setNbElements(const int & n) {
nbElements = n;
}
/** Get the root mean squared error*/
FReal getL2Norm() const{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment