26 static char banner[] =
"Duke, Yale, and the BlueBrain Project -- Copyright 1984-2020";
39 static void mk_mech(std::istream&);
50 std::string fname = std::string(datpath) +
"/bbcore_mech.dat";
51 std::ifstream fs(fname);
55 "Error: couldn't find bbcore_mech.dat file in the dataset directory \n");
57 " Make sure to pass full directory path of dataset using -d DIR or "
69 static bool already_called =
false;
75 (*nrn2core_mkmech_info_)(ss);
77 already_called =
true;
93 for (
int i = 2;
i <
n; ++
i) {
95 int type = 0, pnttype = 0, is_art = 0, is_ion = 0, dsize = 0, pdsize = 0, vsize = 0;
96 nrn_assert(
s >> mname >>
type >> pnttype >> is_art >> is_ion >> dsize >> pdsize >> vsize);
99 std::vector<int> array_dims(vsize);
100 for (
size_t i = 0;
i < vsize; ++
i) {
106 printf(
"%s %d %d %d %d %d %d\n", mname,
type, pnttype, is_art, is_ion, dsize, pdsize);
108 std::string str(mname);
120 strcpy(iname, mname);
121 iname[strlen(iname) - 4] =
'\0';
129 fprintf(stderr,
" \n");
130 fprintf(stderr,
" %s\n",
banner);
131 fprintf(stderr,
" Version : %s\n",
cnrn_version().c_str());
132 fprintf(stderr,
" \n");
149 return mapit->second;
154 if (
type == item.second) {
155 return item.first.c_str();
auto & get_memb_func(size_t idx)
auto & get_prop_dparam_size()
auto & get_is_artificial()
auto & get_prop_param_size()
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
int nrn_nobanner_
Declaring global corenrn_parameters object for this instance of CoreNeuron.
static const char * mechanism[]
void(* nrn2core_mkmech_info_)(std::ostream &)
void ion_reg(const char *, double)
const char * nrn_get_mechname(int type)
void check_bbcore_write_version(const char *)
int nrn_get_mechtype(const char *name)
Get mechanism type by the mechanism name.
void alloc_mech(int memb_func_size_)
std::map< std::string, int > mech2type
std::string cnrn_version()
bool corenrn_embedded
--> Coreneuron
#define nrn_assert(x)
assert()-like macro, independent of NDEBUG status
int const size_t const size_t n
Project version information.