Skip to content

Commit

Permalink
Don't touch inithoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Cornu committed Sep 11, 2024
1 parent 352ce79 commit d9214f3
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/nrnpython/inithoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
#include <iostream>
#include <string>

#include "hocdec.h"
#include <fmt/format.h>

extern int nrn_is_python_extension;
extern int nrn_nobanner_;
extern int ivocmain(int, const char**, const char**);
Expand Down Expand Up @@ -267,10 +264,9 @@ extern "C" NRN_EXPORT PyObject* PyInit_hoc() {
libnrnmpi_is_loaded = 0;
}
if (!pmes.empty() && libnrnmpi_is_loaded) {
Printf(fmt::format("NEURON_INIT_MPI nonzero in env (or -mpi arg) but NEURON cannot "
"initialize MPI because:\n{}\n",
pmes)
.c_str());
std::cout << "NEURON_INIT_MPI nonzero in env (or -mpi arg) but NEURON cannot "
"initialize MPI because:\n"
<< pmes << std::endl;
exit(1);
}
}
Expand Down

0 comments on commit d9214f3

Please sign in to comment.