athena__normalisation Module

Module containing procedures for normalising input and output data


Uses

    • coreutils

Subroutines

public subroutine linear_renormalise(input, min, max)

Renormalise input data to a specified range

Arguments

Type IntentOptional Attributes Name
real(kind=real32), intent(inout), dimension(:) :: input

Input data to be renormalised

real(kind=real32), intent(in), optional :: min

Minimum and maximum values for renormalisation

real(kind=real32), intent(in), optional :: max

Minimum and maximum values for renormalisation

public subroutine renormalise_norm(input, norm, mirror)

Renormalise input data to a unit norm

Arguments

Type IntentOptional Attributes Name
real(kind=real32), intent(inout), dimension(:) :: input

Input data to be renormalised

real(kind=real32), intent(in), optional :: norm

Desired norm value

logical, intent(in), optional :: mirror

Boolean whether the data should be mirrored

public subroutine renormalise_sum(input, norm, mirror, magnitude)

Renormalise input data to a unit sum

Arguments

Type IntentOptional Attributes Name
real(kind=real32), intent(inout), dimension(:) :: input

Input data to be renormalised

real(kind=real32), intent(in), optional :: norm

Desired sum value

logical, intent(in), optional :: mirror

Booleans whether the data should be mirrored or use magnitude

logical, intent(in), optional :: magnitude

Booleans whether the data should be mirrored or use magnitude