version 0.6.0
Loading...
Searching...
No Matches
mod_compute_error::compute_error Interface Reference

Compute the error of a field defined on cells or faces.

Public Member Functions

subroutine compute_error_cell (field, reference_field, grid_volume, is_relative_error, mask, error_l1, error_l2, error_linf)
 Compute relative or absolute error of a field defined on cells with respect to a reference field.
 
subroutine compute_error_face (field, reference_field, grid_volume, is_relative_error, mask, error_l1, error_l1_u, error_l1_v, error_l1_w, error_l2, error_l2_u, error_l2_v, error_l2_w, error_linf, error_linf_u, error_linf_v, error_linf_w)
 Compute error of a field defined on faces with respect to a reference field.
 

Member Function/Subroutine Documentation

◆ compute_error_cell()

subroutine mod_compute_error::compute_error::compute_error_cell ( double precision, dimension(:,:,:), intent(in) field,
double precision, dimension(:,:,:), intent(in) reference_field,
double precision, dimension(:,:,:), intent(in) grid_volume,
logical, intent(in) is_relative_error,
logical, dimension(:,:,:), intent(in), optional mask,
double precision, intent(out), optional error_l1,
double precision, intent(out), optional error_l2,
double precision, intent(out), optional error_linf )

The error is computed against the argument reference_field, which must be a cell-centered field.

Parameters
[in]fieldcell-centered field
[in]reference_fieldcell-centered field
[in]grid_volumevolume of the grid where field is defined
[in]is_relative_errorboolean to compute relative or absolute error
[in]maskrestrict the sum where mask is .true.
[out]error_l1L1 norm of the error
[out]error_l2L2 norm of the error
[out]error_linfLinf norm of the error

◆ compute_error_face()

subroutine mod_compute_error::compute_error::compute_error_face ( type(t_face_field), intent(in) field,
type(t_face_field), intent(in) reference_field,
type(t_face_field), intent(in) grid_volume,
logical, intent(in) is_relative_error,
type(t_logical_face_field), intent(in), optional mask,
double precision, intent(out), optional error_l1,
double precision, intent(out), optional error_l1_u,
double precision, intent(out), optional error_l1_v,
double precision, intent(out), optional error_l1_w,
double precision, intent(out), optional error_l2,
double precision, intent(out), optional error_l2_u,
double precision, intent(out), optional error_l2_v,
double precision, intent(out), optional error_l2_w,
double precision, intent(out), optional error_linf,
double precision, intent(out), optional error_linf_u,
double precision, intent(out), optional error_linf_v,
double precision, intent(out), optional error_linf_w )

The error is computed against the argument reference_field, which must be a face-centered field.

Parameters
[in]fieldface-centered field
[in]reference_fieldface-centered field
[in]grid_volumevolume of the grid where field is defined
[in]is_relative_errorboolean to compute relative or absolute error
[in]maskrestrict the sum where mask is .true.
[out]error_l1L1 norm of the error on all vector components
[out]error_l1_uL1 norm of the error in direction _u
[out]error_l1_vL1 norm of the error in direction _v
[out]error_l1_wL1 norm of the error in direction _w
[out]error_l2L2 norm of the error on all vector components
[out]error_l2_uL2 norm of the error in direction _u
[out]error_l2_vL2 norm of the error in direction _v
[out]error_l2_wL2 norm of the error in direction _w
[out]error_linfLinf norm of the error on all vector components
[out]error_linf_uLinf norm of the error in direction _u
[out]error_linf_vLinf norm of the error in direction _v
[out]error_linf_wLinf norm of the error in direction _w

The documentation for this interface was generated from the following file: