GfsOutputErrorNorm

From Gerris

Jump to: navigation, search

GfsOutputErrorNorm is used to write the norms of the difference between a scalar field and a user-defined reference field.

The norms are written using the following formatting:

Description time: 1.2 first: 1e-2 second: 3e-2 infty: 6e-3 bias: 1e-6

where Description is a description of the scalar field.

The syntax in parameter files is:

[ GfsOutputScalar ] {
  s = [ GfsFunction ]
  unbiased = 1
  v = Error
  w = [ GfsFunction ]
}

where s is the function defining the reference field and v is used to store the difference between the scalar and reference fields (v can be left undefined in which case a temporary variable is used).

If unbiased is set to one (default is zero), the bias (i.e. mean value of the difference) is substracted before computing the norms.

The norms can be weighted using the optional parameter w.

Examples

Personal tools
communication