Removed includes of Cantera.h from the regression tests

This commit is contained in:
Ray Speth 2012-02-15 01:00:46 +00:00
parent a942657698
commit 0b8d2ec223
51 changed files with 38 additions and 152 deletions

View file

@ -1,10 +1,8 @@
/** /**
* @file Species.h * @file Species.h
*
*/ */
// Copyright 2001 California Institute of Technology // Copyright 2001 California Institute of Technology
#ifndef CKR_SPECIES_H #ifndef CKR_SPECIES_H
#define CKR_SPECIES_H #define CKR_SPECIES_H
@ -13,9 +11,6 @@
#include <map> #include <map>
#include <vector> #include <vector>
//#include "cantera/Cantera.h"
namespace ckr namespace ckr
{ {

View file

@ -11,8 +11,6 @@
#include <iostream> #include <iostream>
using namespace std; using namespace std;
//#include "cantera/Cantera.h"
namespace ckr namespace ckr
{ {

View file

@ -2,7 +2,6 @@
* Copyright 2002 California Institute of Technology * Copyright 2002 California Institute of Technology
*/ */
#include "cantera/Cantera.h"
#include "cantera/IdealGasMix.h" #include "cantera/IdealGasMix.h"
#include "cantera/equilibrium.h" #include "cantera/equilibrium.h"

View file

@ -2,7 +2,6 @@
* Copyright 2002 California Institute of Technology * Copyright 2002 California Institute of Technology
*/ */
#include "cantera/Cantera.h"
#include "cantera/IdealGasMix.h" #include "cantera/IdealGasMix.h"
#include "cantera/equilibrium.h" #include "cantera/equilibrium.h"

View file

@ -1,4 +1,3 @@
#include "cantera/Cantera.h"
#include "cantera/IdealGasMix.h" #include "cantera/IdealGasMix.h"
#include "cantera/equilibrium.h" #include "cantera/equilibrium.h"

View file

@ -1,4 +1,3 @@
#include "cantera/Cantera.h"
#include "cantera/IdealGasMix.h" #include "cantera/IdealGasMix.h"
#include "cantera/equilibrium.h" #include "cantera/equilibrium.h"

View file

@ -2,7 +2,6 @@
* Copyright 2002 California Institute of Technology * Copyright 2002 California Institute of Technology
*/ */
#include "cantera/Cantera.h"
#include "cantera/IdealGasMix.h" #include "cantera/IdealGasMix.h"
#include "cantera/equilibrium.h" #include "cantera/equilibrium.h"

View file

@ -3,9 +3,6 @@
* test problem for NASA 9 coefficient formulation * test problem for NASA 9 coefficient formulation
*/ */
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <vector> #include <vector>
@ -20,10 +17,8 @@ using namespace std;
/*****************************************************************/ /*****************************************************************/
/*****************************************************************/ /*****************************************************************/
#include "cantera/Cantera.h"
#include "cantera/transport.h" #include "cantera/transport.h"
#include "cantera/IdealGasMix.h" #include "cantera/IdealGasMix.h"
#include "cantera/transport/TransportFactory.h" #include "cantera/transport/TransportFactory.h"
using namespace Cantera; using namespace Cantera;

View file

@ -2,7 +2,6 @@
* Copyright 2002 California Institute of Technology * Copyright 2002 California Institute of Technology
*/ */
#include "cantera/Cantera.h"
#include "cantera/equilibrium.h" #include "cantera/equilibrium.h"
#include "cantera/equil/vcs_MultiPhaseEquil.h" #include "cantera/equil/vcs_MultiPhaseEquil.h"
#include "equil/vcs_internal.h" #include "equil/vcs_internal.h"

View file

@ -2,7 +2,6 @@
* Copyright 2002 California Institute of Technology * Copyright 2002 California Institute of Technology
*/ */
#include "cantera/Cantera.h"
#include "cantera/IdealGasMix.h" #include "cantera/IdealGasMix.h"
#include "cantera/equilibrium.h" #include "cantera/equilibrium.h"
#include "cantera/thermo/IdealSolnGasVPSS.h" #include "cantera/thermo/IdealSolnGasVPSS.h"

View file

@ -1,8 +1,7 @@
/** /**
*
* @file DH_graph_1 * @file DH_graph_1
*/ */
#include "cantera/Cantera.h"
#include "cantera/base/logger.h" #include "cantera/base/logger.h"
#include "cantera/thermo/DebyeHuckel.h" #include "cantera/thermo/DebyeHuckel.h"

View file

@ -1,8 +1,7 @@
/** /**
*
* @file DH_graph_1 * @file DH_graph_1
*/ */
#include "cantera/Cantera.h"
#include "cantera/base/logger.h" #include "cantera/base/logger.h"
#include "cantera/thermo/DebyeHuckel.h" #include "cantera/thermo/DebyeHuckel.h"

View file

@ -1,8 +1,7 @@
/** /**
*
* @file DH_graph_1 * @file DH_graph_1
*/ */
#include "cantera/Cantera.h"
#include "cantera/base/logger.h" #include "cantera/base/logger.h"
#include "cantera/thermo/DebyeHuckel.h" #include "cantera/thermo/DebyeHuckel.h"

View file

@ -1,8 +1,7 @@
/** /**
*
* @file DH_graph_1 * @file DH_graph_1
*/ */
#include "cantera/Cantera.h"
#include "cantera/base/logger.h" #include "cantera/base/logger.h"
#include "cantera/thermo/DebyeHuckel.h" #include "cantera/thermo/DebyeHuckel.h"

View file

@ -1,8 +1,7 @@
/** /**
*
* @file DH_graph_1 * @file DH_graph_1
*/ */
#include "cantera/Cantera.h"
#include "cantera/base/logger.h" #include "cantera/base/logger.h"
#include "cantera/thermo/DebyeHuckel.h" #include "cantera/thermo/DebyeHuckel.h"

View file

@ -2,7 +2,7 @@
* *
* @file HMW_graph_1.cpp * @file HMW_graph_1.cpp
*/ */
#include "cantera/Cantera.h"
#include "cantera/base/logger.h" #include "cantera/base/logger.h"
#include "cantera/thermo.h" #include "cantera/thermo.h"
#include "TemperatureTable.h" #include "TemperatureTable.h"

View file

@ -1,8 +1,7 @@
/** /**
*
* @file HMW_graph_1.cpp * @file HMW_graph_1.cpp
*/ */
#include "cantera/Cantera.h"
#include "cantera/base/logger.h" #include "cantera/base/logger.h"
#include "cantera/thermo.h" #include "cantera/thermo.h"
#include "TemperatureTable.h" #include "TemperatureTable.h"

View file

@ -1,8 +1,6 @@
/** /**
*
* @file HMW_graph_1.cpp * @file HMW_graph_1.cpp
*/ */
#include "cantera/Cantera.h"
#include "cantera/base/logger.h" #include "cantera/base/logger.h"
#include "cantera/thermo/HMWSoln.h" #include "cantera/thermo/HMWSoln.h"

View file

@ -2,7 +2,7 @@
* *
* @file HMW_graph_1.cpp * @file HMW_graph_1.cpp
*/ */
#include "cantera/Cantera.h"
#include "cantera/thermo/ThermoPhase.h" #include "cantera/thermo/ThermoPhase.h"
#include "cantera/base/logger.h" #include "cantera/base/logger.h"
#include "cantera/thermo.h" #include "cantera/thermo.h"

View file

@ -1,10 +1,11 @@
/** /**
*
* @file HMW_graph_1.cpp * @file HMW_graph_1.cpp
*/ */
#include "cantera/Cantera.h"
#include "cantera/thermo.h" #include "cantera/thermo.h"
#include "cantera/thermo/HMWSoln.h" #include "cantera/thermo/HMWSoln.h"
#include "cantera/base/logger.h"
#include "TemperatureTable.h" #include "TemperatureTable.h"
#include <cstdio> #include <cstdio>

View file

@ -2,7 +2,6 @@
* @file HMW_graph_VvT * @file HMW_graph_VvT
*/ */
#include "cantera/Cantera.h"
#include "cantera/base/logger.h" #include "cantera/base/logger.h"
#include "cantera/thermo.h" #include "cantera/thermo.h"
#include "TemperatureTable.h" #include "TemperatureTable.h"

View file

@ -1,4 +1,3 @@
#include "cantera/Cantera.h"
#include "cantera/thermo/HMWSoln.h" #include "cantera/thermo/HMWSoln.h"
#include <cstdio> #include <cstdio>

View file

@ -1,4 +1,3 @@
#include "cantera/Cantera.h"
#include "cantera/thermo/HMWSoln.h" #include "cantera/thermo/HMWSoln.h"
#include <cstdio> #include <cstdio>

View file

@ -15,15 +15,12 @@
// working correctly // working correctly
// //
#include <iostream>
#include <string>
#include <vector>
#include "cantera/Cantera.h"
#include "cantera/thermo/IdealSolidSolnPhase.h" #include "cantera/thermo/IdealSolidSolnPhase.h"
#include "cantera/thermo/IdealSolnGasVPSS.h" #include "cantera/thermo/IdealSolnGasVPSS.h"
#include <iostream>
#include <string>
#include <vector>
#include <cstdio> #include <cstdio>
using namespace std; using namespace std;

View file

@ -14,13 +14,11 @@
// class IdealMolalSoln in order to test that it's // class IdealMolalSoln in order to test that it's
// working correctly // working correctly
#include "cantera/thermo/IdealMolalSoln.h"
#include <iostream> #include <iostream>
#include <string> #include <string>
#include <vector> #include <vector>
#include "cantera/Cantera.h"
#include "cantera/thermo/IdealMolalSoln.h"
#include <cstdio> #include <cstdio>
using namespace std; using namespace std;

View file

@ -19,7 +19,6 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "cantera/Cantera.h"
#include "cantera/thermo/IdealSolidSolnPhase.h" #include "cantera/thermo/IdealSolidSolnPhase.h"
#include <cstdio> #include <cstdio>

View file

@ -2,9 +2,10 @@
* *
* @file HMW_graph_1.cpp * @file HMW_graph_1.cpp
*/ */
#include "cantera/Cantera.h"
#include "cantera/thermo.h" #include "cantera/thermo.h"
#include "cantera/thermo/StoichSubstanceSSTP.h" #include "cantera/thermo/StoichSubstanceSSTP.h"
#include "cantera/base/logger.h"
#include "TemperatureTable.h" #include "TemperatureTable.h"

View file

@ -1,11 +1,9 @@
#include "cantera/Cantera.h"
#include "cantera/thermo.h" #include "cantera/thermo.h"
#include "cantera/thermo/WaterSSTP.h" #include "cantera/thermo/WaterSSTP.h"
#include <cstdio> #include <cstdio>
#include <cmath> #include <cmath>
#include <new>
using namespace std; using namespace std;
using namespace Cantera; using namespace Cantera;

View file

@ -5,7 +5,6 @@
// //
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
#include <cantera/Cantera.h>
#include "example_utils.h" #include "example_utils.h"
#include <cantera/equilibrium.h> #include <cantera/equilibrium.h>

View file

@ -1,4 +1,9 @@
#include <cantera/Cantera.h> #include "cantera/base/ctexceptions.h"
#include "cantera/base/global.h"
#include <iostream>
#include <stdlib.h>
using namespace Cantera; using namespace Cantera;
using namespace std; using namespace std;
@ -53,7 +58,7 @@ int main(int argc, char** argv)
fex[i](0); fex[i](0);
cout << endl; cout << endl;
} }
exit(0); return 0;
} else { } else {
example_num = atoi(argv[1]); example_num = atoi(argv[1]);
} }

