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

Variables:

yinterp

Routines:

diff(), find_nearest_index(), flip_array(), interp_1d(), interpolator(), linspace(), logspace()

Variables

  • table_utils/yinterp [public]

Subroutines and functions

subroutine  table_utils/linspace(x, xmin, xmax[, dx])
Parameters:
  • x (*) [real,out]

  • xmin [real,in]

  • xmax [real,in]

  • dx [real,out,]

Called from:

set_density_profile()

subroutine  table_utils/logspace(x, xmin, xmax)
Parameters:
  • x (*) [real,out]

  • xmin [real,in]

  • xmax [real,in]

Called from:

set_dustbinfrac()

subroutine  table_utils/interpolator(array, value, valueidx)
Parameters:
  • array (*) [real,in]

  • value [real,in]

  • valueidx [integer,out]

Called from:

set_softened_core()

subroutine  table_utils/flip_array(array)
Parameters:

array (*) [real,inout]

Called from:

set_softened_core()

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]