Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Template for hpcom-cpp target added to the template-folder
- Changed EXIT(0) to return 0 in _main_simulation_runtime git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@18896 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Marcus Walther
committed
Jan 31, 2014
1 parent
8a17ec8
commit 04bbc9f
Showing
7 changed files
with
162 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// This file defines template-extensions for transforming Modelica code into parallel hpcom-code. | ||
// | ||
// There are one root template intended to be called from the code generator: | ||
// translateModel. These template do not return any | ||
// result but instead write the result to files. All other templates return | ||
// text and are used by the root templates (most of them indirectly). | ||
|
||
package CodegenCppHpcom | ||
|
||
import interface SimCodeTV; | ||
import CodegenUtil.*; | ||
import CodegenCpp.*; //unqualified import, no need the CodegenC is optional when calling a template; or mandatory when the same named template exists in this package (name hiding) | ||
|
||
template translateModel(SimCode simCode) ::= | ||
// empty result of the top-level template .., only side effects | ||
<< //bla | ||
>> | ||
end translateModel; | ||
|
||
template update( list<SimEqSystem> allEquationsPlusWhen,list<SimWhenClause> whenClauses,SimCode simCode, Context context) | ||
::= | ||
<< | ||
//test | ||
>> | ||
end update; | ||
|
||
end CodegenCppHpcom; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters