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@22286 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Sep 12, 2014
1 parent dd75640 commit dac1c99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Compiler/BackEnd/HpcOmSimCodeMain.mo
Expand Up @@ -218,11 +218,11 @@ algorithm
//Get complete DAE System
//-----------------------
(taskGraph,taskGraphData) = HpcOmTaskGraph.createTaskGraph(inBackendDAE,filenamePrefix);

fileName = ("taskGraph"+&filenamePrefix+&".graphml");
schedulerInfo = arrayCreate(arrayLength(taskGraph), (-1,-1,-1.0));
HpcOmTaskGraph.dumpAsGraphMLSccLevel(taskGraph, taskGraphData,inBackendDAE, fileName, "", {}, {}, sccSimEqMapping, schedulerInfo, HpcOmTaskGraph.GRAPHDUMPOPTIONS(false,false,true,true));

//taskGraphDAE = arrayCopy(taskGraph);
//taskGraphDataDAE = HpcOmTaskGraph.copyTaskGraphMeta(taskGraphData);
//(taskGraphDAE,taskGraphDataDAE) = HpcOmTaskGraph.appendRemovedEquations(inBackendDAE,taskGraphDAE,taskGraphDataDAE);
Expand Down
2 changes: 1 addition & 1 deletion Compiler/BackEnd/HpcOmTaskGraph.mo
Expand Up @@ -4424,7 +4424,7 @@ algorithm
tuple<Integer,Real> execCost;
case(_,_,_,_,_,_)
equation
//print("\tcreateExecCost: sccs: " +& stringDelimitList(List.map(iNodeSccs, intString), ",") +& "\n");
//print("\tcreateExecCost: sccs: " +& stringDelimitList(List.map(iNodeSccs, intString), ",") +& "\n");
execCost = List.fold3(iNodeSccs, createExecCost0, icomps_shared, compMapping, iRequiredTime, (0,0.0));
_ = arrayUpdate(iExecCosts,iNodeIdx,execCost);
then ();
Expand Down
12 changes: 6 additions & 6 deletions Compiler/runtime/HpcOmBenchmarkExt.cpp
Expand Up @@ -356,8 +356,8 @@ std::list<std::list<double> > ReadJsonBenchFileEquations(std::string filePath)
buffer = (char*)calloc( 1, lSize+1 );
if( !buffer )
{
fclose(fp),fputs("memory alloc fails\n",stderr);
return resultList;
fclose(fp),fputs("memory alloc fails\n",stderr);
return resultList;
}

/* copy the file into the buffer */
Expand All @@ -371,15 +371,15 @@ std::list<std::list<double> > ReadJsonBenchFileEquations(std::string filePath)

if(root == 0)
{
fclose(fp),free(buffer),fputs("no root object defined in json-file - maybe the json file is corrupt\n",stderr);
return resultList;
fclose(fp),free(buffer),fputs("no root object defined in json-file - maybe the json file is corrupt\n",stderr);
return resultList;
}

profileBlocks = cJSON_GetObjectItem(root,"profileBlocks");
if(profileBlocks == 0)
{
fclose(fp),free(buffer),fputs("no profile blocks defined in json-file\n",stderr);
return resultList;
fclose(fp),free(buffer),fputs("no profile blocks defined in json-file\n",stderr);
return resultList;
}

arraySize = cJSON_GetArraySize(profileBlocks);
Expand Down

0 comments on commit dac1c99

Please sign in to comment.