utils_spline

Module

Description

This module contains utilities for fitting/ evaluating

cubic spline fits to data

Routines are originally by Simon Glover, Translated to Fortran 90 and adapted for use in Phantom by Daniel Price (2011)

References:

None

Owner:

Daniel Price

Runtime parameters:

None

Dependencies:

None

Quick access

Variables:

spline_coefficients, spline_derivatives

Routines:

spline_eval()

Variables

  • splineutils/spline_coefficients [private]
  • splineutils/spline_derivatives [private]

Subroutines and functions

subroutine  splineutils/spline_eval(nval, positions, values, nnew, new_positions, new_values)

use cooling ! surely not necessary???

Parameters:
  • nval [integer,in,]

  • positions (nval) [real,in]

  • values (nval) [real,in]

  • nnew [integer,in,]

  • new_positions (nnew) [real,in]

  • new_values (nnew) [real,out]