NEURON
nrncore_utils.cpp File Reference
#include "nrncore_utils.h"
#include "nrncore_write/callbacks/nrncore_callbacks.h"
#include "nrnconf.h"
#include <cstdlib>
#include "nrndae_c.h"
#include "section.h"
#include "hocdec.h"
#include "nrnsection_mapping.h"
#include "vrecitem.h"
#include "parse.hpp"
#include <string>
#include <unistd.h>
#include <algorithm>
#include <cerrno>
#include "nrnwrap_dlfcn.h"

Go to the source code of this file.

Macros

#define RTLD_NODELETE   0
 

Functions

void model_ready ()
 
int count_distinct (double *data, int len)
 Count number of unique elements in the array. More...
 
void nrnbbcore_register_mapping ()
 For BBP use case, we want to write section-segment mapping to gid_3.dat file. More...
 
bool file_exist (const std::string &path)
 Check if file with given path exist. More...
 
int nrn_dblpntr2nrncore (double *pd, NrnThread &nt, int &type, int &index)
 

Variables

bool corenrn_direct
 
int diam_changed
 
int v_structure_change
 
int tree_changed
 
const char * bbcore_write_version
 
NrnMappingInfo mapinfo
 mapping information More...
 
void(* nrnthread_v_transfer_ )(NrnThread *)
 
short * nrn_is_artificial_
 

Macro Definition Documentation

◆ RTLD_NODELETE

#define RTLD_NODELETE   0

Definition at line 22 of file nrncore_utils.cpp.

Function Documentation

◆ count_distinct()

int count_distinct ( double *  data,
int  len 
)

Count number of unique elements in the array.

there is a copy of the vector but we are primarily using it for small section list vectors.

Definition at line 69 of file nrncore_utils.cpp.

◆ file_exist()

bool file_exist ( const std::string &  path)

Check if file with given path exist.

Definition at line 123 of file nrncore_utils.cpp.

◆ model_ready()

void model_ready ( )

Definition at line 34 of file nrncore_utils.cpp.

◆ nrn_dblpntr2nrncore()

int nrn_dblpntr2nrncore ( double *  pd,
NrnThread nt,
int &  type,
int &  index 
)

Definition at line 137 of file nrncore_utils.cpp.

◆ nrnbbcore_register_mapping()

void nrnbbcore_register_mapping ( )

For BBP use case, we want to write section-segment mapping to gid_3.dat file.

This information will be provided through neurodamus HOC interface with following format: gid : number of non-empty neurons in the cellgroup name : name of section list (like soma, axon, apic) nsec : number of sections sections : list of sections segments : list of segments

Definition at line 89 of file nrncore_utils.cpp.

Variable Documentation

◆ bbcore_write_version

const char* bbcore_write_version
extern

Definition at line 25 of file nrncore_io.cpp.

◆ corenrn_direct

bool corenrn_direct
extern

Definition at line 138 of file nrncore_write.cpp.

◆ diam_changed

int diam_changed
extern

Definition at line 23 of file cabcode.cpp.

◆ mapinfo

NrnMappingInfo mapinfo
extern

mapping information

Definition at line 133 of file nrncore_write.cpp.

◆ nrn_is_artificial_

short* nrn_is_artificial_
extern

Definition at line 193 of file init.cpp.

◆ nrnthread_v_transfer_

void(* nrnthread_v_transfer_) (NrnThread *) ( NrnThread nt)
extern

Definition at line 153 of file fadvance.cpp.

◆ tree_changed

int tree_changed

Definition at line 26 of file nrncore_utils.cpp.

◆ v_structure_change

int v_structure_change

Definition at line 26 of file nrncore_utils.cpp.