From 68eaac5b344940d296b31ffe7b40bcadcdda7e01 Mon Sep 17 00:00:00 2001 From: Torsten Sommer Date: Thu, 16 Nov 2023 16:38:50 +0100 Subject: [PATCH] Document initial number of continuous states --- docs/2_3_common_states.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/2_3_common_states.adoc b/docs/2_3_common_states.adoc index 11ebbb9c7..743fc286d 100644 --- a/docs/2_3_common_states.adoc +++ b/docs/2_3_common_states.adoc @@ -256,6 +256,7 @@ This function can only be called in Model Exchange. * Argument `nContinuousStates` points to the `size_t` variable that will receive the number of <>. + +The initial value of `nContinuousStates` is the sum of the sizes of the variables referenced by the <> elements. The number of <> might change if a variable representing a state has a <> element that references a <> (see <> and <>). <> must be called after such <> changed. As long as no <> changed, the number of states is given in the <>, alleviating the need to call this function.