diff --git a/examples/cxx/Makefile.in b/examples/cxx/Makefile.in index 70f603553..eab28b222 100755 --- a/examples/cxx/Makefile.in +++ b/examples/cxx/Makefile.in @@ -56,7 +56,7 @@ CANTERA_LIBDIR=@buildlib@ CANTERA_LIBS = # the directory where Cantera include files may be found. -CANTERA_INC=-I@ctroot@/build/include/cantera +CANTERA_INC=-I@ctroot@/build/include # flags passed to the C++ compiler/linker for the linking step LCXX_FLAGS = -L$(CANTERA_LIBDIR) @LOCAL_LIB_DIRS@ @CXXFLAGS@ diff --git a/examples/cxx/equil_example1.cpp b/examples/cxx/equil_example1.cpp index 32dd7fcac..928bf87fa 100755 --- a/examples/cxx/equil_example1.cpp +++ b/examples/cxx/equil_example1.cpp @@ -16,12 +16,12 @@ #pragma warning(disable:4503) #endif -#include "Cantera.h" +#include #include #include "example_utils.h" -#include "equilibrium.h" +#include -#include "IdealGasMix.h" +#include //------------------------------------------------------------------- diff --git a/examples/cxx/example_utils.h b/examples/cxx/example_utils.h index 3cab8a8a5..faa6c5963 100755 --- a/examples/cxx/example_utils.h +++ b/examples/cxx/example_utils.h @@ -1,8 +1,8 @@ #ifndef CT_EXAMPLE_UTILS_H #define CT_EXAMPLE_UTILS_H -#include "kernel/Array.h" -#include "kernel/plots.h" +#include +#include // Save the temperature, density, pressure, and mole fractions at one // time @@ -50,7 +50,11 @@ void plotSoln(string fname, string fmt, string title, const G& gas, const A& sol inline void writeCanteraHeader(ostream& s) { s << endl; - s << " Cantera version " << "CANTERA_VERSION" << endl; +#ifdef CANTERA_VERSION + s << " Cantera version " << CANTERA_VERSION << endl; +#else + s << " ???" << endl; +#endif s << " Copyright California Institute of Technology, 2002." << endl; s << " http://www.cantera.org" << endl; s << endl; diff --git a/examples/cxx/examples.cpp b/examples/cxx/examples.cpp index 8fc0b9d23..9c6291c1a 100755 --- a/examples/cxx/examples.cpp +++ b/examples/cxx/examples.cpp @@ -1,5 +1,5 @@ -#include "Cantera.h" +#include //#include "ctexceptions.h" // turn off warnings under Windows @@ -61,7 +61,6 @@ int main(int argc, char** argv) { try { int i = 0; - int job = 2; if (example_num == 0) { int j; for (j = 0; j < NUM_EXAMPLES; j++) { diff --git a/examples/cxx/kinetics_example1.cpp b/examples/cxx/kinetics_example1.cpp index 8509c04dc..dcfcf080d 100755 --- a/examples/cxx/kinetics_example1.cpp +++ b/examples/cxx/kinetics_example1.cpp @@ -16,9 +16,9 @@ #pragma warning(disable:4503) #endif -#include "Cantera.h" -#include "zerodim.h" -#include "IdealGasMix.h" +#include +#include +#include #include #include "example_utils.h" diff --git a/examples/cxx/kinetics_example2.cpp b/examples/cxx/kinetics_example2.cpp index a6fe5b7b3..af4adfa39 100755 --- a/examples/cxx/kinetics_example2.cpp +++ b/examples/cxx/kinetics_example2.cpp @@ -16,9 +16,9 @@ #pragma warning(disable:4503) #endif -#include "Cantera.h" -#include "GRI30.h" -#include "zerodim.h" +#include +#include +#include #include #include "example_utils.h" diff --git a/examples/cxx/rxnpath_example1.cpp b/examples/cxx/rxnpath_example1.cpp index 57e140915..b3c3f6ef9 100755 --- a/examples/cxx/rxnpath_example1.cpp +++ b/examples/cxx/rxnpath_example1.cpp @@ -16,12 +16,12 @@ #pragma warning(disable:4503) #endif -#include "Cantera.h" -#include "zerodim.h" +#include +#include #include #include "example_utils.h" -#include "reactionpaths.h" -#include "IdealGasMix.h" +#include +#include // #include // using namespace std; diff --git a/examples/cxx/transport_example1.cpp b/examples/cxx/transport_example1.cpp index 6e372d75d..508e2fb54 100755 --- a/examples/cxx/transport_example1.cpp +++ b/examples/cxx/transport_example1.cpp @@ -16,11 +16,11 @@ #pragma warning(disable:4503) #endif -#include "Cantera.h" -#include "transport.h" +#include +#include #include #include "example_utils.h" -#include "IdealGasMix.h" +#include template void makeTransportDataLabels(const G& gas, V& names) { diff --git a/examples/cxx/transport_example2.cpp b/examples/cxx/transport_example2.cpp index e37a07b1b..549a237bd 100755 --- a/examples/cxx/transport_example2.cpp +++ b/examples/cxx/transport_example2.cpp @@ -16,12 +16,12 @@ #pragma warning(disable:4503) #endif -#include "Cantera.h" -#include "transport.h" +#include +#include #include #include "example_utils.h" -#include "equilibrium.h" -#include "IdealGasMix.h" +#include +#include template void makeTransportDataLabels(const G& gas, V& names) {