precision Module



Variables

Type Visibility Attributes Name Initial
integer, public, parameter :: wp = real64

Working precision kind parameter. Change to real32 or real128 to switch the entire solver's precision.


Functions

public pure elemental function safe_vel(mom, rho) result(v)

FP-trap-safe velocity = momentum / density for output/diagnostics.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: mom

Momentum component (rho*u).

real(kind=wp), intent(in) :: rho

Momentum component (rho*u). Density.

Return Value real(kind=wp)