View file

@ -6,7 +6,6 @@
// //
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
#include <cantera/Cantera.h>
#include <cantera/zerodim.h> #include <cantera/zerodim.h>
#include <cantera/IdealGasMix.h> #include <cantera/IdealGasMix.h>
#include "example_utils.h" #include "example_utils.h"

View file

@ -6,7 +6,6 @@
// //
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
#include <cantera/Cantera.h>
#include <cantera/GRI30.h> #include <cantera/GRI30.h>
#include <cantera/zerodim.h> #include <cantera/zerodim.h>
#include "example_utils.h" #include "example_utils.h"

View file

@ -6,7 +6,6 @@
// //
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
#include <cantera/Cantera.h>
#include <cantera/zerodim.h> #include <cantera/zerodim.h>
#include <cantera/IdealGasMix.h> #include <cantera/IdealGasMix.h>
#include "example_utils.h" #include "example_utils.h"

View file

@ -6,7 +6,6 @@
// //
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
#include <cantera/Cantera.h>
#include <cantera/zerodim.h> #include <cantera/zerodim.h>
#include "example_utils.h" #include "example_utils.h"
#include <cantera/reactionpaths.h> #include <cantera/reactionpaths.h>

View file

@ -6,7 +6,6 @@
// //
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
#include <cantera/Cantera.h>
#include <cantera/transport.h> #include <cantera/transport.h>
#include "example_utils.h" #include "example_utils.h"
#include <cantera/IdealGasMix.h> #include <cantera/IdealGasMix.h>

