commons_misc_m Module

Miscellaneous routines that are common to all models



Contents


Subroutines

public subroutine error_ananum(comm_handler, ndim, ana, num, nrm2, nrmsup, err2, errsup)

Computes the norm and difference between two fields, useful for MMS-analysis

Arguments

Type IntentOptional 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