Skip to content
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

Open
wants to merge 84 commits into
base: main
Choose a base branch
from
Open

Performance update #22

wants to merge 84 commits into from

Conversation

klausschuch
Copy link
Contributor

several improvements to increase simulation speed (memory layout, pre-allocation, ...)

Vaan5 and others added 30 commits July 11, 2024 10:42
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

This format specifier for type 'int' does not match the argument type 'unsigned long'.

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

This format specifier for type 'int' does not match the argument type 'unsigned long'.
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

This format specifier for type 'int' does not match the argument type 'unsigned long'.
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

This format specifier for type 'int' does not match the argument type 'unsigned long'.
&& !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

This format specifier for type 'int' does not match the argument type 'unsigned long'.
&& !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

This format specifier for type 'int' does not match the argument type 'unsigned long'.
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

This format specifier for type 'int' does not match the argument type 'unsigned long'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants