-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance update #22
base: main
Are you sure you want to change the base?
Conversation
The callback will be called after a component do-step, AFTER the out channels were updated via ComponentUpdateOutChannels (and implicitly via comp->UpdateOutChannels)
} | ||
|
||
if (i >= numVecOut) { | ||
ComponentLog(comp, LOG_ERROR, "GetValue: Invalid index (%d) provided", idx); |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
|
||
retVal = dbInfos->PushBack(dbInfos, info); | ||
if (RETURN_OK != retVal) { | ||
mcx_log(LOG_ERROR, "Ports: Read port infos: Could not append info of port %d", i); |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
if (RETURN_ERROR == retVal) { | ||
mcx_log(LOG_ERROR, "Ports: Read port infos: Could not read element specific data of port %d", i); | ||
mcx_log(LOG_ERROR, "Ports: Read port infos: Could not add vector info of port %d", i); |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
if (infos->Size(infos) == 1 && SpecificRead) { | ||
retVal = SpecificRead(comp, infoCpy, portInput, i); | ||
if (RETURN_ERROR == retVal) { | ||
mcx_log(LOG_ERROR, "Ports: Read port infos: Could not read element specific data of port %d", i); |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
&& !channel->IsValid(channel)) { | ||
mcx_log(LOG_ERROR, "Model: %d. inport (%s) of element %s not connected" | ||
, i+1, info->GetName(info), comp->GetName(comp)); | ||
, i+1, ChannelInfoGetName(info), comp->GetName(comp)); |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
&& !channel->IsValid(channel)) { | ||
mcx_log(LOG_ERROR, "Model: %d. outport (%s) of element %s not connected" | ||
, i+1, info->GetName(info), comp->GetName(comp)); | ||
, i+1, ChannelInfoGetName(info), comp->GetName(comp)); |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
for (i = 0; i < comps->Size(comps); i++) { | ||
Component * iComp = (Component *) comps->At(comps, i); | ||
if (!iComp) { | ||
mcx_log(LOG_DEBUG, "Model: nullptr in submodel at idx %d", i); |
Check failure
Code scanning / CodeQL
Wrong type of arguments to formatting function High
several improvements to increase simulation speed (memory layout, pre-allocation, ...)