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@17178 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
- Loading branch information
1 parent
9438ebb
commit 95f2681
Showing
2 changed files
with
55 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
|
||
#pragma once | ||
#include "stdafx.h" | ||
#if defined(__vxworks) | ||
|
||
|
||
#elif defined(SIMSTER_BUILD) | ||
|
||
#include "CVode.h" | ||
|
||
|
||
/*Simster factory*/ | ||
extern "C" void BOOST_EXTENSION_EXPORT_DECL extension_export_cvode(boost::extensions::factory_map & fm) | ||
{ | ||
fm.get<ISolver,int,IMixedSystem*, ISolverSettings*>()[1].set<Cvode>(); | ||
//fm.get<ISolverSettings,int, IGlobalSettings* >()[2].set<CVodeSettings>(); | ||
} | ||
|
||
#elif defined(OMC_BUILD) | ||
|
||
#include "CVode.h" | ||
#include "CVodeSettings.h" | ||
|
||
/* OMC factory */ | ||
using boost::extensions::factory; | ||
|
||
BOOST_EXTENSION_TYPE_MAP_FUNCTION { | ||
types.get<std::map<std::string, factory<ISolver,IMixedSystem*, ISolverSettings*> > >() | ||
["CVodeSolver"].set<Cvode>(); | ||
types.get<std::map<std::string, factory<ISolverSettings, IGlobalSettings* > > >() | ||
["CVodeSettings"].set<CVodeSettings>(); | ||
} | ||
|
||
#else | ||
error "operating system not supported" | ||
#endif | ||
|
||
|
||
|
||
|
||
#pragma once | ||
#include "stdafx.h" | ||
#if defined(__vxworks) | ||
|
||
|
||
#elif defined(SIMSTER_BUILD) | ||
|
||
#include "CVode.h" | ||
|
||
|
||
/*Simster factory*/ | ||
extern "C" void BOOST_EXTENSION_EXPORT_DECL extension_export_cvode(boost::extensions::factory_map & fm) | ||
{ | ||
fm.get<ISolver,int,IMixedSystem*, ISolverSettings*>()[1].set<Cvode>(); | ||
//fm.get<ISolverSettings,int, IGlobalSettings* >()[2].set<CVodeSettings>(); | ||
} | ||
|
||
#elif defined(OMC_BUILD) | ||
|
||
#include "CVode.h" | ||
#include "CVodeSettings.h" | ||
|
||
/* OMC factory */ | ||
using boost::extensions::factory; | ||
|
||
BOOST_EXTENSION_TYPE_MAP_FUNCTION { | ||
types.get<std::map<std::string, factory<ISolver,IMixedSystem*, ISolverSettings*> > >() | ||
["CVodeSolver"].set<Cvode>(); | ||
types.get<std::map<std::string, factory<ISolverSettings, IGlobalSettings* > > >() | ||
["CVodeSettings"].set<CVodeSettings>(); | ||
} | ||
|
||
#else | ||
error "operating system not supported" | ||
#endif | ||
|
||
|
||
|
||
|
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,16 +1,16 @@ | ||
#pragma once | ||
|
||
#if defined(__vxworks) | ||
|
||
#define BOOST_EXTENSION_SOLVER_DECL | ||
#define BOOST_EXTENSION_SOLVERSETTINGS_DECL | ||
#elif defined(OMC_BUILD) || defined(SIMSTER_BUILD) | ||
|
||
#define BOOST_EXTENSION_SOLVER_DECL BOOST_EXTENSION_IMPORT_DECL | ||
#define BOOST_EXTENSION_SOLVERSETTINGS_DECL BOOST_EXTENSION_IMPORT_DECL | ||
#else | ||
error "operating system not supported" | ||
#endif | ||
|
||
|
||
#pragma once | ||
|
||
#if defined(__vxworks) | ||
|
||
#define BOOST_EXTENSION_SOLVER_DECL | ||
#define BOOST_EXTENSION_SOLVERSETTINGS_DECL | ||
#elif defined(OMC_BUILD) || defined(SIMSTER_BUILD) | ||
|
||
#define BOOST_EXTENSION_SOLVER_DECL BOOST_EXTENSION_IMPORT_DECL | ||
#define BOOST_EXTENSION_SOLVERSETTINGS_DECL BOOST_EXTENSION_IMPORT_DECL | ||
#else | ||
error "operating system not supported" | ||
#endif | ||
|
||
|
||
|