Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 6, 2024
1 parent 299d2ed commit e1df5f2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/nrniv/matrixmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ void MatrixMap::add(double fac) {
for (int i = 0; i < plen_; ++i) {
auto [j, k] = ptree_[i];
if (j != -1) {
// std::cerr << "modifying '" << nrn_threads->_sparseMat->coeff(j -1, k - 1) << "' (" << j - 1 << ", " << k - 1 << ") with " << fac * (*pm_[i]) << std::endl;
// std::cerr << "modifying '" << nrn_threads->_sparseMat->coeff(j -1, k - 1) << "' (" <<
// j - 1 << ", " << k - 1 << ") with " << fac * (*pm_[i]) << std::endl;
nrn_threads->_sparseMat->coeffRef(j - 1, k - 1) += fac * (*pm_[i]);
}
}
Expand Down Expand Up @@ -61,7 +62,8 @@ void MatrixMap::alloc(int start, int nnode, Node** nodes, int* layer) {
if (it == 0 || jt == 0) {
ptree_.emplace_back(-1, -1);
} else {
std::cerr << "someone touch me in the heart!: (" << it << ", " << jt << ")" << std::endl;
std::cerr << "someone touch me in the heart!: (" << it << ", " << jt << ")"
<< std::endl;
ptree_.emplace_back(it, jt);
_nt->_sparseMat->coeffRef(it - 1, jt - 1) = 0.;
}
Expand Down

0 comments on commit e1df5f2

Please sign in to comment.