Fixed namespace issues.
This commit is contained in:
parent
fc816aefb6
commit
5d5138c677
7 changed files with 21 additions and 12 deletions
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
using namespace Cantera;
|
||||
using namespace Cantera_CXX;
|
||||
using namespace CanteraZeroD;
|
||||
using namespace std;
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
// utility functions for plotting
|
||||
|
|
|
|||
|
|
@ -5,9 +5,7 @@
|
|||
#include <cantera/kernel/plots.h>
|
||||
|
||||
using namespace Cantera;
|
||||
using namespace std;
|
||||
namespace CanteraZeroD{}
|
||||
using namespace CanteraZeroD;
|
||||
|
||||
// Save the temperature, density, pressure, and mole fractions at one
|
||||
// time
|
||||
|
|
@ -47,22 +45,22 @@ void makeDataLabels(const G& gas, V& names) {
|
|||
}
|
||||
|
||||
template<class G, class A>
|
||||
void plotSoln(string fname, string fmt, string title, const G& gas, const A& soln) {
|
||||
vector<string> names;
|
||||
void plotSoln(std::string fname, std::string fmt, std::string title, const G& gas, const A& soln) {
|
||||
std::vector<std::string> names;
|
||||
makeDataLabels(gas, names);
|
||||
writePlotFile(fname, fmt, title, names, soln);
|
||||
}
|
||||
|
||||
inline void writeCanteraHeader(ostream& s) {
|
||||
s << endl;
|
||||
inline void writeCanteraHeader(std::ostream& s) {
|
||||
s << std::endl;
|
||||
#ifdef CANTERA_VERSION
|
||||
s << " Cantera version " << CANTERA_VERSION << endl;
|
||||
s << " Cantera version " << CANTERA_VERSION << std::endl;
|
||||
#else
|
||||
s << " ???" << endl;
|
||||
s << " ???" << std::endl;
|
||||
#endif
|
||||
s << " Copyright California Institute of Technology, 2002." << endl;
|
||||
s << " http://www.cantera.org" << endl;
|
||||
s << endl;
|
||||
s << " Copyright California Institute of Technology, 2002." << std::endl;
|
||||
s << " http://www.cantera.org" << std::endl;
|
||||
s << std::endl;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
|
||||
using namespace Cantera;
|
||||
using namespace Cantera_CXX;
|
||||
using namespace CanteraZeroD;
|
||||
using namespace std;
|
||||
/**
|
||||
* Same as kinetics_example1, except that it uses class GRI30 instead
|
||||
* of class IdealGasMix.
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
|
||||
using namespace Cantera;
|
||||
using namespace Cantera_CXX;
|
||||
using namespace std;
|
||||
using namespace CanteraZeroD;
|
||||
|
||||
// Kinetics example. This is written as a function so that one
|
||||
// driver program can run multiple examples.
|
||||
|
|
|
|||
|
|
@ -24,9 +24,10 @@
|
|||
#include <cantera/IdealGasMix.h>
|
||||
|
||||
// #include <iostream>
|
||||
// using namespace std;
|
||||
using namespace std;
|
||||
using namespace Cantera;
|
||||
using namespace Cantera_CXX;
|
||||
using namespace CanteraZeroD;
|
||||
|
||||
void writeRxnPathDiagram(double time, ReactionPathBuilder& b,
|
||||
IdealGasMix& gas, ostream& logfile, ostream& outfile) {
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@
|
|||
|
||||
using namespace Cantera;
|
||||
using namespace Cantera_CXX;
|
||||
using namespace CanteraZeroD;
|
||||
using namespace std;
|
||||
|
||||
template<class G, class V>
|
||||
void makeTransportDataLabels(const G& gas, V& names) {
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@
|
|||
|
||||
using namespace Cantera;
|
||||
using namespace Cantera_CXX;
|
||||
using namespace CanteraZeroD;
|
||||
using namespace std;
|
||||
|
||||
template<class G, class V>
|
||||
void makeTransportDataLabels(const G& gas, V& names) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue