Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@20285 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
1 parent
5c93afc
commit 090bdf6
Showing
9 changed files
with
3,304 additions
and
3,304 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,43 +1,43 @@ | ||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8) | ||
|
||
PROJECT(AutoParModelica) | ||
|
||
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}") | ||
|
||
if( CMAKE_SIZEOF_VOID_P EQUAL 8 ) | ||
SET(TBB_ARCHITECTURE intel64) | ||
elseif( CMAKE_SIZEOF_VOID_P EQUAL 4 ) | ||
SET(TBB_ARCHITECTURE ia32) | ||
else() | ||
MESSAGE(FATAL "Unknown Compiler Architecture") | ||
endif() | ||
|
||
FIND_PACKAGE(TBB REQUIRED) | ||
FIND_PACKAGE(PugiXML REQUIRED) | ||
|
||
SET(PARMODELICA_SRC om_pm_equation.cpp | ||
om_pm_interface.cpp | ||
om_pm_model.cpp | ||
pm_utility.cpp) | ||
|
||
SET(PARMODELICA_TEST_SRC test_task_graph.cpp) | ||
|
||
IF(UNIX) | ||
SET(PARMODELICA_SRC ${PARMODELICA_SRC} pm_posix_timer.cpp) | ||
ELSE(UNIX) | ||
SET(PARMODELICA_SRC ${PARMODELICA_SRC} pm_win_timer.cpp) | ||
ENDIF(UNIX) | ||
|
||
IF(MSVC) | ||
ADD_DEFINITIONS("/DNOMINMAX") | ||
ENDIF() | ||
|
||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) | ||
INCLUDE_DIRECTORIES(${TBB_INCLUDE_DIR}) | ||
INCLUDE_DIRECTORIES(${PUGIXML_INCLUDE_DIR}) | ||
|
||
ADD_LIBRARY(ParModelica ${PARMODELICA_SRC}) | ||
|
||
ADD_EXECUTABLE(ParModelicaTest ${PARMODELICA_TEST_SRC}) | ||
|
||
TARGET_LINK_LIBRARIES(ParModelicaTest ParModelica ${TBB_LIBRARY} ${PUGIXML_LIBRARY}) | ||
CMAKE_MINIMUM_REQUIRED(VERSION 2.8) | ||
|
||
PROJECT(AutoParModelica) | ||
|
||
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}") | ||
|
||
if( CMAKE_SIZEOF_VOID_P EQUAL 8 ) | ||
SET(TBB_ARCHITECTURE intel64) | ||
elseif( CMAKE_SIZEOF_VOID_P EQUAL 4 ) | ||
SET(TBB_ARCHITECTURE ia32) | ||
else() | ||
MESSAGE(FATAL "Unknown Compiler Architecture") | ||
endif() | ||
|
||
FIND_PACKAGE(TBB REQUIRED) | ||
FIND_PACKAGE(PugiXML REQUIRED) | ||
|
||
SET(PARMODELICA_SRC om_pm_equation.cpp | ||
om_pm_interface.cpp | ||
om_pm_model.cpp | ||
pm_utility.cpp) | ||
|
||
SET(PARMODELICA_TEST_SRC test_task_graph.cpp) | ||
|
||
IF(UNIX) | ||
SET(PARMODELICA_SRC ${PARMODELICA_SRC} pm_posix_timer.cpp) | ||
ELSE(UNIX) | ||
SET(PARMODELICA_SRC ${PARMODELICA_SRC} pm_win_timer.cpp) | ||
ENDIF(UNIX) | ||
|
||
IF(MSVC) | ||
ADD_DEFINITIONS("/DNOMINMAX") | ||
ENDIF() | ||
|
||
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) | ||
INCLUDE_DIRECTORIES(${TBB_INCLUDE_DIR}) | ||
INCLUDE_DIRECTORIES(${PUGIXML_INCLUDE_DIR}) | ||
|
||
ADD_LIBRARY(ParModelica ${PARMODELICA_SRC}) | ||
|
||
ADD_EXECUTABLE(ParModelicaTest ${PARMODELICA_TEST_SRC}) | ||
|
||
TARGET_LINK_LIBRARIES(ParModelicaTest ParModelica ${TBB_LIBRARY} ${PUGIXML_LIBRARY}) |
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 |
---|---|---|
@@ -1,55 +1,55 @@ | ||
/* | ||
* 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. | ||
* | ||
*/ | ||
|
||
|
||
/* | ||
Mahder.Gebremedhin@liu.se 2014-02-10 | ||
*/ | ||
|
||
|
||
|
||
|
||
#include <iterator> | ||
#include <sstream> | ||
|
||
#include "om_pm_equation.hpp" | ||
#include "pm_utility.hpp" | ||
|
||
|
||
namespace openmodelica { | ||
namespace parmodelica { | ||
|
||
|
||
|
||
} // openmodelica | ||
} // parmodelica | ||
|
||
|
||
/* | ||
* 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. | ||
* | ||
*/ | ||
|
||
|
||
/* | ||
Mahder.Gebremedhin@liu.se 2014-02-10 | ||
*/ | ||
|
||
|
||
|
||
|
||
#include <iterator> | ||
#include <sstream> | ||
|
||
#include "om_pm_equation.hpp" | ||
#include "pm_utility.hpp" | ||
|
||
|
||
namespace openmodelica { | ||
namespace parmodelica { | ||
|
||
|
||
|
||
} // openmodelica | ||
} // parmodelica | ||
|
||
|
Oops, something went wrong.