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@23295 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
OpenModelica-Hudson committed Nov 10, 2014
1 parent 4bfa251 commit 5c27cbe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -1281,9 +1281,9 @@ case SIMCODE(modelInfo=MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__)) then
static long unsigned int getThreadNumber()
{
return 0;
}
}
#endif

#if defined(_MSC_VER) || defined(__MINGW32__)
#include <tchar.h>
int _tmain(int argc, const _TCHAR* argv[])
Expand Down
16 changes: 8 additions & 8 deletions Compiler/Template/CodegenCppHpcom.tpl
Expand Up @@ -387,9 +387,9 @@ case SIMCODE(modelInfo = MODELINFO(__)) then
#ifdef MEASURETIME_MODELFUNCTIONS
MeasureTime::addResultContentBlock("<%dotPath(modelInfo.name)%>","functions_HPCOM",&measureTimeArrayHpcom);
measureTimeArrayHpcom = std::vector<MeasureTimeData>(<%getConfigInt(NUM_PROC)%>);
<%List.intRange(getConfigInt(NUM_PROC)) |> threadIdx => 'measureTimeArrayHpcom[<%intSub(threadIdx,1)%>] = MeasureTimeData("evaluateODE_thread<%threadIdx%>");'; separator="\n"%>
MeasureTime::addResultContentBlock("<%dotPath(modelInfo.name)%>","functions",&measureTimeFunctionsArray);
measureTimeFunctionsArray = std::vector<MeasureTimeData>(3); //1 evaluateODE ; 2 evaluateAll; 3 writeOutput
measuredFunctionStartValues = MeasureTime::getZeroValues();
Expand Down Expand Up @@ -868,7 +868,7 @@ template generateLevelFixedCodeForThread(list<SimEqSystem> allEquationsPlusWhen,
}
>>
else
let &mainThreadCode +=
let &mainThreadCode +=
'
_levelBarrier.wait();
<%odeEqs%>
Expand Down Expand Up @@ -1306,7 +1306,7 @@ template assignLockByDepTask(Task depTask, String lockPrefix, String iType)
match(depTask)
case(DEPTASK(__)) then
let lockName = getLockNameByDepTask(depTask)
let commInfoStr = printCommunicationInfoVariables(depTask.communicationInfo)
let commInfoStr = printCommunicationInfoVariables(depTask.communicationInfo)
<<
<%assignLockByLockName(lockName, lockPrefix, iType)%>
>>
Expand Down Expand Up @@ -1433,7 +1433,7 @@ case SIMCODE(modelInfo=MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__)) then
>>
end match
%>

#ifdef USE_BOOST_THREAD
#include <boost/thread.hpp>
static long unsigned int getThreadNumber()
Expand All @@ -1445,9 +1445,9 @@ case SIMCODE(modelInfo=MODELINFO(__), makefileParams=MAKEFILE_PARAMS(__)) then
static long unsigned int getThreadNumber()
{
return 0;
}
}
#endif

#if defined(_MSC_VER) || defined(__MINGW32__)
#include <tchar.h>
int _tmain(int argc, const _TCHAR* argv[])
Expand Down Expand Up @@ -1585,7 +1585,7 @@ template simulationMainFile(SimCode simCode)
static long unsigned int getThreadNumber()
{
return 0;
}
}
#endif

<%MPIHeaderInclude%>
Expand Down

0 comments on commit 5c27cbe

Please sign in to comment.