NEURON
section.h File Reference
#include "nrnredef.h"
#include "options.h"
#include "hoclist.h"
#include "hocdec.h"
#include <multicore.h>
#include "nrn_ansi.h"

Go to the source code of this file.

Classes

struct  Section
 
struct  Pt3d
 
struct  Node
 
struct  Extnode
 
struct  Prop
 
struct  Point_process
 

Macros

#define xpop   hoc_xpop
 
#define pc   hoc_pc
 
#define spop   hoc_spop
 
#define execerror   hoc_execerror
 
#define NODED(n)   (*((n)->_d))
 
#define NODERHS(n)   (*((n)->_rhs))
 
#define NODEV(n)   (*((n)->_v))
 
#define NODEAREA(n)   ((n)->_area)
 
#define NODERINV(n)   ((n)->_rinv)
 
#define VEC_A(i)   (_nt->_actual_a[(i)])
 
#define VEC_B(i)   (_nt->_actual_b[(i)])
 
#define VEC_D(i)   (_nt->_actual_d[(i)])
 
#define VEC_RHS(i)   (_nt->_actual_rhs[(i)])
 
#define VEC_V(i)   (_nt->_actual_v[(i)])
 
#define VEC_AREA(i)   (_nt->_actual_area[(i)])
 
#define NODEA(n)   (VEC_A((n)->v_node_index))
 
#define NODEB(n)   (VEC_B((n)->v_node_index))
 
#define nlayer   (nrn_nlayer_extracellular) /* first (0) layer is extracellular next to membrane */
 
#define PROP_PY_INDEX   10
 
#define ForAllSections(sec)   ITERATE(qsec, section_list) { Section* sec = hocSEC(qsec);
 
#define tstopbit   (1 << 15)
 
#define tstopset   stoprun |= tstopbit
 
#define tstopunset   stoprun &= (~tstopbit)
 

Typedefs

typedef struct Section Section
 
typedef struct Pt3d Pt3d
 
typedef struct Node Node
 
typedef struct Extnode Extnode
 
typedef struct Prop Prop
 
typedef struct Point_process Point_process
 

Functions

double * nrn_prop_data_alloc (int type, int count, Prop *p)
 
Datumnrn_prop_datum_alloc (int type, int count, Prop *p)
 
void nrn_prop_data_free (int type, double *pd)
 
void nrn_prop_datum_free (int type, Datum *ppd)
 
Sectionchk_access ()
 
double nrn_ghk (double, double, double, double)
 
Sectionsec_alloc ()
 
void node_alloc (Section *, short)
 
double section_length (Section *)
 
double nrn_diameter (Node *)
 
Nodenrn_parent_node (Node *)
 
Sectionnrn_section_alloc ()
 
void nrn_section_free (Section *)
 
int nrn_is_valid_section_ptr (void *)
 

Variables

int use_sparse13
 
int use_cachevec
 
int secondorder
 
int cvode_active_
 
int nrn_nlayer_extracellular
 
int nrn_global_ncell
 
hoc_Listsection_list
 
int stoprun
 

Macro Definition Documentation

◆ execerror

#define execerror   hoc_execerror

Definition at line 36 of file section.h.

◆ ForAllSections

