Skip to content

Commit

Permalink
[Janitor mode] Fix whitespace
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@22091 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Sep 2, 2014
1 parent 777ce4c commit bd01515
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendVariable.mo
Expand Up @@ -3510,7 +3510,7 @@ public function getVarAtIndexFirst
input BackendDAE.Variables inVariables;
output BackendDAE.Var outVar;
algorithm
outVar := getVarAt(inVariables, inInteger);
outVar := getVarAt(inVariables, inInteger);
end getVarAtIndexFirst;

public function setVarAt
Expand Down
2 changes: 1 addition & 1 deletion Compiler/BackEnd/HpcOmScheduler.mo
Expand Up @@ -809,7 +809,7 @@ end getMaxCommCostsByTaskList;

protected function getMaxCommCostsByTaskList1 "author: marcusw
Check if the communication from parent to the given task (iTask) is higher than the current maximum.
If there is an edge between the nodes and it has an higher required time, then the output
If there is an edge between the nodes and it has an higher required time, then the output
value is updated. Otherwise the function returns the current maximum."
input tuple<HpcOmSimCode.Task,Integer> iTask;
input HpcOmSimCode.Task iParentTask;
Expand Down
22 changes: 11 additions & 11 deletions Compiler/BackEnd/HpcOmTaskGraph.mo
Expand Up @@ -483,7 +483,7 @@ end createTaskGraph1;

protected function flattenRefCounter "author: marcusw
Flat the given ref counter from <nodeIdx, numInts, numFloats, numBools> to <nodeIdx, (numInts + numFloats + numBools)."
input tuple<Integer,Integer,Integer,Integer> iRefCounter;
input tuple<Integer,Integer,Integer,Integer> iRefCounter;
output tuple<Integer,Integer> oRefCounter;
protected
Integer nodeIdx, numInts, numFloats, numBools;
Expand Down Expand Up @@ -903,7 +903,7 @@ algorithm
((sccIdx,_,_)) = arrayGet(iVarCompMapping,varIdx);
((intVars, floatVars, boolVars)) = arrayGet(iRequiredSccs, sccIdx);
tmpRequiredSccs = arrayUpdate(tmpRequiredSccs,sccIdx,(intVars+1, floatVars, boolVars));
then tmpRequiredSccs;
then tmpRequiredSccs;
case ((varIdx,1),2,_,tmpRequiredSccs)
equation
((sccIdx,_,_)) = arrayGet(iVarCompMapping,varIdx);
Expand All @@ -915,7 +915,7 @@ algorithm
((sccIdx,_,_)) = arrayGet(iVarCompMapping,varIdx);
((intVars, floatVars, boolVars)) = arrayGet(iRequiredSccs, sccIdx);
tmpRequiredSccs = arrayUpdate(tmpRequiredSccs,sccIdx,(intVars, floatVars, boolVars+1));
then tmpRequiredSccs;
then tmpRequiredSccs;
else iRequiredSccs;
end match;
end fillSccList;
Expand Down Expand Up @@ -2566,8 +2566,8 @@ public function convertToGraphMLSccLevelSubgraph "author: marcusw, waurich
output GraphML.GraphInfo oGraphInfo;
protected
GraphML.GraphInfo graphInfo;
Integer nameAttIdx, calcTimeAttIdx, opCountAttIdx, yCoordAttIdx, taskIdAttIdx, commCostAttIdx,
commVarsAttIdx, commVarsIntAttIdx, commVarsFloatAttIdx, commVarsBoolAttIdx, critPathAttIdx,
Integer nameAttIdx, calcTimeAttIdx, opCountAttIdx, yCoordAttIdx, taskIdAttIdx, commCostAttIdx,
commVarsAttIdx, commVarsIntAttIdx, commVarsFloatAttIdx, commVarsBoolAttIdx, critPathAttIdx,
simCodeEqAttIdx, threadIdAttIdx, taskNumberAttIdx, annotAttIdx;
list<Integer> nodeIdc;
algorithm
Expand All @@ -2591,11 +2591,11 @@ algorithm
(graphInfo,(_,critPathAttIdx)) = GraphML.addAttribute("", "CriticalPath", GraphML.TYPE_STRING(), GraphML.TARGET_GRAPH(), graphInfo);
graphInfo = GraphML.addGraphAttributeValue((critPathAttIdx, criticalPathInfo), iGraphIdx, graphInfo);
nodeIdc = List.intRange(arrayLength(iGraph));
((graphInfo,_)) = List.fold4(nodeIdc, addNodeToGraphML, (iGraph, iGraphData),
(nameAttIdx,opCountAttIdx,calcTimeAttIdx,taskIdAttIdx,yCoordAttIdx,commCostAttIdx,commVarsAttIdx,
commVarsIntAttIdx,commVarsFloatAttIdx,commVarsBoolAttIdx,simCodeEqAttIdx,threadIdAttIdx,taskNumberAttIdx,annotAttIdx),
sccSimEqMapping,
(iCriticalPath,iCriticalPathWoC,schedulerInfo, annotationInfo),
((graphInfo,_)) = List.fold4(nodeIdc, addNodeToGraphML, (iGraph, iGraphData),
(nameAttIdx,opCountAttIdx,calcTimeAttIdx,taskIdAttIdx,yCoordAttIdx,commCostAttIdx,commVarsAttIdx,
commVarsIntAttIdx,commVarsFloatAttIdx,commVarsBoolAttIdx,simCodeEqAttIdx,threadIdAttIdx,taskNumberAttIdx,annotAttIdx),
sccSimEqMapping,
(iCriticalPath,iCriticalPathWoC,schedulerInfo, annotationInfo),
(graphInfo,iGraphIdx));
then graphInfo;
end match;
Expand Down Expand Up @@ -5221,7 +5221,7 @@ algorithm
end matchcontinue;
end transposeCommCosts1;

//TODO: Can this be merged with getCommCostBetweenNodes?
//TODO: Can this be merged with getCommCostBetweenNodes?
public function getCommunicationCost " gets the communication cost for an edge from parent node to child node.
REMARK: use the primal indeces!!!!!!
author: waurich TUD 2013-06."
Expand Down

0 comments on commit bd01515

Please sign in to comment.