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

Commit 2e39624

Browse files
Nicolas Cornupramodk
andauthored
Add propagation of legacy units for nmodl (#417)
* Add propagation of legacy units for nmodl * use --latest with spack to find out newest installation * Always use long options with spack * disable legacy units in neuron installation Co-authored-by: Pramod Kumbhar <[email protected]>
1 parent f2120d3 commit 2e39624

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,9 @@ if(CORENRN_ENABLE_LEGACY_UNITS)
246246
else()
247247
set(CORENRN_USE_LEGACY_UNITS 0)
248248
endif()
249+
# Propagate Legacy Units flag to backends.
249250
set(MOD2C_ENABLE_LEGACY_UNITS ${CORENRN_ENABLE_LEGACY_UNITS} CACHE BOOL "" FORCE)
251+
set(NMODL_ENABLE_LEGACY_UNITS ${CORENRN_ENABLE_LEGACY_UNITS} CACHE BOOL "" FORCE)
250252

251253
if(MINGW)
252254
add_definitions("-DMINGW")

tests/jenkins/install_coreneuron.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -x
55

66
source ${JENKINS_DIR:-.}/_env_setup.sh
77

8-
reportinglib_dir=$(spack cd -i reportinglib%intel && pwd)
8+
reportinglib_dir=$(spack location --install-dir --latest reportinglib%intel)
99

1010
CORENRN_TYPE="$1"
1111

tests/jenkins/install_neuron_reportinglib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ source ${JENKINS_DIR:-.}/_env_setup.sh
2626
spack install reportinglib%intel
2727

2828
patch_neuron
29-
spack install neuron+debug@develop
29+
spack install neuron+debug@develop~legacy-unit
3030
source $SPACK_ROOT/share/spack/setup-env.sh
3131
module av neuron reportinglib
3232

0 commit comments

Comments
 (0)