Skip to content

Commit

Permalink
Update CoreConfig.mod for latest CoreNEURON changes (#18)
Browse files Browse the repository at this point in the history
- Parameter passed to solve_core should contain name of
   executable/process name as first argument in argv[].
 - This is required for changes in neuronsimulator/nrn/pull/2429.

Co-authored-by: Pramod S Kumbhar <[email protected]>
  • Loading branch information
olupton and pramodk authored Aug 3, 2023
1 parent 9606979 commit 461e0d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/mod/CoreConfig.mod
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,9 @@ VERBATIM
char* simConf = (char*)alloca(strlen(outputdir) + CONFIG_FILENAME_TOTAL_LEN_MAX);
sprintf(simConf, "%s/%s", outputdir, SIM_CONFIG_FILE);
# if CORENRN_CLI11
char *argv[] = {"", "--read-config", simConf, "--skip-mpi-finalize", "--mpi", NULL, NULL, NULL, NULL};
char *argv[] = {"coreneuron", "--read-config", simConf, "--skip-mpi-finalize", "--mpi", NULL, NULL, NULL, NULL};
# else
char *argv[] = {"", "--read-config", simConf, "--skip-mpi-finalize", "-mpi", NULL, NULL, NULL, NULL};
char *argv[] = {"coreneuron", "--read-config", simConf, "--skip-mpi-finalize", "-mpi", NULL, NULL, NULL, NULL};
# endif
int argc = 5;
int argIndex=1;
Expand Down

0 comments on commit 461e0d8

Please sign in to comment.