ana1Tests.analysisTools.computeErrorAndNorm¶
- computeErrorAndNorm(localError, analyticalSol2, cellSize, cosAngle)[source]¶
Compute error between two functions given their norm 2 :Parameters: * localError (numpy array) – norm2 of the error function
analyticalSol2 (numpy array) – norm2 of the reference function
cellSize (float) – grid cell size
cosAngle (float) – cosine of the slope angle
- Returns
errorL2 (float) – L2 error
errorL2Rel (float) – Relativ L2 error
errorMax (float) – LMax error
errorMaxRel (float) – Relativ LMax error