Miscellaneous routines that are common to all models
Computes the norm and difference between two fields, useful for MMS-analysis
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(comm_handler_t), | intent(in) | :: | comm_handler |
Communicators |
||
| integer, | intent(in) | :: | ndim |
Number of points |
||
| real(kind=GP), | intent(in), | dimension(ndim) | :: | ana |
Field 1, e.g. analytic MMS-solution |
|
| real(kind=GP), | intent(in), | dimension(ndim) | :: | num |
Field 2, e.g. numerical solution |
|
| real(kind=GP), | intent(out) | :: | nrm2 |
L2 norm of Field 1 |
||
| real(kind=GP), | intent(out) | :: | nrmsup |
Supremums norm of Field 1 |
||
| real(kind=GP), | intent(out) | :: | err2 |
Error in L2 norm |
||
| real(kind=GP), | intent(out) | :: | errsup |
Error in Supremumsnorm |