Skip to content

Commit

Permalink
- add missing optmodules description
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22889 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
lochel committed Oct 23, 2014
1 parent d78f14e commit 222c7c1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 26 deletions.
50 changes: 25 additions & 25 deletions Compiler/BackEnd/BackendDAEUtil.mo
Expand Up @@ -8806,12 +8806,12 @@ algorithm
(BackendDAEOptimize.removeUnusedVariables, "removeUnusedVariables", false),
(SynchronousFeatures.clockPartitioning, "clockPartitioning", true),
(BackendDAEOptimize.expandDerOperator, "expandDerOperator", false),
(IndexReduction.findStateOrder,"findStateOrder", false),
(IndexReduction.findStateOrder, "findStateOrder", false),
(BackendDAEOptimize.simplifyIfEquations, "simplifyIfEquations", false),
(BackendDAEOptimize.replaceEdgeChange, "replaceEdgeChange", false),
(BackendDAEOptimize.residualForm, "residualForm", false),
(ResolveLoops.resolveLoops, "resolveLoops",false),
(EvaluateFunctions.evalFunctions, "evalFunc",false),
(ResolveLoops.resolveLoops, "resolveLoops", false),
(EvaluateFunctions.evalFunctions, "evalFunc", false),
(UnitCheck.unitChecking, "unitChecking", true)
};
strPreOptModules := getPreOptModulesString();
Expand All @@ -8834,39 +8834,39 @@ protected
list<String> strpostOptModules;
algorithm
allpostOptModules := {(BackendDAEOptimize.encapsulateWhenConditions, "encapsulateWhenConditions", true),
(BackendInline.lateInlineFunction,"lateInlineFunction",false),
(RemoveSimpleEquations.causal,"removeSimpleEquations",false),
(RemoveSimpleEquations.fastAcausal,"removeSimpleEquationsFast",false),
(BackendDAEOptimize.removeEqualFunctionCalls,"removeEqualFunctionCalls",false),
(BackendInline.lateInlineFunction, "lateInlineFunction", false),
(RemoveSimpleEquations.causal, "removeSimpleEquations", false),
(RemoveSimpleEquations.fastAcausal, "removeSimpleEquationsFast", false),
(BackendDAEOptimize.removeEqualFunctionCalls, "removeEqualFunctionCalls", false),
(EvaluateParameter.evaluateFinalParameters, "evaluateFinalParameters", false),
(EvaluateParameter.evaluateEvaluateParameters, "evaluateEvaluateParameters", false),
(EvaluateParameter.evaluateFinalEvaluateParameters, "evaluateFinalEvaluateParameters", false),
(EvaluateParameter.evaluateReplaceFinalParameters, "evaluateReplaceFinalParameters", false),
(EvaluateParameter.evaluateReplaceEvaluateParameters, "evaluateReplaceEvaluateParameters", false),
(EvaluateParameter.evaluateReplaceFinalEvaluateParameters, "evaluateReplaceFinalEvaluateParameters", false),
(EvaluateParameter.evaluateReplaceProtectedFinalEvaluateParameters, "evaluateReplaceProtectedFinalEvaluateParameters", false),
(InlineArrayEquations.inlineArrayEqn,"inlineArrayEqn",false),
(BackendDAEOptimize.removeUnusedParameter,"removeUnusedParameter",false),
(BackendDAEOptimize.removeUnusedVariables,"removeUnusedVariables",false),
(BackendDAEOptimize.constantLinearSystem,"constantLinearSystem",false),
(OnRelaxation.relaxSystem,"relaxSystem",false),
(BackendDAEOptimize.countOperations,"countOperations",false),
(BackendDump.dumpComponentsGraphStr,"dumpComponentsGraphStr",false),
(BackendDAEOptimize.generateSymbolicJacobianPast,"generateSymbolicJacobian",false),
(BackendDAEOptimize.generateSymbolicLinearizationPast,"generateSymbolicLinearization",false),
(BackendDAEOptimize.removeUnusedFunctions,"removeUnusedFunctions",false),
(BackendDAEOptimize.simplifyTimeIndepFuncCalls,"simplifyTimeIndepFuncCalls",false),
(BackendDAEOptimize.inputDerivativesUsed,"inputDerivativesUsed",false),
(BackendDAEOptimize.simplifysemiLinear,"simplifysemiLinear",false),
(BackendDAEOptimize.removeConstants,"removeConstants",false),
(Initialization.optimizeInitialSystem,"optimizeInitialSystem",false),
(BackendDAEOptimize.detectSparsePatternODE,"detectJacobianSparsePattern",false),
(InlineArrayEquations.inlineArrayEqn, "inlineArrayEqn", false),
(BackendDAEOptimize.removeUnusedParameter, "removeUnusedParameter", false),
(BackendDAEOptimize.removeUnusedVariables, "removeUnusedVariables", false),
(BackendDAEOptimize.constantLinearSystem, "constantLinearSystem", false),
(OnRelaxation.relaxSystem, "relaxSystem", false),
(BackendDAEOptimize.countOperations, "countOperations", false),
(BackendDump.dumpComponentsGraphStr, "dumpComponentsGraphStr", false),
(BackendDAEOptimize.generateSymbolicJacobianPast, "generateSymbolicJacobian", false),
(BackendDAEOptimize.generateSymbolicLinearizationPast, "generateSymbolicLinearization", false),
(BackendDAEOptimize.removeUnusedFunctions, "removeUnusedFunctions", false),
(BackendDAEOptimize.simplifyTimeIndepFuncCalls, "simplifyTimeIndepFuncCalls", false),
(BackendDAEOptimize.inputDerivativesUsed, "inputDerivativesUsed", false),
(BackendDAEOptimize.simplifysemiLinear, "simplifysemiLinear", false),
(BackendDAEOptimize.removeConstants, "removeConstants", false),
(Initialization.optimizeInitialSystem, "optimizeInitialSystem", false),
(BackendDAEOptimize.detectSparsePatternODE, "detectJacobianSparsePattern", false),
(Tearing.tearingSystem, "tearingSystem", false),
(HpcOmEqSystems.partitionLinearTornSystem,"partlintornsystem",false),
(HpcOmEqSystems.partitionLinearTornSystem, "partlintornsystem", false),
(BackendDAEOptimize.addInitialStmtsToAlgorithms, "addInitialStmtsToAlgorithms", false),
(BackendDAEOptimize.calculateStrongComponentJacobians, "calculateStrongComponentJacobians", false),
(BackendDAEOptimize.calculateStateSetsJacobians, "calculateStateSetsJacobians", false),
(ResolveLoops.reshuffling_post,"reshufflePost", false)
(ResolveLoops.reshuffling_post, "reshufflePost", false)
};

