31 long stat_array[
NUM_STATS] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
56 nrnmpi_long_allreduce_vec(stat_array, gstat_array,
NUM_STATS, 1);
58 assert(
sizeof(stat_array) ==
sizeof(gstat_array));
59 std::memcpy(gstat_array, stat_array,
sizeof(stat_array));
62 const long(&gstat_array)[
NUM_STATS] = stat_array;
66 printf(
"\n\n Simulation Statistics\n");
67 printf(
" Number of cells: %ld\n", gstat_array[0]);
68 printf(
" Number of compartments: %ld\n", gstat_array[10]);
69 printf(
" Number of presyns: %ld\n", gstat_array[1]);
70 printf(
" Number of input presyns: %ld\n", gstat_array[2]);
71 printf(
" Number of synapses: %ld\n", gstat_array[3]);
72 printf(
" Number of point processes: %ld\n", gstat_array[4]);
73 printf(
" Number of transfer sources: %ld\n", gstat_array[12]);
74 printf(
" Number of transfer targets: %ld\n", gstat_array[11]);
75 printf(
" Number of spikes: %ld\n", gstat_array[5]);
76 printf(
" Number of spikes with non negative gid-s: %ld\n", gstat_array[6]);
TransferThreadData * transfer_thread_data_
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
void report_cell_stats()
Reports global cell statistics of the simulation.
std::vector< int > spikevec_gid
corenrn_parameters corenrn_param
Printing method.
Function declarations for the cell statistics.
int const size_t const size_t n
bool mpi_enable
Initialization seed for random number generator (int)
std::vector< int > src_indices
std::vector< int > tar_indices