#include "../../nrnconf.h"
#include "nrnmpiuse.h"
#include <stdio.h>
#include <stdint.h>
#include "nrnmpi.h"
#include "nrnpy_utils.h"
#include <stdlib.h>
#include <ctype.h>
#include "nrn_export.hpp"
#include <iostream>
#include <string>
Go to the source code of this file.
◆ add_arg()
static int add_arg |
( |
const char * |
name, |
|
|
const char * |
value |
|
) |
| |
|
static |
◆ add_neuron_options()
static int add_neuron_options |
( |
| ) |
|
|
static |
Add all name:value from main.neuron_options dict if exists to the argc,argv for calling ivocmain Note: if value is None then only name is added to argv.
The special "-print-options" name is not added to argv but causes a return value of 1. Otherwise the return value is 0.
Definition at line 91 of file inithoc.cpp.
◆ add_space_separated_options()
static int add_space_separated_options |
( |
const char * |
str | ) |
|
|
static |
Space separated options.
Must handle escaped space, '...' and "...". Return 1 if contains a -print-options (not added to options)
Definition at line 133 of file inithoc.cpp.
◆ have_opt()
static int have_opt |
( |
const char * |
arg | ) |
|
|
static |
Return 1 if the option exists in argv[].
Definition at line 199 of file inithoc.cpp.
◆ is_string()
Return 1 if string, 0 otherwise.
Definition at line 77 of file inithoc.cpp.
◆ ivocmain()
int ivocmain |
( |
int |
argc, |
|
|
const char ** |
argv, |
|
|
const char ** |
env |
|
) |
| |
Main entrypoint function into the HOC interpeter.
This function simply calls ivocmain_session with the start_session
= 1.
- Note
- This is part of NEURON's public interface
-
env
argument should not be used as it might become invalid
- Parameters
-
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. |
- Returns
- 0 on success, otherwise error code.
Definition at line 334 of file ivocmain.cpp.
◆ modl_reg()
◆ nrnpy_hoc()
◆ nrnpython_finalize()
void nrnpython_finalize |
( |
| ) |
|
◆ PyInit_hoc()
◆ arg_size
Manage argc,argv for calling ivocmain add_arg(...) will only add if name is not already in the arg list returns 1 if added, 0 if not.
Definition at line 44 of file inithoc.cpp.
◆ argc
◆ argv
◆ env
◆ nrn_global_argv
◆ nrn_is_python_extension
int nrn_is_python_extension |
|
extern |
◆ nrn_main_launch
◆ nrn_nobanner_
◆ p_nrnpython_finalize
void(* p_nrnpython_finalize) () |
( |
| ) |
|
|
extern |