utils_tables
Module
Description
This module contains low-level utilities related to tabulated data
- References:
None
- Owner:
Daniel Price
- Runtime parameters:
None
- Dependencies:
None
Quick access
- Routines:
diff(),differentiate(),find_nearest_index(),flip_array(),interp_1d(),interpolate_1d(),interpolator(),linear_interpolator_one_d(),linspace(),logspace(),yinterp()
Variables
Subroutines and functions
- function table_utils/yinterp(ytab, xtab, x)
- Parameters:
ytab (*) [real,in]
xtab (*) [real,in]
x [real,in]
- Return:
yinterp [real,pure]
- Called from:
densityprofile_force(),set_softened_core(),set_density_profile()
- subroutine table_utils/linspace(x, xmin, xmax[, dx])
- Parameters:
x (*) [real,out]
xmin [real,in]
xmax [real,in]
dx [real,out,]
- Called from:
- subroutine table_utils/logspace(x, xmin, xmax)
- Parameters:
x (*) [real,out]
xmin [real,in]
xmax [real,in]
- Called from:
- subroutine table_utils/interpolator(array, value, valueidx)
- Parameters:
array (*) [real,in]
value [real,in]
valueidx [integer,out]
- Called from:
- subroutine table_utils/flip_array(array)
- Parameters:
array (*) [real,inout]
- Called from:
- subroutine table_utils/diff(array, darray)
- Parameters:
array (*) [real,in]
darray (*) [real,out,allocatable]
- subroutine table_utils/find_nearest_index(arr, val, indx)
- Parameters:
arr (*) [real,in]
val [real,in]
indx [integer,out] :: -1 to avoid array index overflow
- function table_utils/interp_1d(x, x1, x2, y1, y2)
- Parameters:
x [real,in]
x1 [real,in]
x2 [real,in]
y1 [real,in]
y2 [real,in]
- Return:
interp_1d [real,pure]
- subroutine table_utils/linear_interpolator_one_d(val0, val1, u, val)
- Parameters:
val0 [real,in]
val1 [real,in]
u [real,in]
val [real,out]
- function table_utils/interpolate_1d(x, datax, datay, dydx)
- Parameters:
x [real,in]
datax (*) [real,in]
datay (*) [real,in]
dydx (*) [real,in] :: –input so that it does not need to be recalculated at all calls
- Return:
y [real]
- Called from:
- subroutine table_utils/differentiate(y, x, dydx)
– based on numpy gradient
- Parameters:
y (*) [real,in]
x (*) [real,in]
dydx (*) [real,inout,allocatable] :: will be deallocated in grids_for_setup.f90:deallocate_sigma()