View file

@ -6,7 +6,6 @@
// //
///////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////
#include <cantera/Cantera.h>
#include <cantera/transport.h> #include <cantera/transport.h>
#include "example_utils.h" #include "example_utils.h"
#include <cantera/equilibrium.h> #include <cantera/equilibrium.h>

View file

@ -10,6 +10,7 @@
// user-friendly. This could be rewritten using class Interface to // user-friendly. This could be rewritten using class Interface to
// make things simpler. // make things simpler.
#include "cantera/kinetics.h"
#include <iostream> #include <iostream>
#include <string> #include <string>
@ -18,18 +19,6 @@
#include <iomanip> #include <iomanip>
using namespace std; using namespace std;
#ifdef DEBUG_HKM
int iDebug_HKM = 0;
#endif
/*****************************************************************/
/*****************************************************************/
#include "cantera/Cantera.h"
#include "cantera/kinetics.h"
using namespace Cantera; using namespace Cantera;
void printDbl(double val) void printDbl(double val)

View file

@ -10,6 +10,7 @@
// user-friendly. This could be rewritten using class Interface to // user-friendly. This could be rewritten using class Interface to
// make things simpler. // make things simpler.
#include "cantera/kinetics.h"
#include <iostream> #include <iostream>
#include <string> #include <string>
@ -18,18 +19,6 @@
#include <iomanip> #include <iomanip>
using namespace std; using namespace std;
#ifdef DEBUG_HKM
int iDebug_HKM = 0;
#endif
/*****************************************************************/
/*****************************************************************/
#include "cantera/Cantera.h"
#include "cantera/kinetics.h"
using namespace Cantera; using namespace Cantera;
void printDbl(double val) void printDbl(double val)