ForAllSections (   sec)    ITERATE(qsec, section_list) { Section* sec = hocSEC(qsec);

Definition at line 317 of file section.h.

◆ nlayer

#define nlayer   (nrn_nlayer_extracellular) /* first (0) layer is extracellular next to membrane */

Definition at line 187 of file section.h.

◆ NODEA

#define NODEA (   n)    (VEC_A((n)->v_node_index))

Definition at line 123 of file section.h.

◆ NODEAREA

#define NODEAREA (   n)    ((n)->_area)

Definition at line 115 of file section.h.

◆ NODEB

#define NODEB (   n)    (VEC_B((n)->v_node_index))

Definition at line 124 of file section.h.

◆ NODED

#define NODED (   n)    (*((n)->_d))

Definition at line 103 of file section.h.

◆ NODERHS

#define NODERHS (   n)    (*((n)->_rhs))

Definition at line 104 of file section.h.

◆ NODERINV

#define NODERINV (   n)    ((n)->_rinv)

Definition at line 116 of file section.h.

◆ NODEV

#define NODEV (   n)    (*((n)->_v))

Definition at line 114 of file section.h.

◆ pc

#define pc   hoc_pc

Definition at line 34 of file section.h.

◆ PROP_PY_INDEX

#define PROP_PY_INDEX   10

Definition at line 211 of file section.h.

◆ spop

#define spop   hoc_spop

Definition at line 35 of file section.h.

◆ tstopbit

#define tstopbit   (1 << 15)

Definition at line 327 of file section.h.

◆ tstopset

#define tstopset   stoprun |= tstopbit

Definition at line 328 of file section.h.

◆ tstopunset

#define tstopunset   stoprun &= (~tstopbit)

Definition at line 329 of file section.h.

◆ VEC_A

#define VEC_A (   i)    (_nt->_actual_a[(i)])

Definition at line 117 of file section.h.

◆ VEC_AREA

#define VEC_AREA (   i)    (_nt->_actual_area[(i)])

Definition at line 122 of file section.h.

◆ VEC_B

#define VEC_B (   i)    (_nt->_actual_b[(i)])

Definition at line 118 of file section.h.

◆ VEC_D

#define VEC_D (   i)    (_nt->_actual_d[(i)])

Definition at line 119 of file section.h.

◆ VEC_RHS

#define VEC_RHS (   i)    (_nt->_actual_rhs[(i)])

Definition at line 120 of file section.h.

◆ VEC_V

#define VEC_V (   i)    (_nt->_actual_v[(i)])

Definition at line 121 of file section.h.

◆ xpop

#define xpop   hoc_xpop

Definition at line 33 of file section.h.

Typedef Documentation

◆ Extnode

typedef struct Extnode Extnode

◆ Node

typedef struct Node Node

◆ Point_process

typedef struct Point_process Point_process

◆ Prop

typedef struct Prop Prop

◆ Pt3d

typedef struct Pt3d Pt3d

◆ Section

typedef struct Section Section

Function Documentation

◆ chk_access()

Section* chk_access ( )

Definition at line 437 of file cabcode.cpp.

◆ node_alloc()

void node_alloc ( Section ,
short   
)

Definition at line 814 of file solve.cpp.

◆ nrn_diameter()

double nrn_diameter ( Node )

Definition at line 423 of file cabcode.cpp.

◆ nrn_ghk()

double nrn_ghk ( double  ,
double  ,
double  ,
double   
)

Definition at line 321 of file eion.cpp.

◆ nrn_is_valid_section_ptr()

int nrn_is_valid_section_ptr ( void )

Definition at line 316 of file cxprop.cpp.

◆ nrn_parent_node()

Node* nrn_parent_node ( Node )

Definition at line 830 of file treeset.cpp.

◆ nrn_prop_data_alloc()

double* nrn_prop_data_alloc ( int  type,
int  count,
Prop p 
)

Definition at line 262 of file cxprop.cpp.

◆ nrn_prop_data_free()

void nrn_prop_data_free ( int  type,
double *  pd 
)

Definition at line 287 of file cxprop.cpp.

◆ nrn_prop_datum_alloc()

Datum* nrn_prop_datum_alloc ( int  type,
int  count,
Prop p 
)

Definition at line 273 of file cxprop.cpp.

◆ nrn_prop_datum_free()

void nrn_prop_datum_free ( int  type,
Datum ppd 
)

Definition at line 294 of file cxprop.cpp.

◆ nrn_section_alloc()

Section* nrn_section_alloc ( )

Definition at line 305 of file cxprop.cpp.

◆ nrn_section_free()

void nrn_section_free ( Section )

Definition at line 312 of file cxprop.cpp.

◆ sec_alloc()

Section* sec_alloc ( )

Definition at line 461 of file solve.cpp.

◆ section_length()

double section_length ( Section )

Definition at line 375 of file cabcode.cpp.

Variable Documentation

◆ cvode_active_

int cvode_active_

Definition at line 158 of file fadvance.cpp.

◆ nrn_global_ncell

int nrn_global_ncell

Definition at line 127 of file init.cpp.

◆ nrn_nlayer_extracellular

int nrn_nlayer_extracellular

Definition at line 18 of file extcelln.cpp.

◆ secondorder

int secondorder

Definition at line 120 of file init.cpp.

◆ section_list

hoc_List* section_list

Definition at line 126 of file init.cpp.

◆ stoprun

int stoprun

Definition at line 161 of file fadvance.cpp.

◆ use_cachevec

int use_cachevec

Definition at line 61 of file treeset.cpp.

◆ use_sparse13

int use_sparse13

Definition at line 69 of file treeset.cpp.