.MetaModelica.setGlobalRoot

Sets the index of the root variable with index 9..1023, or thread-local root variable with index 0..8. This is a global mutable value and should be used sparingly. You are recommended not to use 0 or false since the runtime system may treat these values as uninitialized and fail getGlobalRoot later on.

Interface

function setGlobalRoot<A>
  input Integer index;
  input A value;
end setGlobalRoot;

Generated at 2025-03-30T18:24:30Z by OpenModelicaOpenModelica 1.24.5 using GenerateDoc.mos