NEURON
hoc_init.cpp File Reference
#include <../../nrnconf.h>
#include "parse.hpp"
#include "equation.h"
#include "nrnunits.h"
#include "nrn_ansi.h"
#include "ocfunc.h"
#include "oc_mcran4.hpp"
#include <cmath>

Go to the source code of this file.

Functions

void hoc_nrnmpi_init ()
 
void hoc_init (void)
 
void hoc_unix_mac_pc (void)
 
void hoc_show_winio (void)
 
void hoc_nrnversion (void)
 
void hoc_get_config_key ()
 
void hoc_get_config_val ()
 
void hoc_num_config_keys ()
 
void hoc_Execerror (void)
 

Variables

struct {
   const char *   name
 
   int   kval
 
keywords []
 
struct {
   const char *   name
 
   double   cval
 
consts []
 
struct {
   const char *   name
 
   double(*   func )(double)
 
builtins []
 
struct {
   const char *   name
 
   void(*   fun_blt )(void)
 
fun_bltin []
 
struct {
   const char *   name
 
   void(*   strfun_blt )(void)
 
strfun_bltin []
 
struct {
   const char *   name
 
   void(*   objfun_blt )(void)
 
objfun_bltin [] = {{"object_pushed", hoc_object_pushed}, {nullptr, nullptr}}
 
double hoc_epsilon = 1.e-11
 
double hoc_ac_
 
double hoc_cross_x_
 
double hoc_cross_y_
 
double hoc_default_dll_loaded_
 
char * neuron_home
 
const char * nrn_mech_dll
 
int nrn_noauto_dlopen_nrnmech
 
int nrn_xopen_broadcast_
 
int nrn_main_launch
 

Function Documentation

◆ hoc_Execerror()

void hoc_Execerror ( void  )

Definition at line 369 of file hoc_init.cpp.

◆ hoc_get_config_key()

void hoc_get_config_key ( )

Definition at line 347 of file hoc_init.cpp.

◆ hoc_get_config_val()

void hoc_get_config_val ( )

Definition at line 356 of file hoc_init.cpp.

◆ hoc_nrnmpi_init()

void hoc_nrnmpi_init ( )

Definition at line 295 of file ivocmain.cpp.

◆ hoc_nrnversion()

void hoc_nrnversion ( void  )

Definition at line 335 of file hoc_init.cpp.

◆ hoc_num_config_keys()

void hoc_num_config_keys ( )

Definition at line 365 of file hoc_init.cpp.

◆ hoc_show_winio()

void hoc_show_winio ( void  )

Definition at line 324 of file hoc_init.cpp.

◆ hoc_unix_mac_pc()

void hoc_unix_mac_pc ( void  )

Definition at line 312 of file hoc_init.cpp.

Variable Documentation

◆ 

struct { ... } builtins[]
Initial value:
= {{"sin", sin},
{"cos", cos},
{"atan", atan},
{"tanh", tanh},
{"log", hoc_Log},
{"log10", hoc_Log10},
{"exp", hoc1_Exp},
{"sqrt", hoc_Sqrt},
{"int", hoc_integer},
{"abs", fabs},
{"erf", erf},
{"erfc", erfc},
{0, 0}}
double hoc_Sqrt(double x)
Definition: math.cpp:214
double hoc_Log10(double x)
Definition: math.cpp:66
double hoc1_Exp(double x)
Definition: math.cpp:200
double hoc_Log(double x)
Definition: math.cpp:61
double hoc_integer(double x)
Definition: math.cpp:224
tanh
Definition: extdef.h:4
atan
Definition: extdef.h:4
sin
Definition: extdef.h:3
cos
Definition: extdef.h:3
fabs
Definition: extdef.h:3
erf
Definition: extdef.h:7

◆ 

struct { ... } consts[]
Initial value:
= {{"PI", 3.14159265358979323846},
{"E", 2.71828182845904523536},
{"GAMMA", 0.57721566490153286060},
{"DEG", 57.29577951308232087680},
{"PHI", 1.61803398874989484820},
{"FARADAY", _faraday_codata2018},
{"Avogadro_constant", _avogadro_number_codata2018},
{nullptr, 0}}
constexpr double _avogadro_number_codata2018
Definition: nrnunits.h:18
constexpr double _faraday_codata2018
Definition: nrnunits.h:20
constexpr double _gasconstant_codata2018
Definition: nrnunits.h:22

◆ cval

double cval

Definition at line 71 of file hoc_init.cpp.

◆ fun_blt

void(* fun_blt) (void) ( void  )

Definition at line 101 of file hoc_init.cpp.

◆ 

struct { ... } fun_bltin[]

◆ func

double(* func) (double) ( double  )

Definition at line 85 of file hoc_init.cpp.

◆ hoc_cross_x_

double hoc_cross_x_

Definition at line 224 of file hoc_init.cpp.

◆ hoc_cross_y_

double hoc_cross_y_

Definition at line 224 of file hoc_init.cpp.

◆ hoc_default_dll_loaded_

double hoc_default_dll_loaded_

Definition at line 225 of file hoc_init.cpp.

◆ 

struct { ... } keywords[]

◆ kval

int kval

Definition at line 27 of file hoc_init.cpp.

◆ name

const char* name

Definition at line 26 of file hoc_init.cpp.

◆ neuron_home

char* neuron_home

Definition at line 227 of file hoc_init.cpp.

◆ nrn_main_launch

int nrn_main_launch

Definition at line 333 of file hoc_init.cpp.

◆ nrn_mech_dll

const char* nrn_mech_dll

Definition at line 228 of file hoc_init.cpp.

◆ nrn_noauto_dlopen_nrnmech

int nrn_noauto_dlopen_nrnmech

Definition at line 229 of file hoc_init.cpp.

◆ nrn_xopen_broadcast_

int nrn_xopen_broadcast_

Definition at line 230 of file hoc_init.cpp.

◆ objfun_blt

void(* objfun_blt) (void) ( void  )

Definition at line 218 of file hoc_init.cpp.

◆ 

struct { ... } objfun_bltin[]

◆ strfun_blt

void(* strfun_blt) (void) ( void  )

Definition at line 206 of file hoc_init.cpp.

◆ 

struct { ... } strfun_bltin[]
Initial value:
= {{"secname", hoc_secname},
{"units", hoc_Symbol_units},
{"neuronhome", hoc_neuronhome},
{"getcwd", hoc_getcwd},
{"nrnversion", hoc_nrnversion},
{"nrn_get_config_key", hoc_get_config_key},
{"nrn_get_config_val", hoc_get_config_val},
{0, 0}}
void hoc_secname(void)
Definition: cabcode.cpp:2091
void hoc_neuronhome(void)
Definition: code2.cpp:208
void hoc_Symbol_units(void)
Definition: code2.cpp:148
void hoc_getcwd(void)
Definition: fileio.cpp:766
void hoc_get_config_key()
Definition: hoc_init.cpp:347
void hoc_get_config_val()
Definition: hoc_init.cpp:356
void hoc_nrnversion(void)
Definition: hoc_init.cpp:335