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

Commit b369317

Browse files
committed
Small cleanup of debug prints
1 parent 5a245f8 commit b369317

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

coreneuron/apps/main1.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <dlfcn.h>
1818
#include <memory>
1919
#include <vector>
20-
#include "coreneuron/permute/data_layout.hpp"
2120

2221
#include "coreneuron/config/config.h"
2322
#include "coreneuron/utils/randoms/nrnran123.h"
@@ -219,7 +218,6 @@ void nrn_init_and_load_data(int argc,
219218
// full path of files.dat file
220219
std::string filesdat(corenrn_param.datpath + "/" + corenrn_param.filesdat);
221220

222-
223221
// set global variables for start time, timestep and temperature
224222
if (!corenrn_embedded) {
225223
t = checkPoints.restore_time();
@@ -579,21 +577,6 @@ extern "C" int run_solve_core(int argc, char** argv) {
579577
abort();
580578
}
581579

582-
// for (int i = 0; i < nrn_nthread; ++i) {
583-
// NrnThread* nt = nrn_threads + i;
584-
// for (auto tml = nt->tml; tml; tml = tml->next) {
585-
// auto ml = tml->ml;
586-
// auto type = tml->index;
587-
// int n = ml->nodecount;
588-
// int szdp = corenrn.get_prop_dparam_size()[type];
589-
// std::cout << "ml type " << type << std::endl;
590-
// int pcnt = nrn_soa_padded_size(n, SOA_LAYOUT) * szdp;
591-
// for(int i = 0 ; i < pcnt; i++) {
592-
// printf("ml->pdata[%d] = %d\n", i, ml->pdata[i]);
593-
// }
594-
// }
595-
// }
596-
597580
// TODO : if some ranks are empty then restore will go in deadlock
598581
// phase (as some ranks won't have restored anything and hence return
599582
// false in checkpoint_initialize

coreneuron/io/global_vars.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,11 @@ void set_globals(const char* path, bool cli_global_seed, int cli_global_seed_val
112112
if (strcmp(name, "0") == 0) {
113113
break;
114114
}
115-
printf("name %s value %lf\n", name, val);
116115
it = n2v->find(name);
117116
if (it != n2v->end()) {
118117
nrn_assert(it->second.first == 0);
119118
*(it->second.second) = val;
120119
} else if (static_cast<std::string>(name).find("ion") != std::string::npos) {
121-
printf("ion %s value %lf\n", name, val);
122120
nrn_ion_init[name] = val;
123121
}
124122
} else if (sscanf(line, "%[^[][%d]\n", name, &n) == 2) {

coreneuron/mechanism/eion.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@ void nrn_cur_ion(NrnThread* nt, Memb_list* ml, int type) {
292292
for (int _iml = 0; _iml < _cntml_actual; ++_iml) {
293293
dcurdv = 0.;
294294
cur = 0.;
295-
// printf("nrn_cur_ion %d iontype[%d] %d\n", type, _iml, iontype);
296295
if (iontype & 0100) {
297296
erev = nrn_nernst(conci, conco, charge, celsius);
298297
}
@@ -316,7 +315,6 @@ void nrn_init_ion(NrnThread* nt, Memb_list* ml, int type) {
316315
int _cntml_padded = ml->_nodecount_padded;
317316
pd = ml->data;
318317
ppd = ml->pdata;
319-
printf("nrn_init_ion %d %s conci %lf conco %lf charge %lf celsius %lf\n", type, nrn_get_mechname(type), conci0, conco0, charge, celsius);
320318
// There was no async(...) clause in the initial OpenACC implementation, so
321319
// no `nowait` clause has been added to the OpenMP implementation. TODO:
322320
// verify if this can be made asynchronous or if there is a strong reason it

0 commit comments

Comments
 (0)