27 bool is_mapping_needed,
28 CheckPoints& checkPoints,
29 bool run_setup_cleanup =
true,
30 const char* datapath =
"",
31 const char* restore_path =
"",
32 double* mindelay =
nullptr);
38 bool is_mapping_needed =
false,
39 bool run_setup_cleanup =
true);
108 if (!in_memory_transfer) {
109 const char* data_dir = userParams.
path;
117 std::string fname = std::string(data_dir) +
"/" +
134 read_phase_aux<P>(*nt, userParams);
135 if (!in_memory_transfer) {
static bool file_exist(const std::string &filename)
std::pair< size_t, size_t > P
std::string getPhaseName< gap >()
void read_phase_aux< three >(NrnThread &nt, UserParams &userParams)
void read_phase_aux< two >(NrnThread &nt, UserParams &userParams)
void read_phase_aux< one >(NrnThread &nt, UserParams &userParams)
std::string getPhaseName< three >()
std::string getPhaseName()
Get the phase number in form of the string.
phase
Reading phase number.
std::string getPhaseName< one >()
static void phase_wrapper(UserParams &userParams, int direct=0)
Specific phase reading executed by threads.
std::string getPhaseName< two >()
void read_phase_aux(NrnThread &nt, UserParams &)
Reading phase selector.
void read_phase_aux< gap >(NrnThread &nt, UserParams &userParams)
void * phase_wrapper_w(NrnThread *nt, UserParams &userParams, bool in_memory_transfer)
Reading phase wrapper for each neuron group.
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
void nrn_init_and_load_data(int argc, char *argv[], CheckPoints &checkPoints, bool is_mapping_needed, bool run_setup_cleanup)
int nrn_i_layout(int icnt, int cnt, int isz, int sz, int layout)
This function return the index in a flat array of a matrix coordinate (icnt, isz).
void read_phase1(NrnThread &nt, UserParams &userParams)
void nrn_setup(const char *filesdat, bool is_mapping_needed, CheckPoints &checkPoints, bool run_setup_cleanup, const char *datpath, const char *restore_path, double *mindelay)
size_t memb_list_size(NrnThreadMembList *tml, bool include_data)
void read_phase3(NrnThread &nt, UserParams &userParams)
read mapping information for neurons
void read_phasegap(NrnThread &nt, UserParams &userParams)
void setup_ThreadData(NrnThread &nt)
void nrn_setup_cleanup()
Clean up.
void allocate_data_in_mechanism_nrn_init()
void nrn_multithread_job(F &&job, Args &&... args)
size_t model_size(bool detailed_report)
void read_phase2(NrnThread &nt, UserParams &userParams)
std::string to_string(const T &obj)
Represent main neuron object computed by single thread.
This structure is data needed is several part of nrn_setup, phase1 and phase2.
const int ngroup
direct memory mode with neuron, do not open files Number of local cell groups
const int *const gidgroups
Array of cell group numbers (indices)
const char *const path
path to dataset file
std::vector< FileHandler > file_reader
const char *const restore_path
Dataset path from where simulation is being restored.