fci_norms Subroutine

public subroutine fci_norms(comm, mesh, vol, u, nrm1, nrm2, nrm_max)

Computes L1, L2 and Lsup norm of solution Integretaion is performed with weighing of FCI flux box volumes

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: comm

MPI communicator

type(mesh_cart_t), intent(in) :: mesh

Mesh

real(kind=FP), intent(in), dimension(mesh%get_n_points()) :: vol

Flux box volumes

real(kind=FP), intent(in), dimension(mesh%get_n_points()) :: u

Variable u

real(kind=FP), intent(out) :: nrm1

L1 Norm

real(kind=FP), intent(out) :: nrm2

L2 Norm

real(kind=FP), intent(out) :: nrm_max

Supremumsnorm