Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix FMI on windows (both import/export) due to main C file split (a…
…lso DllExport was only for MSVC and not for gcc in SimulationRuntime/fmi/export/fmiModelFunctions.h) - fix +target=msvc due to main C file split (fix makefile, forward equation functions, use extern "C") - propagate fileNamePrefix in the backend as part of the BackedDAE.SHARED - split all the duplicate partial function declarations for function pointers into a new file Compiler/BackEnd/BackendDAEFunc.mo git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@17700 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
Showing
30 changed files
with
627 additions
and
394 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
/* | ||
* This file is part of OpenModelica. | ||
* | ||
* Copyright (c) 1998-CurrentYear, Linköping University, | ||
* Department of Computer and Information Science, | ||
* SE-58183 Linköping, Sweden. | ||
* | ||
* All rights reserved. | ||
* | ||
* THIS PROGRAM IS PROVIDED UNDER THE TERMS OF GPL VERSION 3 | ||
* AND THIS OSMC PUBLIC LICENSE (OSMC-PL). | ||
* ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS PROGRAM CONSTITUTES RECIPIENT'S | ||
* ACCEPTANCE OF THE OSMC PUBLIC LICENSE. | ||
* | ||
* The OpenModelica software and the Open Source Modelica | ||
* Consortium (OSMC) Public License (OSMC-PL) are obtained | ||
* from Linköping University, either from the above address, | ||
* from the URLs: http://www.ida.liu.se/projects/OpenModelica or | ||
* http://www.openmodelica.org, and in the OpenModelica distribution. | ||
* GNU version 3 is obtained from: http://www.gnu.org/copyleft/gpl.html. | ||
* | ||
* This program is distributed WITHOUT ANY WARRANTY; without | ||
* even the implied warranty of MERCHANTABILITY or FITNESS | ||
* FOR A PARTICULAR PURPOSE, EXCEPT AS EXPRESSLY SET FORTH | ||
* IN THE BY RECIPIENT SELECTED SUBSIDIARY LICENSE CONDITIONS | ||
* OF OSMC-PL. | ||
* | ||
* See the full OSMC Public License conditions for more details. | ||
* | ||
*/ | ||
|
||
encapsulated package BackendDAEFunc | ||
" file: BackendDAEFunc.mo | ||
package: BackendDAEFunc | ||
description: BackendDAEFunc defines the partial functions (interfaces) to function pointers that are sent around. | ||
|
||
RCS: $Id: BackendDAEFunc.mo 17568 2013-10-07 01:59:38Z adrpo $ | ||
" | ||
|
||
public import BackendDAE; | ||
|
||
/*************************************/ | ||
/* Interfaces */ | ||
/*************************************/ | ||
|
||
public | ||
partial function preOptimizationDAEModule " | ||
This is the interface for pre-optimization modules." | ||
input BackendDAE.BackendDAE inDAE; | ||
output BackendDAE.BackendDAE outDAE; | ||
end preOptimizationDAEModule; | ||
|
||
partial function postOptimizationDAEModule " | ||
This is the interface for post-optimization modules." | ||
input BackendDAE.BackendDAE inDAE; | ||
output BackendDAE.BackendDAE outDAE; | ||
end postOptimizationDAEModule; | ||
|
||
partial function stateDeselectionFunc | ||
input BackendDAE.BackendDAE inDAE; | ||
input list<Option<BackendDAE.StructurallySingularSystemHandlerArg>> inArgs; | ||
output BackendDAE.BackendDAE outDAE; | ||
end stateDeselectionFunc; | ||
|
||
partial function StructurallySingularSystemHandlerFunc | ||
input list<list<Integer>> eqns; | ||
input Integer actualEqn; | ||
input BackendDAE.EqSystem isyst; | ||
input BackendDAE.Shared ishared; | ||
input array<Integer> inAssignments1; | ||
input array<Integer> inAssignments2; | ||
input BackendDAE.StructurallySingularSystemHandlerArg inArg; | ||
output list<Integer> changedEqns; | ||
output Integer continueEqn; | ||
output BackendDAE.EqSystem osyst; | ||
output BackendDAE.Shared oshared; | ||
output array<Integer> outAssignments1; | ||
output array<Integer> outAssignments2; | ||
output BackendDAE.StructurallySingularSystemHandlerArg outArg; | ||
end StructurallySingularSystemHandlerFunc; | ||
|
||
partial function matchingAlgorithmFunc | ||
input BackendDAE.EqSystem isyst; | ||
input BackendDAE.Shared ishared; | ||
input Boolean clearMatching; | ||
input BackendDAE.MatchingOptions inMatchingOptions; | ||
input StructurallySingularSystemHandlerFunc sssHandler; | ||
input BackendDAE.StructurallySingularSystemHandlerArg inArg; | ||
output BackendDAE.EqSystem osyst; | ||
output BackendDAE.Shared oshared; | ||
output BackendDAE.StructurallySingularSystemHandlerArg outArg; | ||
end matchingAlgorithmFunc; | ||
|
||
end BackendDAEFunc; |
Oops, something went wrong.