strpostOptModules := getPostOptModulesString();
Expand Down
7 changes: 6 additions & 1 deletion Compiler/Util/Flags.mo
Expand Up @@ -410,6 +410,8 @@ constant DebugFlag RESHUFFLE_POST = DEBUG_FLAG(122, "reshufflePost", false,
Util.gettext("Reshuffles the systems of equations."));
constant DebugFlag SHOW_EXPANDABLE_INFO = DEBUG_FLAG(123, "showExpandableInfo", false,
Util.gettext("Show information about expandable connector handling."));
constant DebugFlag DUMP_HOMOTOPY = DEBUG_FLAG(124, "dumpHomotopy", false,
Util.gettext("Dumps the results of the postOptModule optimizeHomotopyCalls."));

// This is a list of all debug flags, to keep track of which flags are used. A
// flag can not be used unless it's in this list, and the list is checked at
Expand Down Expand Up @@ -538,7 +540,8 @@ constant list<DebugFlag> allDebugFlags = {
DUMP_EQ_UNIT_STRUCT,
SHOW_DAE_GENERATION,
RESHUFFLE_POST,
SHOW_EXPANDABLE_INFO
SHOW_EXPANDABLE_INFO,
DUMP_HOMOTOPY
};

// CONFIGURATION FLAGS
Expand Down Expand Up @@ -608,6 +611,7 @@ constant ConfigFlag PRE_OPT_MODULES = CONFIG_FLAG(12, "preOptModules",
"evalFunc"
}),
SOME(STRING_DESC_OPTION({
("unitChecking", Util.gettext("advanced unit checking: 1. calculation of unspecified unit information for variables; 2. unit consistency check for equations")),
("removeSimpleEquations", removeSimpleEquationDesc),
("removeAllSimpleEquations", removeSimpleEquationDesc),
("inlineArrayEqn", Util.gettext("This module expands all array equations to scalar equations.")),
Expand All @@ -624,6 +628,7 @@ constant ConfigFlag PRE_OPT_MODULES = CONFIG_FLAG(12, "preOptModules",
("removeUnusedVariables", Util.gettext("Strips all variables not present in the equations from the system.")),
("clockPartitioning", Util.gettext("Does the clock partitioning.")),
("expandDerOperator", Util.notrans("DESCRIBE ME")),
("findStateOrder", Util.notrans("DESCRIBE ME")),
("simplifyIfEquations", Util.gettext("Tries to simplify if equations by use of information from evaluated parameters.")),
("replaceEdgeChange", Util.gettext("Replace edge(b) = b and not pre(b) and change(b) = v <> pre(v).")),
("residualForm", Util.gettext("Transforms simple equations x=y to zero-sum equations 0=y-x.")),
Expand Down

0 comments on commit 222c7c1

Please sign in to comment.