ana1Tests.analysisTools.normL2Scal¶
- normL2Scal(analyticalSol, numericalSol, cellSize, cosAngle)[source]¶
Compute L2 and Lmax norm of the error between the analytic and numerical solution :Parameters: * analyticalSol (numpy array) – analytic solution array
numericalSol (numpy array) – numericalSol solution array
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