Skip to content

Commit

Permalink
-added information what tearing is used for to tearingdump (e.g. simu…
Browse files Browse the repository at this point in the history
…lation, initialization,...)

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19915 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
ptaeuber committed Apr 1, 2014
1 parent b62f02c commit 70d62e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Compiler/BackEnd/BackendDump.mo
Expand Up @@ -289,7 +289,7 @@ algorithm
dumpConstraintList(constraints, "Constraints");
end printShared;

protected function printBackendDAEType "This is a helper for printShared."
public function printBackendDAEType "This is a helper for printShared."
input BackendDAE.BackendDAEType btp;
algorithm
_ := match(btp)
Expand Down
7 changes: 6 additions & 1 deletion Compiler/BackEnd/Tearing.mo
Expand Up @@ -87,6 +87,8 @@ algorithm
local
String methodString;
TearingMethod method;
BackendDAE.BackendDAEType DAEtype;
BackendDAE.Shared shared;

// if noTearing is selected, do nothing.
case(_) equation
Expand All @@ -99,7 +101,10 @@ algorithm
//Debug.fcall2(Flags.TEARING_DUMPVERBOSE, BackendDump.dumpBackendDAE, inDAE, "DAE");
methodString = Config.getTearingMethod();
method = getTearingMethod(methodString);
(outDAE, _) = BackendDAEUtil.mapEqSystemAndFold(inDAE, tearingSystemWork, method);
BackendDAE.DAE(_,shared) = inDAE;
BackendDAE.SHARED(_,_,_,_,_,_,_,_,_,_,_,_,DAEtype,_,_) = shared;
Debug.fcall(Flags.TEARING_DUMP, print, "\n\n\n\n=======================================================================================================\nCalling Tearing for ");Debug.fcall(Flags.TEARING_DUMP, BackendDump.printBackendDAEType,DAEtype);Debug.fcall(Flags.TEARING_DUMP, print, "!\n=======================================================================================================\n");
(outDAE, _) = BackendDAEUtil.mapEqSystemAndFold(inDAE, tearingSystemWork, method);
then outDAE;

else equation
Expand Down

0 comments on commit 70d62e5

Please sign in to comment.