Error norm output

Name

Error norm output -- Comparing fields with a reference solution

Synopsis


#include <gfs.h>


            GfsOutputErrorNorm;

GfsOutputClass* gfs_output_error_norm_class (void);

Description

GfsOutputErrorNorm computes the norms of the difference between a given scalar field and a reference solution and outputs the resulting summary.

The syntax in parameter files is as follows:

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

with

sA GfsFunction defining the reference solution.
unbiasedAn optional parameter specifying if the bias between the reference solution and the computed solution should be removed prior to error computation. This is useful for fields which are defined up to an additive constant (pressure for example).
vAn optional parameter specifying a new variable used to store the error in each cell. The default is not to store the error.

Details

GfsOutputErrorNorm

typedef struct {
  GfsFunction * s;
  gboolean unbiased;
} GfsOutputErrorNorm;


gfs_output_error_norm_class ()

GfsOutputClass* gfs_output_error_norm_class (void);

Returns :