Skip to content

Commit

Permalink
- remove maxDer info from SimCode.Modelinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
vwaurich authored and OpenModelica-Hudson committed Mar 21, 2016
1 parent 0c0fc1a commit 94f8257
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
1 change: 0 additions & 1 deletion Compiler/SimCode/SimCode.mo
Expand Up @@ -207,7 +207,6 @@ uniontype ModelInfo "Container for metadata about a Modelica model."
list<Function> functions;
list<String> labels;
//Files files "all the files from SourceInfo and DAE.ELementSource";
Integer maxDer "the highest derivative in the model";
Integer nClocks;
Integer nSubClocks;
Boolean hasLargeLinearEquationSystems; // True if model has large linear eq. systems that are crucial for performance.
Expand Down
10 changes: 4 additions & 6 deletions Compiler/SimCode/SimCodeUtil.mo
Expand Up @@ -5759,7 +5759,6 @@ protected
SimCodeVar.SimVars vars;
Integer nx, ny, ndy, np, na, next, numOutVars, numInVars, ny_int, np_int, na_int, ny_bool, np_bool, dim_1, dim_2, numOptimizeConstraints, numOptimizeFinalConstraints;
Integer na_bool, ny_string, np_string, na_string;
Integer maxDer;
list<SimCodeVar.SimVar> states1, states_lst, states_lst2, der_states_lst;
list<SimCodeVar.SimVar> states_2, derivatives_2;
Boolean hasLargeEqSystems;
Expand Down Expand Up @@ -5795,12 +5794,11 @@ algorithm
ny_int, np_int, na_int, ny_bool, np_bool, na_bool, ny_string, np_string, na_string,
numStateSets, numOptimizeConstraints, numOptimizeFinalConstraints);
if debug then execStat("simCode: createVarInfo"); end if;
maxDer := getHighestDerivation(dlow);
if debug then execStat("simCode: getHighestDerivation"); end if;
hasLargeEqSystems := hasLargeEquationSystems(dlow, inInitDAE);
if debug then execStat("simCode: hasLargeEquationSystems"); end if;
modelInfo := SimCode.MODELINFO(class_, dlow.shared.info.description, directory, varInfo, vars, functions,
labels, maxDer, arrayLength(dlow.shared.partitionsInfo.basePartitions),
labels, arrayLength(dlow.shared.partitionsInfo.basePartitions),
arrayLength(dlow.shared.partitionsInfo.subPartitions), hasLargeEqSystems);
else
Error.addInternalError("createModelInfo failed", sourceInfo());
Expand Down Expand Up @@ -9395,12 +9393,12 @@ protected
SimCodeVar.SimVars vars;
list<SimCode.Function> functions;
list<String> labels;
Integer maxDer, nClocks, nSubClocks;
Integer nClocks, nSubClocks;
Boolean hasLargeLinearEquationSystems;
algorithm
if not Config.acceptMetaModelicaGrammar() then
modelInfo := outSimCode.modelInfo;
SimCode.MODELINFO(name, description, directory, varInfo, vars, functions, labels, maxDer, nClocks, nSubClocks, hasLargeLinearEquationSystems) := modelInfo;
SimCode.MODELINFO(name, description, directory, varInfo, vars, functions, labels, nClocks, nSubClocks, hasLargeLinearEquationSystems) := modelInfo;
files := getFilesFromSimVars(vars, files);
files := getFilesFromFunctions(functions, files);
files := getFilesFromSimEqSystems( outSimCode.allEquations :: outSimCode.startValueEquations :: outSimCode.nominalValueEquations
Expand All @@ -9411,7 +9409,7 @@ algorithm
files := getFilesFromExtObjInfo(outSimCode.extObjInfo, files);
files := getFilesFromJacobianMatrixes(outSimCode.jacobianMatrixes, files);
files := List.sort(files, greaterFileInfo);
modelInfo := SimCode.MODELINFO(name, description, directory, varInfo, vars, functions, labels, maxDer, nClocks, nSubClocks, hasLargeLinearEquationSystems);
modelInfo := SimCode.MODELINFO(name, description, directory, varInfo, vars, functions, labels, nClocks, nSubClocks, hasLargeLinearEquationSystems);
outSimCode.modelInfo := modelInfo;
end if;
end collectAllFiles;
Expand Down
1 change: 0 additions & 1 deletion Compiler/Template/SimCodeTV.mo
Expand Up @@ -570,7 +570,6 @@ package SimCode
SimCodeVar.SimVars vars;
list<Function> functions;
list<String> labels;
Integer maxDer;
Integer nClocks;
Integer nSubClocks;
end MODELINFO;
Expand Down

0 comments on commit 94f8257

Please sign in to comment.