View file

@ -1,6 +1,5 @@
/** /**
* @file runDiamond.cpp * @file runDiamond.cpp
*
*/ */
// Example // Example
@ -10,6 +9,7 @@
// user-friendly. This could be rewritten using class Interface to // user-friendly. This could be rewritten using class Interface to
// make things simpler. // make things simpler.
#include "cantera/kinetics.h"
#include <iostream> #include <iostream>
#include <string> #include <string>
@ -18,18 +18,6 @@
#include <iomanip> #include <iomanip>
using namespace std; using namespace std;
#ifdef DEBUG_HKM
int iDebug_HKM = 0;
#endif
/*****************************************************************/
/*****************************************************************/
/*****************************************************************/
#include "cantera/Cantera.h"
#include "cantera/kinetics.h"
using namespace Cantera; using namespace Cantera;
void printDbl(double val) void printDbl(double val)

View file

@ -10,6 +10,7 @@
// user-friendly. This could be rewritten using class Interface to // user-friendly. This could be rewritten using class Interface to
// make things simpler. // make things simpler.
#include "cantera/kinetics.h"
#include <iostream> #include <iostream>
#include <string> #include <string>
@ -18,18 +19,6 @@
#include <iomanip> #include <iomanip>
using namespace std; using namespace std;
#ifdef DEBUG_HKM
int iDebug_HKM = 0;
#endif
/*****************************************************************/
/*****************************************************************/
/*****************************************************************/
#include "cantera/Cantera.h"
#include "cantera/kinetics.h"
using namespace Cantera; using namespace Cantera;
void printDbl(double val) void printDbl(double val)

View file

@ -1,4 +1,3 @@
#include "cantera/Cantera.h"
#include "cantera/kinetics.h" #include "cantera/kinetics.h"
using namespace Cantera; using namespace Cantera;

View file

