Skip to content

Commit

Permalink
[Janitor mode] Fix tabs
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@16666 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Jul 24, 2013
1 parent 157d533 commit 4ab95c9
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Compiler/BackEnd/HpcOmTaskGraph.mo
Expand Up @@ -3621,16 +3621,16 @@ algorithm
oTaskGraphMeta := matchcontinue(iDae,benchFileName,simEqSccMapping,iTaskGraphMeta)
case(BackendDAE.DAE(shared=shared),_,_,TASKGRAPHMETA(inComps=inComps, commCosts=commCosts))
equation
(comps,compMapping) = getSystemComponents(iDae);
((_,reqTimeCom)) = HpcOmBenchmark.benchSystem();
reqTimeOpLstSimCode = HpcOmBenchmark.readCalcTimesFromXml(benchFileName);
reqTimeOpSimCode = arrayCreate(listLength(reqTimeOpLstSimCode),(-1,-1.0));
reqTimeOpSimCode = List.fold(reqTimeOpLstSimCode, createCosts1, reqTimeOpSimCode);
reqTimeOp = arrayCreate(listLength(comps),-1.0);
reqTimeOp = convertSimEqToSccCosts(reqTimeOpSimCode, simEqSccMapping, reqTimeOp);
commCosts = createCommCosts(commCosts,1,reqTimeCom);
((_,tmpTaskGraphMeta)) = Util.arrayFold4(inComps,createCosts0,(comps,shared),compMapping, reqTimeOp, reqTimeCom, (1,iTaskGraphMeta));
then tmpTaskGraphMeta;
(comps,compMapping) = getSystemComponents(iDae);
((_,reqTimeCom)) = HpcOmBenchmark.benchSystem();
reqTimeOpLstSimCode = HpcOmBenchmark.readCalcTimesFromXml(benchFileName);
reqTimeOpSimCode = arrayCreate(listLength(reqTimeOpLstSimCode),(-1,-1.0));
reqTimeOpSimCode = List.fold(reqTimeOpLstSimCode, createCosts1, reqTimeOpSimCode);
reqTimeOp = arrayCreate(listLength(comps),-1.0);
reqTimeOp = convertSimEqToSccCosts(reqTimeOpSimCode, simEqSccMapping, reqTimeOp);
commCosts = createCommCosts(commCosts,1,reqTimeCom);
((_,tmpTaskGraphMeta)) = Util.arrayFold4(inComps,createCosts0,(comps,shared),compMapping, reqTimeOp, reqTimeCom, (1,iTaskGraphMeta));
then tmpTaskGraphMeta;
else
equation
print("Warning: Create costs failed. Maybe the _prof.xml-file is missing.\n");
Expand Down Expand Up @@ -3681,11 +3681,11 @@ algorithm
oReqTime := matchcontinue(iReqTime,iSimEqCalcTime, iSimEqIdx, iSimEqSccMapping)
case(reqTime,_,_,_)
equation
true = intGe(arrayLength(iSimEqSccMapping),iSimEqIdx);
sccIdx = arrayGet(iSimEqSccMapping, iSimEqIdx);
true = intGt(sccIdx,0);
reqTime = arrayUpdate(reqTime,sccIdx, iSimEqCalcTime);
//print("convertSimEqToSccCosts2 sccIdx: " +& intString(sccIdx) +& " reqTime: " +& realString(iSimEqCalcTime) +& "\n");
true = intGe(arrayLength(iSimEqSccMapping),iSimEqIdx);
sccIdx = arrayGet(iSimEqSccMapping, iSimEqIdx);
true = intGt(sccIdx,0);
reqTime = arrayUpdate(reqTime,sccIdx, iSimEqCalcTime);
//print("convertSimEqToSccCosts2 sccIdx: " +& intString(sccIdx) +& " reqTime: " +& realString(iSimEqCalcTime) +& "\n");
then
reqTime;
else
Expand Down

0 comments on commit 4ab95c9

Please sign in to comment.