MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <math.h>
#include "interp.h"
#include "mymalloc.h"
Go to the source code of this file.
Functions | |
void | interp_init (Interp *obj, int Ndim, int64_t *dims) |
void | interp_init_dim (Interp *obj, int d, double Min, double Max) |
static ptrdiff_t | linearindex (ptrdiff_t *strides, int *xi, int Ndim) |
double | interp_eval (Interp *obj, double *x, double *ydata, int *status) |
double | interp_eval_periodic (Interp *obj, double *x, double *ydata) |
void | interp_destroy (Interp *obj) |
void interp_destroy | ( | Interp * | obj | ) |
Definition at line 172 of file interp.c.
References Interp::data, and myfree.
Referenced by test_interp().
double interp_eval | ( | Interp * | obj, |
double * | x, | ||
double * | ydata, | ||
int * | status | ||
) |
Definition at line 72 of file interp.c.
References Interp::dims, Interp::fsize, linearindex(), Interp::Max, Interp::Min, Interp::Ndim, Interp::Step, and Interp::strides.
Referenced by TableMetalCoolingRate(), and test_interp().
double interp_eval_periodic | ( | Interp * | obj, |
double * | x, | ||
double * | ydata | ||
) |
Definition at line 134 of file interp.c.
References Interp::dims, Interp::fsize, linearindex(), Interp::Min, Interp::Ndim, Interp::Step, and Interp::strides.
Referenced by test_interp().
void interp_init | ( | Interp * | obj, |
int | Ndim, | ||
int64_t * | dims | ||
) |
Definition at line 9 of file interp.c.
References Interp::data, Interp::dims, Interp::fsize, Interp::Max, Interp::Min, mymalloc, Interp::Ndim, Interp::Step, and Interp::strides.
Referenced by get_local_UVBG(), InitMetalCooling(), and test_interp().
void interp_init_dim | ( | Interp * | obj, |
int | d, | ||
double | Min, | ||
double | Max | ||
) |
Definition at line 50 of file interp.c.
References Interp::dims, Interp::Max, Interp::Min, and Interp::Step.
Referenced by get_local_UVBG(), InitMetalCooling(), and test_interp().
|
static |
Definition at line 57 of file interp.c.
Referenced by interp_eval(), and interp_eval_periodic().