Skip to content

Constraints on spatialDistribution initialization #3640

@henrikt-ma

Description

@henrikt-ma

There are several requirements for the initialization of a spatialDistribution that I feel are missing in the specification:

  1. That initialPoints cover the entire range from 0 to 1 (no need for tools to invent their own extrapolation mechanisms).
  2. That initialPoints is strictly increasing instead of non-descending (making the initial state consistent with the rule that the buffer is never updated when x = x0 during simulation).
  3. That initialPoints and initialValues are parameter expressions (would be confusing if time-varying expressions could be passed if only values at initialization are used).

Based on how spatialDistribution has been implemented in tools, could we expect that libraries are already complying with these requirements?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions