From f2bdeb958fb81675304c64820a90bfeb407860cd Mon Sep 17 00:00:00 2001 From: Hans Ekkehard Plesser Date: Tue, 18 Jun 2024 14:23:39 +0200 Subject: [PATCH] Added warning concering order of parameter creation and change in number of threads --- doc/htmldoc/neurons/parametrization.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/doc/htmldoc/neurons/parametrization.rst b/doc/htmldoc/neurons/parametrization.rst index 19a3c4dc53..93e10df4a6 100644 --- a/doc/htmldoc/neurons/parametrization.rst +++ b/doc/htmldoc/neurons/parametrization.rst @@ -19,6 +19,16 @@ The following parameters and functionalities are provided: - :ref:`Combination of parameters ` +.. 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