CoreNEURON
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
10
#include "
coreneuron/config/version_macros.hpp
"
11
#include "
coreneuron/utils/offload.hpp
"
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
version_macros.hpp
coreneuron::rev_dt
int rev_dt
Definition:
register_mech.cpp:23
coreneuron::Datum
int Datum
Definition:
nrnconf.h:23
coreneuron::check_bbcore_write_version
void check_bbcore_write_version(const char *)
Definition:
nrnoc_aux.cpp:128
coreneuron
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
Definition:
corenrn_parameters.cpp:12
coreneuron::t
double t
Definition:
register_mech.cpp:22
coreneuron::Symbol
char Symbol
Definition:
nrnconf.h:25
coreneuron::dt
double dt
Definition:
register_mech.cpp:22
coreneuron::nrn_cacheline_alloc
void * nrn_cacheline_alloc(void **memptr, size_t size)
Definition:
nrnoc_aux.cpp:103
coreneuron::Pfri
int(*)() Pfri
Definition:
nrnconf.h:24
coreneuron::bbcore_write_version
const char * bbcore_write_version
Definition:
nrnoc_aux.cpp:24
coreneuron::celsius
double celsius
Definition:
register_mech.cpp:22
coreneuron::secondorder
int secondorder
Definition:
register_mech.cpp:21
coreneuron::emalloc_align
void * emalloc_align(size_t size, size_t alignment)
coreneuron::pi
double pi
Definition:
register_mech.cpp:22
offload.hpp
coreneuron::ecalloc_align
void * ecalloc_align(size_t n, size_t size, size_t alignment)
coreneuron::stoprun
bool stoprun
Definition:
nrnoc_aux.cpp:19
coreneuron
nrnconf.h