![]() |
NEURON
|
#include <stdio.h>#include <assert.h>#include <vector>#include "nrnpython.h"#include "grids.h"#include "rxd.h"Go to the source code of this file.
Functions | |
| NRN_EXPORT void | make_time_ptr (PyHocObject *my_dt_ptr, PyHocObject *my_t_ptr) |
| static double | get_alpha_scalar (double *alpha, int) |
| static double | get_alpha_array (double *alpha, int idx) |
| static double | get_permeability_scalar (double *, int) |
| static double | get_permeability_array (double *permeability, int idx) |
| NRN_EXPORT int | ECS_insert (int grid_list_index, PyHocObject *my_states, int my_num_states_x, int my_num_states_y, int my_num_states_z, double my_dc_x, double my_dc_y, double my_dc_z, double my_dx, double my_dy, double my_dz, PyHocObject *my_alpha, PyHocObject *my_permeability, int bc, double bc_value, double atolscale) |
| NRN_EXPORT int | ICS_insert (int grid_list_index, PyHocObject *my_states, long num_nodes, long *neighbors, long *x_line_defs, long x_lines_length, long *y_line_defs, long y_lines_length, long *z_line_defs, long z_lines_length, double *dcs, double dx, bool is_diffusable, double atolscale, double *ics_alphas) |
| NRN_EXPORT int | ICS_insert_inhom (int grid_list_index, PyHocObject *my_states, long num_nodes, long *neighbors, long *x_line_defs, long x_lines_length, long *y_line_defs, long y_lines_length, long *z_line_defs, long z_lines_length, double *dcs, double dx, bool is_diffusable, double atolscale, double *ics_alphas) |
| NRN_EXPORT int | set_diffusion (int grid_list_index, int grid_id, double *dc, int length) |
| NRN_EXPORT int | set_tortuosity (int grid_list_index, int grid_id, PyHocObject *my_permeability) |
| NRN_EXPORT int | set_volume_fraction (int grid_list_index, int grid_id, PyHocObject *my_alpha) |
| NRN_EXPORT void | ics_set_grid_concentrations (int grid_list_index, int index_in_list, int64_t *nodes_per_seg, int64_t *nodes_per_seg_start_indices, PyObject *neuron_pointers) |
| NRN_EXPORT void | ics_set_grid_currents (int grid_list_index, int index_in_list, PyObject *neuron_pointers, double *scale_factors) |
| NRN_EXPORT void | set_grid_concentrations (int grid_list_index, int index_in_list, PyObject *grid_indices, PyObject *neuron_pointers) |
| NRN_EXPORT void | set_grid_currents (int grid_list_index, int index_in_list, PyObject *grid_indices, PyObject *neuron_pointers, PyObject *scale_factors) |
| int | remove (Grid_node **head, Grid_node *find) |
| NRN_EXPORT void | delete_by_id (int id) |
| void | empty_list (int list_index) |
| static void * | gather_currents (void *dataptr) |
| static int | find_min_element_index (const int thread_sizes[], const int nthreads) |
Variables | |
| int | NUM_THREADS |
| double * | dt_ptr |
| double * | t_ptr |
| Grid_node * | Parallel_grids [100] = {NULL} |
| TaskQueue * | AllTasks |
| int | _memb_curr_total |
| int * | _rxd_induced_currents_grid |
| int * | _rxd_induced_currents_ecs_idx |
| double * | _rxd_induced_currents_ecs |
| double * | _rxd_induced_currents_scale |
| NRN_EXPORT void delete_by_id | ( | int | id | ) |
| NRN_EXPORT int ECS_insert | ( | int | grid_list_index, |
| PyHocObject * | my_states, | ||
| int | my_num_states_x, | ||
| int | my_num_states_y, | ||
| int | my_num_states_z, | ||
| double | my_dc_x, | ||
| double | my_dc_y, | ||
| double | my_dc_z, | ||
| double | my_dx, | ||
| double | my_dy, | ||
| double | my_dz, | ||
| PyHocObject * | my_alpha, | ||
| PyHocObject * | my_permeability, | ||
| int | bc, | ||
| double | bc_value, | ||
| double | atolscale | ||
| ) |
|
static |
|
static |
|
static |
|
static |
|
static |
| NRN_EXPORT int ICS_insert | ( | int | grid_list_index, |
| PyHocObject * | my_states, | ||
| long | num_nodes, | ||
| long * | neighbors, | ||
| long * | x_line_defs, | ||
| long | x_lines_length, | ||
| long * | y_line_defs, | ||
| long | y_lines_length, | ||
| long * | z_line_defs, | ||
| long | z_lines_length, | ||
| double * | dcs, | ||
| double | dx, | ||
| bool | is_diffusable, | ||
| double | atolscale, | ||
| double * | ics_alphas | ||
| ) |
| NRN_EXPORT int ICS_insert_inhom | ( | int | grid_list_index, |
| PyHocObject * | my_states, | ||
| long | num_nodes, | ||
| long * | neighbors, | ||
| long * | x_line_defs, | ||
| long | x_lines_length, | ||
| long * | y_line_defs, | ||
| long | y_lines_length, | ||
| long * | z_line_defs, | ||
| long | z_lines_length, | ||
| double * | dcs, | ||
| double | dx, | ||
| bool | is_diffusable, | ||
| double | atolscale, | ||
| double * | ics_alphas | ||
| ) |
| NRN_EXPORT void ics_set_grid_concentrations | ( | int | grid_list_index, |
| int | index_in_list, | ||
| int64_t * | nodes_per_seg, | ||
| int64_t * | nodes_per_seg_start_indices, | ||
| PyObject * | neuron_pointers | ||
| ) |
| NRN_EXPORT void ics_set_grid_currents | ( | int | grid_list_index, |
| int | index_in_list, | ||
| PyObject * | neuron_pointers, | ||
| double * | scale_factors | ||
| ) |
| NRN_EXPORT void make_time_ptr | ( | PyHocObject * | my_dt_ptr, |
| PyHocObject * | my_t_ptr | ||
| ) |
| NRN_EXPORT int set_diffusion | ( | int | grid_list_index, |
| int | grid_id, | ||
| double * | dc, | ||
| int | length | ||
| ) |
| NRN_EXPORT void set_grid_concentrations | ( | int | grid_list_index, |
| int | index_in_list, | ||
| PyObject * | grid_indices, | ||
| PyObject * | neuron_pointers | ||
| ) |
| NRN_EXPORT void set_grid_currents | ( | int | grid_list_index, |
| int | index_in_list, | ||
| PyObject * | grid_indices, | ||
| PyObject * | neuron_pointers, | ||
| PyObject * | scale_factors | ||
| ) |
| NRN_EXPORT int set_tortuosity | ( | int | grid_list_index, |
| int | grid_id, | ||
| PyHocObject * | my_permeability | ||
| ) |
| NRN_EXPORT int set_volume_fraction | ( | int | grid_list_index, |
| int | grid_id, | ||
| PyHocObject * | my_alpha | ||
| ) |
|
extern |
|
extern |