Skip to content

Commit

Permalink
Fix weird strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Cornu committed Sep 17, 2024
1 parent 707f8a2 commit 91b4935
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/nrncvode/netcvode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3521,7 +3521,7 @@ void NetCvode::retreat(double t, Cvode* cv) {
TQueue* tq = p[cv->nth_ ? cv->nth_->id : 0].tq_;
#if PRINT_EVENT
if (print_event_) {
logger.print("microstep retreat from {} (cvode_{} is at {}) for event onset={}\n",
logger.print("microstep retreat from {:g} (cvode_{} is at {:g}) for event onset={}\n",
tq ? cv->tqitem_->t_ : cv->t_,
fmt::ptr(cv),
cv->t_,
Expand Down
10 changes: 5 additions & 5 deletions src/nrniv/multisplit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,7 @@ void MultiSplitControl::prstruct() {
logger.print(" MultiSplit {}\n", multisplit_list_->size());
for (i = 0; i < multisplit_list_->size(); ++i) {
MultiSplit* ms = (*multisplit_list_)[i];
logger.print(" {:2d} bbs={} bi={:-2d} rthost={:-4d} {:-4d} {}{{}}",
logger.print(" {:2d} bbs={} bi={:-2d} rthost={:-4d} {:-4d} {}{{{}}}",
i,
ms->backbone_style,
ms->back_index,
Expand All @@ -1818,7 +1818,7 @@ void MultiSplitControl::prstruct() {
secname(ms->nd[0]->sec),
ms->nd[0]->sec_node_index_);
if (ms->nd[1]) {
logger.print(" {:-4d} {}{{}}",
logger.print(" {:-4d} {}{{{}}}",
ms->sid[1],
secname(ms->nd[1]->sec),
ms->nd[1]->sec_node_index_);
Expand Down Expand Up @@ -1848,9 +1848,9 @@ void MultiSplitControl::prstruct() {
t.backAindex_[i],
t.backBindex_[i]);
Node* nd = _nt->_v_node[t.backbone_begin + t.backAindex_[i]];
logger.print(" {}{{}}", secname(nd->sec), nd->sec_node_index_);
logger.print(" {}{{{}}}", secname(nd->sec), nd->sec_node_index_);
nd = _nt->_v_node[t.backbone_begin + t.backBindex_[i]];
logger.print(" {}{{}}", secname(nd->sec), nd->sec_node_index_);
logger.print(" {}{{{}}}", secname(nd->sec), nd->sec_node_index_);
logger.print("\n");
}
}
Expand Down Expand Up @@ -2679,7 +2679,7 @@ void ReducedTree::pr_map(int tsize, double* trbuf) {
}
if (rmap[i] >= nt->node_rhs_storage() && rmap[i] < (nt->node_rhs_storage() + nt->end)) {
Node* nd = nt->_v_node[rmap[i] - nt->node_rhs_storage()];
logger.print(" {:2d} rhs[{:2d}] rhs[{}] += rhs[{}] \t{}{{}}\n",
logger.print(" {:2d} rhs[{:2d}] rhs[{}] += rhs[{}] \t{}{{{}}}\n",
i,
irmap[i],
irmap[i],
Expand Down
2 changes: 1 addition & 1 deletion src/nrniv/netpar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ void NetParEvent::pgvts_deliver(double tt, NetCvode* nc) {

void NetParEvent::pr(const char* m, double tt, NetCvode* nc) {
logger.print(
"{} NetParEvent {} t={:.15g} tt-t={}\n", m, ithread_, tt, tt - nrn_threads[ithread_]._t);
"{} NetParEvent {} t={:.15g} tt-t={:g}\n", m, ithread_, tt, tt - nrn_threads[ithread_]._t);
}

DiscreteEvent* NetParEvent::savestate_save() {
Expand Down

0 comments on commit 91b4935

Please sign in to comment.