@ -17,6 +17,9 @@
// perhaps, later, an analytical solution could be added // perhaps, later, an analytical solution could be added
#include "cantera/transport.h"
#include "cantera/IdealGasMix.h"
#include "cantera/transport/TransportFactory.h"
#include <iostream> #include <iostream>
#include <string> #include <string>
@ -25,21 +28,10 @@
#include <iomanip> #include <iomanip>
using namespace std; using namespace std;
using namespace Cantera;
#define MAX(x,y) (( (x) > (y) ) ? (x) : (y)) #define MAX(x,y) (( (x) > (y) ) ? (x) : (y))
/*****************************************************************/
/*****************************************************************/
#include "cantera/Cantera.h"
#include "cantera/transport.h"
#include "cantera/IdealGasMix.h"
#include "cantera/transport/TransportFactory.h"
using namespace Cantera;
void printDbl(double val) void printDbl(double val)
{ {
if (fabs(val) < 5.0E-17) { if (fabs(val) < 5.0E-17) {

View file

@ -17,6 +17,9 @@
// perhaps, later, an analytical solution could be added // perhaps, later, an analytical solution could be added
#include "cantera/transport.h"
#include "cantera/IdealGasMix.h"
#include "cantera/transport/TransportFactory.h"
#include <iostream> #include <iostream>
#include <string> #include <string>
@ -25,21 +28,10 @@
#include <iomanip> #include <iomanip>
using namespace std; using namespace std;
using namespace Cantera;
#define MAX(x,y) (( (x) > (y) ) ? (x) : (y)) #define MAX(x,y) (( (x) > (y) ) ? (x) : (y))
/*****************************************************************/
/*****************************************************************/
#include "cantera/Cantera.h"
#include "cantera/transport.h"
#include "cantera/IdealGasMix.h"
#include "cantera/transport/TransportFactory.h"
using namespace Cantera;
void printDbl(double val) void printDbl(double val)
{ {
if (fabs(val) < 1.0E-17) { if (fabs(val) < 1.0E-17) {

View file

@ -1,4 +1,3 @@
#include "cantera/Cantera.h"
#include "cantera/kinetics.h" #include "cantera/kinetics.h"
#include <string> #include <string>

View file

@ -3,7 +3,6 @@
#include <cmath> #include <cmath>
#include <sstream> #include <sstream>
#include "cantera/Cantera.h"
#include "cantera/base/PrintCtrl.h" #include "cantera/base/PrintCtrl.h"
#include "base/LogPrintCtrl.h" #include "base/LogPrintCtrl.h"

View file

@ -3,7 +3,6 @@
#include <string> #include <string>
#include <map> #include <map>
#include <cantera/Cantera.h>
#include <cantera/PureFluid.h> // defines class Water #include <cantera/PureFluid.h> // defines class Water
using namespace Cantera; using namespace Cantera;

View file

@ -2,7 +2,6 @@
* Copyright 2002 California Institute of Technology * Copyright 2002 California Institute of Technology
*/ */
#include "cantera/Cantera.h"
#include "cantera/IdealGasMix.h" #include "cantera/IdealGasMix.h"
#include "cantera/equilibrium.h" #include "cantera/equilibrium.h"

View file

@ -1,5 +1,3 @@
#include "cantera/Cantera.h"
#include "cantera/spectra.h" #include "cantera/spectra.h"
#include "spectra/Nuclei.h" #include "spectra/Nuclei.h"
#include <iostream> #include <iostream>

View file

@ -34,9 +34,7 @@ static void printUsage()
} }
#include "cantera/Cantera.h"
#include "cantera/Interface.h" #include "cantera/Interface.h"
#include "cantera/kinetics.h" #include "cantera/kinetics.h"
#include "kinetics/ImplicitSurfChem.h" #include "kinetics/ImplicitSurfChem.h"
#include "kinetics/solveSP.h" #include "kinetics/solveSP.h"

View file

@ -33,18 +33,13 @@ static void printUsage()
} }
#include "cantera/Cantera.h"
#include "cantera/Interface.h" #include "cantera/Interface.h"
#include "cantera/kinetics.h" #include "cantera/kinetics.h"
#include "kinetics/ImplicitSurfChem.h" #include "kinetics/ImplicitSurfChem.h"
#include "kinetics/solveSP.h" #include "kinetics/solveSP.h"
using namespace Cantera; using namespace Cantera;
void printGas(ostream& oooo, ThermoPhase* gasTP, InterfaceKinetics* iKin_ptr, double* src) void printGas(ostream& oooo, ThermoPhase* gasTP, InterfaceKinetics* iKin_ptr, double* src)
{ {
double x[MSSIZE]; double x[MSSIZE];

View file

@ -2,9 +2,8 @@
* Sample program that solves an implicit problem for surface * Sample program that solves an implicit problem for surface
* site fractions. * site fractions.
*/ */
#include "cantera/Cantera.h"
#include <iostream>
#include <iostream>
#include "cantera/IdealGasMix.h" #include "cantera/IdealGasMix.h"
#include "cantera/Interface.h" #include "cantera/Interface.h"