Skip to content

Commit

Permalink
fix for cpp windwos simulation run script.
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18616 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
niklwors committed Jan 10, 2014
1 parent 5ea6477 commit 609efca
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Compiler/Template/CodegenCpp.tpl
Expand Up @@ -91,10 +91,8 @@ let solver = settings.method
let moLib = makefileParams.compileDir
let home = makefileParams.omhome
<<
set PATHTMP=%PATH%
set PATH = %PATH%;<%home%>/bin
OMCpp<%fileNamePrefix%>.exe -s <%start%> -e <%end%> -f <%stepsize%> -v <%intervals%> -y <%tol%> -i <%solver%> -r <%simulationLibDir(simulationCodeTarget(),simCode)%> -m <%moLib%> -R <%simulationResults(getRunningTestsuite(),simCode)%>
set PATH = %PATHTMP%
@echo off
<%moLib%>/OMCpp<%fileNamePrefix%>.exe -s <%start%> -e <%end%> -f <%stepsize%> -v <%intervals%> -y <%tol%> -i <%solver%> -r <%simulationLibDir(simulationCodeTarget(),simCode)%> -m <%moLib%> -R <%simulationResults(getRunningTestsuite(),simCode)%>
>>
end match
end simulationMainRunScrip2;
Expand Down Expand Up @@ -122,13 +120,14 @@ template simulationResults(Boolean test, SimCode simCode)
::=
match simCode
case SIMCODE(modelInfo=MODELINFO(__),makefileParams=MAKEFILE_PARAMS(__),simulationSettingsOpt = SOME(settings as SIMULATION_SETTINGS(__))) then
let results = if test then "" else '<%makefileParams.omhome%>/'
let results = if test then "" else '<%makefileParams.compileDir%>/'
<<
<%results%><%lastIdentOfPath(modelInfo.name)%>res_.<%settings.outputFormat%>
<%results%><%lastIdentOfPath(modelInfo.name)%>_res.<%settings.outputFormat%>
>>
end simulationResults;



template simulationMainRunScripSuffix(SimCode simCode)
"Generates code for header file for simulation target."
::=
Expand Down

0 comments on commit 609efca

Please sign in to comment.