@@ -31,10 +31,10 @@ namespace coreneuron {
3131 * and need to be refactored.
3232 */
3333
34- typedef int DIFUN;
35- typedef int NEWTFUN;
36- typedef int SPFUN;
37- typedef int EULFUN;
34+ using DIFUN = int ;
35+ using NEWTFUN = int ;
36+ using SPFUN = int ;
37+ using EULFUN = int ;
3838#pragma acc routine seq
3939extern int nrn_derivimplicit_steer (int , _threadargsproto_);
4040#define difun (arg ) nrn_derivimplicit_steer(arg, _threadargs_);
@@ -45,28 +45,28 @@ extern int nrn_newton_steer(int, _threadargsproto_);
4545extern int nrn_euler_steer (int , _threadargsproto_);
4646#define eulerfun (arg ) nrn_euler_steer(arg, _threadargs_);
4747
48- typedef struct Elm {
48+ struct Elm {
4949 unsigned row; /* Row location */
5050 unsigned col; /* Column location */
5151 double * value; /* The value SOA _cntml_padded of them*/
5252 struct Elm * r_up; /* Link to element in same column */
5353 struct Elm * r_down; /* in solution order */
5454 struct Elm * c_left; /* Link to left element in same row */
5555 struct Elm * c_right; /* in solution order (see getelm) */
56- } Elm ;
56+ };
5757#define ELM0 (Elm*)0
5858
59- typedef struct Item {
59+ struct Item {
6060 Elm* elm;
6161 unsigned norder; /* order of a row */
6262 struct Item * next;
6363 struct Item * prev;
64- } Item ;
64+ };
6565#define ITEM0 (Item*)0
6666
67- typedef Item List; /* list of mixed items */
67+ using List = Item ; /* list of mixed items */
6868
69- typedef struct SparseObj { /* all the state information */
69+ struct SparseObj { /* all the state information */
7070 Elm** rowst; /* link to first element in row (solution order)*/
7171 Elm** diag; /* link to pivot element in row (solution order)*/
7272 void * elmpool; /* no interthread cache line sharing for elements */
@@ -87,7 +87,7 @@ typedef struct SparseObj { /* all the state information */
8787 List* orderlist; /* list of rows sorted by norder
8888 that haven't been used */
8989 int do_flag;
90- } SparseObj ;
90+ };
9191
9292#pragma acc routine seq
9393extern double * _nrn_thread_getelm (SparseObj* so, int row, int col, int _iml);
0 commit comments