Skip to content

Commit

Permalink
Merge pull request #3229 from heplesser/warning-3228
Browse files Browse the repository at this point in the history
Add warning concerning order of parameter creation and change in number of threads
  • Loading branch information
heplesser authored Jun 20, 2024
2 parents 8d8e527 + c8157c6 commit f3b7323
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/htmldoc/neurons/parametrization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ The following parameters and functionalities are provided:
- :ref:`Combination of parameters <combine_ex>`


.. admonition:: Create parameters after setting number of threads!

For correct results, it is essential to create parameter objects
only *after* the number of threads (virtual processes) has been
set. If parameter objects are created first and the number of
threads changed afterwards, this will result incorrect behavior and
possibly a segmentation fault. Unfortunately, NEST cannot currently
detect existing parameter objects when the number of threads change.


.. _random_ex:

Random parameters
Expand Down

0 comments on commit f3b7323

Please sign in to comment.