![]() |
NEURON
|
#include <catch2/catch.hpp>#include <ocfunc.h>#include <code.h>#include <section.h>#include <neuron.h>Go to the source code of this file.
Macros | |
| #define | CATCH_CONFIG_RUNNER |
| #define | run hoc_run |
Functions | |
| void | nrn_threads_create (int, int) |
| void | nrn_threads_free () |
| int | ivocmain_session (int, const char **, const char **, int) |
| This used to be ivocmain, the main entrypoint to the HOC interpreter. More... | |
| void | modl_reg () |
| Needed for compilation. More... | |
| int | main (int argc, char *argv[]) |
| SCENARIO ("Test fast_imem calculation", "[Neuron][fast_imem]") | |
Variables | |
| int | nrn_main_launch |
| int | nrn_nobanner_ |
| int | nrn_nthread |
| NrnThread * | nrn_threads |
| int | nrn_use_fast_imem |
| int | use_cachevec |
| #define CATCH_CONFIG_RUNNER |
Definition at line 1 of file unit_test.cpp.
| #define run hoc_run |
This used to be ivocmain, the main entrypoint to the HOC interpreter.
ivocmain_session parses command line argument, calls of initialization functions and drops into an interactive HOC session. This function is called for example by the "real main" in nrnmain.cpp , but can be also called from other external user applications that use NEURON. Additionally to the original implemenation a new parameter start_session was introduced to control whether an interactive HOC session shoudl be started or simply NEURON and all data structures be initialized and control returned to the caller.
env argument should not be used as it might become invalid| argc | argument count as found in C/C++ main functions |
| argv | argument vector as found in C/C++ main functions |
| env | environment variable array as optionally found in main functions. |
| start_session | set to 1 for default behavior (drop into interactive HOC session otherwise set to 0. If set to 1, but compiled with python support this function will still directly return (since in that mode we don't need an interactive HOC session either. |
Definition at line 446 of file ivocmain.cpp.
Definition at line 25 of file unit_test.cpp.
Needed for compilation.
Definition at line 18 of file unit_test.cpp.
Definition at line 490 of file multicore.cpp.
| void nrn_threads_free | ( | ) |
Definition at line 626 of file multicore.cpp.
| SCENARIO | ( | "Test fast_imem calculation" | , |
| "" | [Neuron][fast_imem] | ||
| ) |
Definition at line 42 of file unit_test.cpp.
| int nrn_main_launch |
Definition at line 396 of file hoc_init.cpp.
| int nrn_nthread |
Definition at line 44 of file multicore.cpp.
| NrnThread* nrn_threads |
Definition at line 45 of file multicore.cpp.
| int nrn_use_fast_imem |
Definition at line 162 of file fadvance.cpp.
| int use_cachevec |
Definition at line 61 of file treeset.cpp.