Removed cantera/kernel from include path
The "cantera/kernel" directory is now part of the include path only when building the Cantera kernel. All other modules include files in this directory as "kernel/header.h". This fixes a problem distinguishing between kernel/Kinetics.h and kinetics.h on Windows.
This commit is contained in:
parent
f7f1c4e434
commit
8b699082c8
38 changed files with 94 additions and 103 deletions
|
|
@ -10,8 +10,8 @@
|
|||
#define CT_CABINET_H
|
||||
|
||||
#include <vector>
|
||||
#include "stringUtils.h"
|
||||
#include "config.h"
|
||||
#include "kernel/stringUtils.h"
|
||||
#include "kernel/config.h"
|
||||
|
||||
/**
|
||||
* Template for classes to hold pointers to objects. The Cabinet<M>
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
|
||||
// Cantera includes
|
||||
#include "Kinetics.h"
|
||||
#include "TransportFactory.h"
|
||||
#include "kernel/Kinetics.h"
|
||||
#include "kernel/TransportFactory.h"
|
||||
|
||||
#include "Storage.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@
|
|||
#define CTC_STORAGE_H
|
||||
|
||||
// Cantera includes
|
||||
#include "Kinetics.h"
|
||||
#include "TransportBase.h"
|
||||
#include "kernel/Kinetics.h"
|
||||
#include "kernel/TransportBase.h"
|
||||
|
||||
#include "Cabinet.h"
|
||||
#include "clib_defs.h"
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
#ifndef CTC_DEFS_H
|
||||
#define CTC_DEFS_H
|
||||
|
||||
#include "ct_defs.h"
|
||||
#include "kernel/ct_defs.h"
|
||||
|
||||
#ifdef WIN32
|
||||
// Either build as a DLL under Windows or not.
|
||||
|
|
|
|||
|
|
@ -20,17 +20,17 @@
|
|||
#include "ct.h"
|
||||
|
||||
// Cantera includes
|
||||
#include "equil.h"
|
||||
#include "KineticsFactory.h"
|
||||
#include "TransportFactory.h"
|
||||
#include "ctml.h"
|
||||
#include "importKinetics.h"
|
||||
#include "ThermoFactory.h"
|
||||
#include "ck2ct.h"
|
||||
#include "kernel/equil.h"
|
||||
#include "kernel/KineticsFactory.h"
|
||||
#include "kernel/TransportFactory.h"
|
||||
#include "kernel/ctml.h"
|
||||
#include "kernel/importKinetics.h"
|
||||
#include "kernel/ThermoFactory.h"
|
||||
#include "kernel/ck2ct.h"
|
||||
#include "Storage.h"
|
||||
#include "Cabinet.h"
|
||||
#include "InterfaceKinetics.h"
|
||||
#include "PureFluidPhase.h"
|
||||
#include "kernel/InterfaceKinetics.h"
|
||||
#include "kernel/PureFluidPhase.h"
|
||||
|
||||
|
||||
using namespace std;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include "clib_defs.h"
|
||||
|
||||
#ifdef CANTERA_USE_INTERNAL
|
||||
#include "config.h"
|
||||
#include "kernel/config.h"
|
||||
#else
|
||||
#include "cantera/kernel/config.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@
|
|||
|
||||
|
||||
// Cantera includes
|
||||
#include "OneDim.h"
|
||||
#include "Inlet1D.h"
|
||||
#include "InterfaceKinetics.h"
|
||||
#include "kernel/OneDim.h"
|
||||
#include "kernel/Inlet1D.h"
|
||||
#include "kernel/InterfaceKinetics.h"
|
||||
#include "Cabinet.h"
|
||||
#include "Storage.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
#define CANTERA_USE_INTERNAL
|
||||
#include "ctfunc.h"
|
||||
|
||||
#include "Func1.h"
|
||||
#include "ctexceptions.h"
|
||||
#include "kernel/Func1.h"
|
||||
#include "kernel/ctexceptions.h"
|
||||
|
||||
using namespace Cantera;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@
|
|||
#include "ctmultiphase.h"
|
||||
|
||||
// Cantera includes
|
||||
#include "equil.h"
|
||||
#include "MultiPhase.h"
|
||||
#include "MultiPhaseEquil.h"
|
||||
#include "vcs_MultiPhaseEquil.h"
|
||||
#include "kernel/equil.h"
|
||||
#include "kernel/MultiPhase.h"
|
||||
#include "kernel/MultiPhaseEquil.h"
|
||||
#include "kernel/vcs_MultiPhaseEquil.h"
|
||||
|
||||
#include "Cabinet.h"
|
||||
#include "Storage.h"
|
||||
|
|
|
|||
|
|
@ -15,15 +15,12 @@
|
|||
#define CANTERA_USE_INTERNAL
|
||||
#include "ctonedim.h"
|
||||
|
||||
|
||||
// Cantera includes
|
||||
#include "config.h"
|
||||
#include "Sim1D.h"
|
||||
#include "StFlow.h"
|
||||
#include "Inlet1D.h"
|
||||
#include "DenseMatrix.h"
|
||||
|
||||
|
||||
#include "kernel/config.h"
|
||||
#include "kernel/Sim1D.h"
|
||||
#include "kernel/StFlow.h"
|
||||
#include "kernel/Inlet1D.h"
|
||||
#include "kernel/DenseMatrix.h"
|
||||
|
||||
// local includes
|
||||
#include "Cabinet.h"
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include "clib_defs.h"
|
||||
|
||||
#ifdef CANTERA_USE_INTERNAL
|
||||
#include "config.h"
|
||||
#include "kernel/config.h"
|
||||
#else
|
||||
#include "cantera/kernel/config.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -15,13 +15,13 @@
|
|||
#include "ctreactor.h"
|
||||
|
||||
// Cantera includes
|
||||
#include "Reactor.h"
|
||||
#include "FlowReactor.h"
|
||||
#include "ConstPressureReactor.h"
|
||||
#include "ReactorNet.h"
|
||||
#include "Reservoir.h"
|
||||
#include "Wall.h"
|
||||
#include "flowControllers.h"
|
||||
#include "kernel/Reactor.h"
|
||||
#include "kernel/FlowReactor.h"
|
||||
#include "kernel/ConstPressureReactor.h"
|
||||
#include "kernel/ReactorNet.h"
|
||||
#include "kernel/Reservoir.h"
|
||||
#include "kernel/Wall.h"
|
||||
#include "kernel/flowControllers.h"
|
||||
|
||||
#include "Cabinet.h"
|
||||
#include "Storage.h"
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
|
||||
// Cantera includes
|
||||
|
||||
#include "ReactionPath.h"
|
||||
#include "kernel/ReactionPath.h"
|
||||
#include "Cabinet.h"
|
||||
#include "Storage.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -15,11 +15,10 @@
|
|||
#define CANTERA_USE_INTERNAL
|
||||
#include "ctsurf.h"
|
||||
|
||||
|
||||
// Cantera includes
|
||||
#include "SurfPhase.h"
|
||||
#include "InterfaceKinetics.h"
|
||||
#include "ImplicitSurfChem.h"
|
||||
#include "kernel/SurfPhase.h"
|
||||
#include "kernel/InterfaceKinetics.h"
|
||||
#include "kernel/ImplicitSurfChem.h"
|
||||
|
||||
#include "Cabinet.h"
|
||||
#include "Storage.h"
|
||||
|
|
@ -27,8 +26,6 @@
|
|||
using namespace std;
|
||||
using namespace Cantera;
|
||||
|
||||
|
||||
|
||||
//Cabinet<Surf1D>* Cabinet<Surf1D>::__storage = 0;
|
||||
|
||||
//inline Surf1D* _surface(int i) {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@
|
|||
#include "clib_defs.h"
|
||||
|
||||
#ifdef CANTERA_USE_INTERNAL
|
||||
#include "config.h"
|
||||
#include "kernel/config.h"
|
||||
#else
|
||||
#include "cantera/kernel/config.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -14,9 +14,8 @@
|
|||
#define CANTERA_USE_INTERNAL
|
||||
#include "ctxml.h"
|
||||
|
||||
|
||||
// Cantera includes
|
||||
#include "ctml.h"
|
||||
#include "kernel/ctml.h"
|
||||
#include "Cabinet.h"
|
||||
#include "Storage.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include "clib_defs.h"
|
||||
|
||||
#ifdef CANTERA_USE_INTERNAL
|
||||
#include "config.h"
|
||||
#include "kernel/config.h"
|
||||
#else
|
||||
#include "cantera/kernel/config.h"
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
#pragma warning(disable:4503)
|
||||
#endif
|
||||
|
||||
#include "ThermoPhase.h"
|
||||
#include "kernel/ThermoPhase.h"
|
||||
#include <stdio.h>
|
||||
|
||||
using namespace std;
|
||||
|
|
|
|||
|
|
@ -4,9 +4,8 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include "ThermoPhase.h"
|
||||
#include "ThermoFactory.h"
|
||||
//#include "../include/importPhase.h"
|
||||
#include "kernel/ThermoPhase.h"
|
||||
#include "kernel/ThermoFactory.h"
|
||||
|
||||
namespace Cantera {}
|
||||
|
||||
|
|
|
|||
|
|
@ -17,16 +17,16 @@
|
|||
#endif
|
||||
|
||||
// Cantera includes
|
||||
#include "equil.h"
|
||||
#include "KineticsFactory.h"
|
||||
#include "TransportFactory.h"
|
||||
#include "ThermoFactory.h"
|
||||
#include "ctml.h"
|
||||
#include "importKinetics.h"
|
||||
#include "kernel/equil.h"
|
||||
#include "kernel/KineticsFactory.h"
|
||||
#include "kernel/TransportFactory.h"
|
||||
#include "kernel/ThermoFactory.h"
|
||||
#include "kernel/ctml.h"
|
||||
#include "kernel/importKinetics.h"
|
||||
#include "clib/Storage.h"
|
||||
#include "clib/Cabinet.h"
|
||||
#include "InterfaceKinetics.h"
|
||||
#include "PureFluidPhase.h"
|
||||
#include "kernel/InterfaceKinetics.h"
|
||||
#include "kernel/PureFluidPhase.h"
|
||||
|
||||
#include "flib_defs.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
#include "flib_defs.h"
|
||||
|
||||
#include "ctml.h"
|
||||
#include "kernel/ctml.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
#define ERR -999
|
||||
#define DERR -999.999
|
||||
|
||||
#include "config.h"
|
||||
#include "kernel/config.h"
|
||||
|
||||
typedef integer status_t;
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ libs = [('base', 'ctbase', ['cpp'], baseSetup),
|
|||
|
||||
for subdir, libname, extensions, setup in libs:
|
||||
localenv = env.Clone()
|
||||
localenv.Append(CPPPATH=Dir('../include/cantera/kernel'))
|
||||
source = setup(localenv, subdir, extensions)
|
||||
for header in mglob(localenv, subdir, 'h'):
|
||||
h = localenv.Command('../include/cantera/kernel/%s' % header.name, header,
|
||||
|
|
|
|||
|
|
@ -788,8 +788,7 @@ demoTargets = []
|
|||
|
||||
env.SConsignFile()
|
||||
|
||||
env.Append(CPPPATH=[Dir('build/include/cantera/kernel'),
|
||||
Dir('build/include/cantera'),
|
||||
env.Append(CPPPATH=[Dir('build/include/cantera'),
|
||||
Dir('build/include')],
|
||||
LIBPATH=[Dir('build/lib')],
|
||||
CCFLAGS=[defaults.fPIC],
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
#include "kernel/logger.h"
|
||||
#include "thermo.h"
|
||||
#include "TemperatureTable.h"
|
||||
#include "HMWSoln.h"
|
||||
#include "kernel/HMWSoln.h"
|
||||
#endif
|
||||
|
||||
#include <cstdio>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
#include "kernel/logger.h"
|
||||
#include "thermo.h"
|
||||
#include "TemperatureTable.h"
|
||||
#include "HMWSoln.h"
|
||||
#include "kernel/HMWSoln.h"
|
||||
#endif
|
||||
|
||||
#include <cstdio>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
#include "Cantera.h"
|
||||
|
||||
#include "kernel/logger.h"
|
||||
#include "HMWSoln.h"
|
||||
#include "kernel/HMWSoln.h"
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,8 @@
|
|||
#include "HMWSoln.h"
|
||||
#include "importCTML.h"
|
||||
#else
|
||||
#include "ThermoPhase.h"
|
||||
|
||||
#include "Cantera.h"
|
||||
#include "kernel/ThermoPhase.h"
|
||||
#include "kernel/logger.h"
|
||||
#include "thermo.h"
|
||||
#include "kernel/HMWSoln.h"
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
#include "kernel/logger.h"
|
||||
#include "thermo.h"
|
||||
#include "TemperatureTable.h"
|
||||
#include "HMWSoln.h"
|
||||
#include "kernel/HMWSoln.h"
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#include "HMWSoln.h"
|
||||
#else
|
||||
#include "Cantera.h"
|
||||
#include "HMWSoln.h"
|
||||
#include "kernel/HMWSoln.h"
|
||||
#endif
|
||||
|
||||
#include <cstdio>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
* $Id: testIAPWSphi.cpp,v 1.2 2008/12/17 17:31:13 hkmoffa Exp $
|
||||
*/
|
||||
#include "WaterPropsIAPWSphi.h"
|
||||
#include "kernel/WaterPropsIAPWSphi.h"
|
||||
#include <new>
|
||||
|
||||
#include <cstdio>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
#include "WaterPropsIAPWS.h"
|
||||
#include "kernel/WaterPropsIAPWS.h"
|
||||
#include <new>
|
||||
|
||||
#include <cstdio>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
#include "WaterPropsIAPWS.h"
|
||||
#include "kernel/WaterPropsIAPWS.h"
|
||||
#include <new>
|
||||
|
||||
#include <cstdio>
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
/*
|
||||
* $Id: testWaterPDSS.cpp,v 1.6 2008/12/17 17:31:13 hkmoffa Exp $
|
||||
*/
|
||||
#include "ct_defs.h"
|
||||
#include "ctexceptions.h"
|
||||
#include "global.h"
|
||||
#include "xml.h"
|
||||
#include "ctml.h"
|
||||
#include "PDSS_Water.h"
|
||||
#include "ThermoPhase.h"
|
||||
#include "VPStandardStateTP.h"
|
||||
#include "kernel/ct_defs.h"
|
||||
#include "kernel/ctexceptions.h"
|
||||
#include "kernel/global.h"
|
||||
#include "kernel/xml.h"
|
||||
#include "kernel/ctml.h"
|
||||
#include "kernel/PDSS_Water.h"
|
||||
#include "kernel/ThermoPhase.h"
|
||||
#include "kernel/VPStandardStateTP.h"
|
||||
#include <new>
|
||||
|
||||
#include <cstdio>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#include "Cantera.h"
|
||||
#include "thermo.h"
|
||||
#include "WaterSSTP.h"
|
||||
#include "kernel/WaterSSTP.h"
|
||||
|
||||
#include <cstdio>
|
||||
#include <cmath>
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
/*
|
||||
* $Id: testWaterPDSS.cpp,v 1.6 2008/12/17 17:31:13 hkmoffa Exp $
|
||||
*/
|
||||
#include "ct_defs.h"
|
||||
#include "ctexceptions.h"
|
||||
#include "global.h"
|
||||
#include "xml.h"
|
||||
#include "ctml.h"
|
||||
#include "ThermoPhase.h"
|
||||
#include "VPStandardStateTP.h"
|
||||
#include "kernel/ct_defs.h"
|
||||
#include "kernel/ctexceptions.h"
|
||||
#include "kernel/global.h"
|
||||
#include "kernel/xml.h"
|
||||
#include "kernel/ctml.h"
|
||||
#include "kernel/ThermoPhase.h"
|
||||
#include "kernel/VPStandardStateTP.h"
|
||||
|
||||
#include "WaterSSTP.h"
|
||||
#include "WaterTransport.h"
|
||||
#include "kernel/WaterSSTP.h"
|
||||
#include "kernel/WaterTransport.h"
|
||||
#include <new>
|
||||
|
||||
#include <cstdio>
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@
|
|||
#include <string>
|
||||
using namespace std;
|
||||
|
||||
#include "ct_defs.h"
|
||||
#include "global.h"
|
||||
#include "ck2ct.h"
|
||||
#include "kernel/ct_defs.h"
|
||||
#include "kernel/global.h"
|
||||
#include "kernel/ck2ct.h"
|
||||
|
||||
using namespace Cantera;
|
||||
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "ct_defs.h"
|
||||
#include "xml.h"
|
||||
#include "ctml.h"
|
||||
#include "kernel/ct_defs.h"
|
||||
#include "kernel/xml.h"
|
||||
#include "kernel/ctml.h"
|
||||
|
||||
using namespace Cantera;
|
||||
using namespace std;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue