Skip to content

Commit

Permalink
fix for precompiled header for msvc cpp runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
niklwors committed Sep 14, 2015
1 parent 1a4a357 commit f8ebb31
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Compiler/Template/CodegenCpp.tpl
Expand Up @@ -5828,7 +5828,7 @@ case SIMCODE(modelInfo = MODELINFO(__),makefileParams = MAKEFILE_PARAMS(__)) th
void <%lastIdentOfPath(modelInfo.name)%>Initialize::initialize()
{
initializeMemory();
IPropertyReader *reader = new XmlPropertyReader("<%makefileParams.compileDir%>OMCpp/<%fileNamePrefix%>Init.xml");
IPropertyReader *reader = new XmlPropertyReader("<%makefileParams.compileDir%>/OMCpp<%fileNamePrefix%>Init.xml");
reader->readInitialValues(*this, _sim_vars);
initializeFreeVariables();
/*Start complex expressions */
Expand Down
@@ -1,9 +1,6 @@
#pragma once

#include <Core/Modelica.h>
#include <Core/ModelicaDefine.h>
#include <boost/shared_ptr.hpp>
#include <Core/System/ISimVars.h>


//#include "FactoryExport.h"
//#include <Core/Utils/extension/logger.hpp>
Expand Down
@@ -1,7 +1,7 @@
#pragma once

#include <Core/DataExchange/IPropertyReader.h>
#include <string>



class IContinuous;

Expand Down
7 changes: 3 additions & 4 deletions SimulationRuntime/cpp/Include/Core/Modelica.h
Expand Up @@ -6,7 +6,7 @@


#include <string>
//#include <vector>
#include <vector>
#include <algorithm>
#include <map>
#include <cmath>
Expand Down Expand Up @@ -95,6 +95,8 @@ typedef ublas::matrix<double, ublas::column_major,adaptor_t> shared_matrix_t;
//typedef boost::function<void (unordered_map<string,unsigned int>&,unordered_map<string,unsigned int>&)> init_prevars_type;
typedef uBlas::compressed_matrix<double, uBlas::column_major, 0, uBlas::unbounded_array<int>, uBlas::unbounded_array<double> > sparsematrix_t;
typedef ublas::matrix<double, ublas::column_major> matrix_t;
#include <Core/SimulationSettings/IGlobalSettings.h>
#include <Core/Solver/ISolverSettings.h>
#include <Core/SimulationSettings/ISettingsFactory.h>
#include <SimCoreFactory/Policies/FactoryConfig.h>
#include <Core/Utils/Modelica/ModelicaSimulationError.h>
Expand All @@ -112,10 +114,7 @@ typedef ublas::matrix<double, ublas::column_major> matrix_t;
#include <Core/Solver/ILinSolverSettings.h>
#include <Core/DataExchange/IHistory.h>
#include <Core/System/IMixedSystem.h>
#include <Core/SimulationSettings/IGlobalSettings.h>
#include <Core/System/IMixedSystem.h>
#include <Core/System/IAlgLoop.h>
#include <Core/Solver/ISolverSettings.h>
#include <Core/Solver/ISolver.h>
#include <Core/Solver/IAlgLoopSolver.h>
#include <Core/System/IAlgLoopSolverFactory.h>
Expand Down
Expand Up @@ -3,8 +3,6 @@
*
* @{
*/
#include <Core/SimulationSettings/IGlobalSettings.h>
#include <Core/Solver/ISolverSettings.h>

class ISettingsFactory
{
Expand Down
Expand Up @@ -79,7 +79,7 @@
#include <Core/Math/Array.h>
#include <Core/Solver/FactoryExport.h>
#include <Core/Solver/SolverSettings.h>
#include <Core/SimulationSettings/IGlobalSettings.h>

/*Base Policy include*/
#include <SimCoreFactory/Policies/SolverOMCFactory.h>
#include <SimCoreFactory/Policies/SolverSettingsOMCFactory.h>
Expand Down

0 comments on commit f8ebb31

Please sign in to comment.