Bug/issue#20 (#123)
This PR addresses two issues that were closely related: * correctly accounting for the current contribution of density mechanisms to CVs at branch points, where the density mechnanism is not present on all branches. This was discussed in issue #20. * adding support for weighting of current densities calculated from density mechanism. This is required to weight the current contribution to CVs in issue #20. ## small updates * update CMake rules for finding libunwind, because it broke for some reason. * add `binary_find` and unit tests to the algorithms library * returns an iterator, as opposed to `std::binary_search`, which returns a boolean. * works with ranges. * added `subrange_view` specialization that takes a subrange specified by a pair of indexes * added `assign_from` to range utils * a helper function that returns a proxy type that can be copied into a container * evaluate a range and store contents in a container, with minimal verbosity in user cod...
Showing
- cmake/FindUnwind.cmake 3 additions, 0 deletionscmake/FindUnwind.cmake
- docs/model/formulation.tex 31 additions, 39 deletionsdocs/model/formulation.tex
- docs/model/images/cable.tex 6 additions, 0 deletionsdocs/model/images/cable.tex
- docs/model/report.tex 1 addition, 0 deletionsdocs/model/report.tex
- docs/model/symbols.tex 115 additions, 67 deletionsdocs/model/symbols.tex
- modcc/cprinter.cpp 12 additions, 5 deletionsmodcc/cprinter.cpp
- modcc/cudaprinter.cpp 11 additions, 5 deletionsmodcc/cudaprinter.cpp
- modcc/module.cpp 7 additions, 4 deletionsmodcc/module.cpp
- src/algorithms.hpp 23 additions, 0 deletionssrc/algorithms.hpp
- src/backends/fvm_gpu.hpp 33 additions, 26 deletionssrc/backends/fvm_gpu.hpp
- src/backends/fvm_multicore.hpp 35 additions, 32 deletionssrc/backends/fvm_multicore.hpp
- src/cell_group.hpp 15 additions, 10 deletionssrc/cell_group.hpp
- src/fvm_multicell.hpp 154 additions, 70 deletionssrc/fvm_multicell.hpp
- src/mechanism.hpp 6 additions, 8 deletionssrc/mechanism.hpp
- src/util/rangeutil.hpp 36 additions, 7 deletionssrc/util/rangeutil.hpp
- tests/unit/test_algorithms.cpp 148 additions, 0 deletionstests/unit/test_algorithms.cpp
- tests/unit/test_mechanisms.cpp 4 additions, 3 deletionstests/unit/test_mechanisms.cpp
- tests/unit/test_range.cpp 19 additions, 0 deletionstests/unit/test_range.cpp
- tests/unit/test_synapses.cpp 6 additions, 2 deletionstests/unit/test_synapses.cpp
Please register or sign in to comment