pbepack_lib Module

Auxiliary functions.


Uses

  • module~~pbepack_lib~~UsesGraph module~pbepack_lib pbepack_lib module~pbepack_kinds pbepack_kinds module~pbepack_lib->module~pbepack_kinds stdlib_math stdlib_math module~pbepack_lib->stdlib_math stdlib_optval stdlib_optval module~pbepack_lib->stdlib_optval stdlib_strings stdlib_strings module~pbepack_lib->stdlib_strings iso_fortran_env iso_fortran_env module~pbepack_kinds->iso_fortran_env

Used by

  • module~~pbepack_lib~~UsedByGraph module~pbepack_lib pbepack_lib module~pbepack_agg pbepack_agg module~pbepack_agg->module~pbepack_lib module~pbepack_basetypes pbepack_basetypes module~pbepack_agg->module~pbepack_basetypes module~pbepack_basetypes->module~pbepack_lib module~pbepack_pbe pbepack_pbe module~pbepack_pbe->module~pbepack_lib module~pbepack_pbe->module~pbepack_agg module~pbepack_pbe->module~pbepack_basetypes module~pbepack_quadratures pbepack_quadratures module~pbepack_pbe->module~pbepack_quadratures module~pbepack_break pbepack_break module~pbepack_pbe->module~pbepack_break module~pbepack_flow pbepack_flow module~pbepack_pbe->module~pbepack_flow module~pbepack_growth pbepack_growth module~pbepack_pbe->module~pbepack_growth module~pbepack_quadratures->module~pbepack_lib module~pbepack pbepack module~pbepack->module~pbepack_pbe module~pbepack->module~pbepack_quadratures module~pbepack_break->module~pbepack_basetypes module~pbepack_flow->module~pbepack_basetypes module~pbepack_growth->module~pbepack_basetypes

Functions

public elemental function delta_kronecker(i, j) result(res)

Delta kronecker .

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: i

integer

integer, intent(in) :: j

integer

Return Value real(kind=rk)

public elemental function boxcar(x, a, b, height) result(res)

Boxcar function.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: x

argument

real(kind=rk), intent(in) :: a

interval limit

real(kind=rk), intent(in) :: b

interval limit

real(kind=rk), intent(in) :: height

pulse height

Return Value real(kind=rk)

public elemental function expo1d(x, x0, n0) result(res)

1D Exponential distribution.

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(in) :: x

random variable

real(kind=rk), intent(in), optional :: x0

mean value

real(kind=rk), intent(in), optional :: n0

initial number of particles

Return Value real(kind=rk)

public pure function buildfilename(folder, basename, suffix, extension) result(res)

Build file name from its parts.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in), optional :: folder

folder (default=".\")

character(len=*), intent(in), optional :: basename

basename (default="temp")

character(len=*), intent(in), optional :: suffix

suffix (default="")

character(len=*), intent(in), optional :: extension

extension (default="txt")

Return Value character(len=:), allocatable


Subroutines

public subroutine writearray(filename, x, fmt)

Write content of real array (rank=1,2) to file.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename

file name

real(kind=rk), intent(in) :: x(..)

array to be written

character(len=*), intent(in), optional :: fmt

format specifier (default="es16.5e3")