Skip to content

Commit

Permalink
- Always filter the dummy derivative from the result-file
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@8028 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 26, 2011
1 parent dea972f commit 9cd8362
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions c_runtime/simulation_runtime.cpp
Expand Up @@ -276,6 +276,10 @@ void initializeOutputFilter(DATA* data, string variableFilter)
int rc;
string tmp = ("^(" + variableFilter + ")$");
const char *filter = tmp.c_str(); // C++ strings are horrible to work with...
if (data->nStates > 0 && 0 == strcmp(data->statesNames[0].name,"$dummy")) {
data->statesFilterOutput[0] = 1;
data->statesDerivativesFilterOutput[0] = 1;
}
if (0 == strcmp(filter, ".*")) // This matches all variables, so we don't need to do anything
return;

Expand Down

0 comments on commit 9cd8362

Please sign in to comment.