NEURON
nrnconf.h
Go to the documentation of this file.
1 /*
2 # =============================================================================
3 # Copyright (c) 2016 - 2022 Blue Brain Project/EPFL
4 #
5 # See top-level LICENSE file for details.
6 # =============================================================================.
7 */
8 #pragma once
9 
12 
13 #include <cstdio>
14 #include <cmath>
15 #include <cassert>
16 #include <cerrno>
17 #include <cstdint>
18 
19 namespace coreneuron {
20 
21 #define NRNBBCORE 1
22 
23 using Datum = int;
24 using Pfri = int (*)();
25 using Symbol = char;
26 
27 #define VEC_A(i) (_nt->_actual_a[(i)])
28 #define VEC_B(i) (_nt->_actual_b[(i)])
29 #define VEC_D(i) (_nt->_actual_d[(i)])
30 #define VEC_RHS(i) (_nt->_actual_rhs[(i)])
31 #define VEC_V(i) (_nt->_actual_v[(i)])
32 #define VEC_AREA(i) (_nt->_actual_area[(i)])
33 #define VECTORIZE 1
34 
35 extern double celsius;
36 extern double pi;
37 extern int secondorder;
38 
39 extern double t, dt;
40 extern int rev_dt;
41 extern bool stoprun;
42 extern const char* bbcore_write_version;
43 #define tstopbit (1 << 15)
44 #define tstopset stoprun |= tstopbit
45 #define tstopunset stoprun &= (~tstopbit)
46 
47 extern void* nrn_cacheline_alloc(void** memptr, size_t size);
48 extern void* emalloc_align(size_t size, size_t alignment);
49 extern void* ecalloc_align(size_t n, size_t size, size_t alignment);
50 extern void check_bbcore_write_version(const char*);
51 
52 
53 } // namespace coreneuron
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
void * emalloc_align(size_t size, size_t alignment)
void * ecalloc_align(size_t n, size_t size, size_t alignment)
bool stoprun
Definition: nrnoc_aux.cpp:19
int Datum
Definition: nrnconf.h:23
void check_bbcore_write_version(const char *)
Definition: nrnoc_aux.cpp:128
double celsius
int(*)() Pfri
Definition: nrnconf.h:24
const char * bbcore_write_version
Definition: nrnoc_aux.cpp:24
void * nrn_cacheline_alloc(void **memptr, size_t size)
Definition: nrnoc_aux.cpp:103
int const size_t const size_t n
Definition: nrngsl.h:10
Definition: model.h:47