You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the random_normal() function is called from the parameters or state block of the NESTML model, the simulation script with the model throws an error:
Assertion failed: (tid < static_cast< size_t >( vp_specific_rngs_.size() )), function get_vp_specific_rng, file random_manager.h, line 166.
In the generated code, the parameter with the random_normal() function is initialized in the constructor
P_.internal_val = ((0) + (0.2) * normal_dev_( nest::get_vp_specific_rng( get_thread() ) )); // as real
At this point in the code, the thread ID via the get_thread() function is not yet available with the node which results in the error.
The text was updated successfully, but these errors were encountered:
Based on discussion at the 2024 Q1 NEST hackathon, we concluded that implementing this in NEST Simulator would be difficult. In this case, we should forbid users from using RNGs in the parameters (or internals, or state) initialisation when generating code for the NEST target. (This should be a target platform-specific coco.)
When the
random_normal()
function is called from theparameters
orstate
block of the NESTML model, the simulation script with the model throws an error:In the generated code, the parameter with the
random_normal()
function is initialized in the constructorAt this point in the code, the thread ID via the
get_thread()
function is not yet available with the node which results in the error.The text was updated successfully, but these errors were encountered: