17 static bool close_to(
double got,
double want,
const char* msg) {
19 cerr <<
"FAIL: " << msg <<
" — got " << got <<
", want " << want << endl;
37 static std::array<const char*, 4>
argv = {
"segment_diam",
"-nogui",
"-nopython",
nullptr};
static void nrn_init(neuron::model_sorted_token const &, NrnThread *nt, Memb_list *ml, int type)
void nrn_section_pop(void)
Symbol * nrn_symbol(char const *const name)
double nrn_double_pop(void)
void nrn_section_push(Section *sec)
Section * nrn_section_new(char const *const name)
void nrn_function_call(Symbol *sym, int narg)
void nrn_double_push(double val)
double nrn_segment_diam_get(Section *const sec, const double x)
static bool close_to(double got, double want, const char *msg)
static void pt3dadd(Section *sec, double xx, double yy, double zz, double diam)