34 class ProgressBar final {
41 ProgressBar(
int nsteps)
56 void step(
double time) {
113 #ifdef ENABLE_SONATA_REPORTS
129 ProgressBar progress_bar(total_sim_steps);
131 double updated_tstop = tstop -
dt;
136 double updated_tstop = tstop - .5 *
dt;
165 #ifdef ENABLE_SONATA_REPORTS
202 double* vec_v = &(
VEC_V(0));
211 for (
int i = 0;
i < i2; ++
i) {
218 for (
int i = 0;
i < i2; ++
i) {
240 for (
auto tml = _nt->
tml; tml; tml = tml->
next)
243 std::string ss(
"state-");
247 (*s)(_nt, tml->ml, tml->index);
251 hoc_warning(
"errno set during calculation of states",
nullptr);
259 for (
auto tbl = nt->
tbl[bat]; tbl; tbl = tbl->
next) {
261 int type = tbl->bam->type;
275 (*nrn2core_trajectory_values_)(-1, 0,
nullptr, 0.0);
293 int vs = tr->
vsize++;
317 double* gather_i = tr->
gather[
i];
318 static_cast<void>(gather_i);
327 (*nrn2core_trajectory_values_)(nth->
id, tr->
n_pr, tr->
vpr, nth->
_t);
340 nth->
_t += .5 * nth->
_dt;
377 nth->
_t += .5 * nth->
_dt;
auto & get_memb_func(size_t idx)
nrn_pragma_acc(routine seq) nrn_pragma_omp(declare target) philox4x32_ctr_t coreneuron_random123_philox4x32_helper(coreneuron nrn_pragma_omp(end declare target) namespace coreneuron
Provide a helper function in global namespace that is declared target for OpenMP offloading to functi...
static int step_group_end
static int step_group_begin
constexpr static int progressbar_update_steps
static void phase_end(const char *name)
static void phase_begin(const char *name)
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
void(*)(NrnThread *, Memb_list *, int) mod_f_t
void nonvint(NrnThread *_nt)
void nrn_spike_exchange(NrnThread *nt)
void nrncore2nrn_send_values(NrnThread *nth)
bool nrn_have_gaps
variables defined in coreneuron library
void update(NrnThread *_nt)
void fixed_play_continuous(NrnThread *nt)
void nrn_cur_capacitance(NrnThread *_nt, Memb_list *ml, int type)
void nrn_fixed_step_minimal()
void second_order_cur(NrnThread *_nt, int secondorder)
void nrn_thread_table_check()
void nrn_fixed_single_steps_minimal(int total_sim_steps, double tstop)
--> Coreneuron
const char * nrn_get_mechname(int type)
void nrn_fixed_step_group_minimal(int total_sim_steps)
void nrnthread_v_transfer(NrnThread *_nt)
void nrn_calc_fast_imem(NrnThread *nt)
void * setup_tree_matrix_minimal(NrnThread *)
void nrn_flush_reports(double t)
void * nrn_fixed_step_lastpart(NrnThread *nth)
void deliver_net_events(NrnThread *nt)
void nrn_solve_minimal(NrnThread *)
void nrn_deliver_events(NrnThread *nt)
nrn_pragma_acc(routine seq) int vector_capacity(void *v)
static void nrn_fixed_step_group_thread(NrnThread *, int, int, int &)
static void * nrn_fixed_step_thread(NrnThread *)
void dt2thread(double adt)
void nrn_multithread_job(F &&job, Args &&... args)
void nrncore2nrn_send_init()
void hoc_warning(const char *s1, const char *s2)
void nrn_ba(NrnThread *nt, int bat)
corenrn_parameters corenrn_param
Printing method.
void(* nrn2core_trajectory_values_)(int tid, int n_pr, void **vpr, double t)
#define nrn_assert(x)
assert()-like macro, independent of NDEBUG status
progressbar * progressbar_new(const char *label, unsigned long max)
Create a new progress bar with the specified label and max number of steps.
void progressbar_update(progressbar *bar, unsigned long value, double t)
Increment an existing progressbar by value steps.
void progressbar_finish(progressbar *bar)
Finish a progressbar, indicating 100% completion, and free it.
Represent main neuron object computed by single thread.
NrnThreadBAList * tbl[BEFORE_AFTER_SIZE]
TrajectoryRequests * trajec_requests
Progressbar data structure (do not modify or create directly)