NEURON
unit_test.cpp File Reference
#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
 
NrnThreadnrn_threads
 
int nrn_use_fast_imem
 
int use_cachevec
 

Macro Definition Documentation

◆ CATCH_CONFIG_RUNNER

#define CATCH_CONFIG_RUNNER

Definition at line 1 of file unit_test.cpp.

◆ run

#define run   hoc_run

Function Documentation

◆ ivocmain_session()

int ivocmain_session ( int  argc,
const char **  argv,
const char **  env,
int  start_session 
)

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.

Note
env argument should not be used as it might become invalid
Parameters
argcargument count as found in C/C++ main functions
argvargument vector as found in C/C++ main functions
envenvironment variable array as optionally found in main functions.
start_sessionset 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.
Returns
0 on success, otherwise error code.

Definition at line 446 of file ivocmain.cpp.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 25 of file unit_test.cpp.

◆ modl_reg()

void modl_reg ( void  )

Needed for compilation.

Definition at line 18 of file unit_test.cpp.

◆ nrn_threads_create()

void nrn_threads_create ( int  ,
int   
)

Definition at line 490 of file multicore.cpp.

◆ nrn_threads_free()

void nrn_threads_free ( )

Definition at line 626 of file multicore.cpp.

◆ SCENARIO()

SCENARIO ( "Test fast_imem calculation"  ,
""  [Neuron][fast_imem] 
)

Definition at line 42 of file unit_test.cpp.

Variable Documentation

◆ nrn_main_launch

int nrn_main_launch

Definition at line 396 of file hoc_init.cpp.

◆ nrn_nobanner_

int nrn_nobanner_

Definition at line 146 of file hoc.cpp.

◆ nrn_nthread

int nrn_nthread

Definition at line 44 of file multicore.cpp.

◆ nrn_threads

NrnThread* nrn_threads

Definition at line 45 of file multicore.cpp.

◆ nrn_use_fast_imem

int nrn_use_fast_imem

Definition at line 162 of file fadvance.cpp.

◆ use_cachevec

int use_cachevec

Definition at line 61 of file treeset.cpp.