Skip to content

Commit

Permalink
Callback from CoreNEURON to help transfer data to NEURON. (#717)
Browse files Browse the repository at this point in the history
* Callback from CoreNEURON to help transfer data to NEURON.

Help for the transfer of voltage, i_membrane_, and mechanism data.
Strategy is to pass a pointer which is used by CoreNEURON to copy
data which may have been reordered due to SoA and permutation.

* After psolve uses nrn_core copy thread time to t.

Add a more comprehensive data return test.

* Handle artificial cells with multiple threads.
Added artificial cell test.

* Temporarily avoid non-deterministic segmentation fault from test.

* CMAKE_CXX_STANDARD 11 allows greater clarity with "auto&".

* Preserve CoreNEURON global and static data across invocations.

* autotools STDCXX11

Co-authored-by: Alexandru Savulescu <[email protected]>
  • Loading branch information
nrnhines and alexsavulescu authored Aug 26, 2020
1 parent 19cb091 commit 03400bf
Show file tree
Hide file tree
Showing 9 changed files with 1,322 additions and 19 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ project(NEURON C CXX)
# =============================================================================
set(PROJECT_VERSION_MAJOR 8)
set(PROJECT_VERSION_MINOR 0)
set(CMAKE_CXX_STANDARD 98)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ AC_CONFIG_SRCDIR(src/memacs/main.c)
AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE([enable])

AX_CXX_COMPILE_STDCXX(11, noext, mandatory)

m4_pattern_allow([^AC_MSG_ERROR$])

AC_PROG_CC_STDC
Expand Down
Loading

0 comments on commit 03400bf

Please sign in to comment.