Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 386e52a

Browse files
fouriauxpramodk
authored andcommitted
Centralise includes and extern declarations to visible for mod2c (#81)
- update mod2c - externs update
1 parent 4502401 commit 386e52a

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

coreneuron/mech/mod2c_core_thread.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ typedef struct SparseObj { /* all the state information */
103103
int do_flag;
104104
} SparseObj;
105105

106+
#pragma acc routine seq
107+
extern double* _nrn_thread_getelm(SparseObj* so, int row, int col, int _iml);
108+
109+
extern void* nrn_cons_sparseobj(SPFUN, int, Memb_list*, _threadargsproto_);
110+
111+
extern void _nrn_destroy_sparseobj_thread(SparseObj* so);
112+
106113
#pragma acc routine seq
107114
extern int nrn_kinetic_steer(int, SparseObj*, double*, _threadargsproto_);
108115
#define spfun(arg1, arg2, arg3) nrn_kinetic_steer(arg1, arg2, arg3, _threadargs_);

coreneuron/nrniv/nrniv_decl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ THE POSSIBILITY OF SUCH DAMAGE.
3535
#include "coreneuron/utils/endianness.h"
3636
#include "coreneuron/nrniv/nrnoptarg.h"
3737

38+
extern int cvode_active_;
3839
/// Vector of maps for negative presyns
3940
extern std::vector<std::map<int, PreSyn*> > neg_gid2out;
4041
/// Maps for ouput and input presyns

coreneuron/scopmath_core/sparse_thread.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ static void prmat(SparseObj* so);
9898
static void initeqn(SparseObj* so, unsigned maxeqn);
9999
static void free_elm(SparseObj* so);
100100
static Elm* getelm(SparseObj* so, unsigned row, unsigned col, Elm* new_elem);
101-
#pragma acc routine seq
102-
double* _nrn_thread_getelm(SparseObj* so, int row, int col, int _iml);
103-
void* nrn_cons_sparseobj(SPFUN, int, Memb_list*, _threadargsproto_);
104101
static void create_coef_list(SparseObj* so, int n, SPFUN fun, _threadargsproto_);
105102
static void init_coef_list(SparseObj* so, int _iml);
106103
static void init_minorder(SparseObj* so);
@@ -119,7 +116,6 @@ static void myfree(void*);
119116
static void check_assert(SparseObj* so);
120117
static void re_link(SparseObj* so, unsigned i);
121118
static SparseObj* create_sparseobj();
122-
void _nrn_destroy_sparseobj_thread(SparseObj* so);
123119

124120
#if defined(_OPENACC)
125121
#undef emalloc

0 commit comments

Comments
 (0)