Skip to content

Commit

Permalink
Format + sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
alkino committed Dec 13, 2023
1 parent b895c2f commit a8f33b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
7 changes: 3 additions & 4 deletions src/nrniv/nonlinz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ int NonLinImp::solve(int curloc) {
// mapping is already done there.

NonLinImpRep::NonLinImpRep() {
int i, cnt;
NrnThread* _nt = nrn_threads;

Symbol* vsym = hoc_table_lookup("v", hoc_built_in_symlist);
Expand All @@ -217,10 +216,10 @@ NonLinImpRep::NonLinImpRep() {
n_ode_ = 0;
for (NrnThreadMembList* tml = _nt->tml; tml; tml = tml->next) {
Memb_list* ml = tml->ml;
i = tml->index;
int i = tml->index;
nrn_ode_count_t s = memb_func[i].ode_count;
if (s) {
cnt = (*s)(i);
int cnt = (*s)(i);
n_ode_ += cnt * ml->nodecount;
}
}
Expand All @@ -235,7 +234,7 @@ NonLinImpRep::NonLinImpRep() {
v_.resize(neq_);
deltavec_.resize(neq_);

for (i = 0; i < n_v_; ++i) {
for (int i = 0; i < n_v_; ++i) {
// utilize nd->eqn_index in case of use_sparse13 later
Node* nd = _nt->_v_node[i];
pv_[i] = nd->v_handle();
Expand Down
10 changes: 2 additions & 8 deletions src/sparse13/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
add_library(
sparse13 STATIC
spalloc.cpp
spbuild.cpp
spfactor.cpp
spoutput.cpp
spsolve.cpp
sputils.cpp)
add_library(sparse13 STATIC spalloc.cpp spbuild.cpp spfactor.cpp spoutput.cpp spsolve.cpp
sputils.cpp)
set_property(TARGET sparse13 PROPERTY POSITION_INDEPENDENT_CODE ON)

0 comments on commit a8f33b3

Please sign in to comment.