Skip to content

Commit

Permalink
Split CevalScript into CevalScriptBackend
Browse files Browse the repository at this point in the history
CevalScriptBackend is the parts of CevalScript that used to handle
simulations and most of the interactive API.
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Jul 2, 2015
1 parent aea876d commit a5ea4c9
Show file tree
Hide file tree
Showing 35 changed files with 6,726 additions and 6,822 deletions.
5 changes: 3 additions & 2 deletions Compiler/BackEnd/OpenTURNS.mo
Expand Up @@ -54,6 +54,7 @@ import BackendEquation;
import BackendVariable;
import ClockIndexes;
import CevalScript;
import CevalScriptBackend;
import ComponentReference;
import DAEUtil;
import Expression;
Expand Down Expand Up @@ -96,8 +97,8 @@ algorithm
cname_last_str := Absyn.pathLastIdent(inPath);
fileNamePrefix := cname_str;

simSettings := CevalScript.convertSimulationOptionsToSimCode(
CevalScript.buildSimulationOptionsFromModelExperimentAnnotation(
simSettings := CevalScriptBackend.convertSimulationOptionsToSimCode(
CevalScriptBackend.buildSimulationOptionsFromModelExperimentAnnotation(
GlobalScriptUtil.setSymbolTableAST(GlobalScript.emptySymboltable,inProgram),inPath,fileNamePrefix,NONE())
);
// correlation matrix form (vector of records) currently not supported by OpenModelica backend, remove it .
Expand Down
3 changes: 2 additions & 1 deletion Compiler/Main/Main.mo
Expand Up @@ -47,6 +47,7 @@ import BackendDAE;
import BackendDAECreate;
import BackendDAEUtil;
import CevalScript;
import CevalScriptBackend;
import ClockIndexes;
import Config;
import Corba;
Expand Down Expand Up @@ -579,7 +580,7 @@ algorithm
// program. Otherwise, instantiate the given class name.
cname := if stringLength(cls) == 0 then Absyn.lastClassname(program) else Absyn.stringPath(cls);
st := GlobalScriptUtil.setSymbolTableAST(GlobalScript.emptySymboltable, program);
(cache, env, dae) := CevalScript.runFrontEnd(FCore.emptyCache(), FGraph.empty(), cname, st, true);
(cache, env, dae) := CevalScriptBackend.runFrontEnd(FCore.emptyCache(), FGraph.empty(), cname, st, true);
end instantiate;

protected function optimizeDae
Expand Down

0 comments on commit a5ea4c9

Please sign in to comment.