diff --git a/test_problems/VPsilane_test/silane_equil.cpp b/test_problems/VPsilane_test/silane_equil.cpp index 059924da2..a7714b3fd 100644 --- a/test_problems/VPsilane_test/silane_equil.cpp +++ b/test_problems/VPsilane_test/silane_equil.cpp @@ -6,7 +6,6 @@ #include "cantera/equilibrium.h" #include "cantera/thermo/IdealSolnGasVPSS.h" #include "cantera/thermo/ThermoFactory.h" -#include "cantera/base/PrintCtrl.h" using namespace std; using namespace Cantera; @@ -17,7 +16,6 @@ int main(int argc, char** argv) _set_output_format(_TWO_DIGIT_EXPONENT); #endif try { - PrintCtrl::GlobalCrop = PrintCtrl::GCT_CROP; Cantera::IdealSolnGasVPSS gg("silane.xml", "silane"); ThermoPhase* g = ≫ //ThermoPhase *g = newPhase("silane.xml", "silane"); diff --git a/test_problems/stoichSolidKinetics/stoichSolidKinetics.cpp b/test_problems/stoichSolidKinetics/stoichSolidKinetics.cpp index fa9300e2c..af077985a 100644 --- a/test_problems/stoichSolidKinetics/stoichSolidKinetics.cpp +++ b/test_problems/stoichSolidKinetics/stoichSolidKinetics.cpp @@ -3,20 +3,22 @@ #include "cantera/thermo/MargulesVPSSTP.h" #include "cantera/thermo/IonsFromNeutralVPSSTP.h" #include "cantera/IdealGasMix.h" -#include "cantera/base/PrintCtrl.h" #include +#include +#include using namespace Cantera; using namespace std; -Cantera::PrintCtrl pc; +std::stringstream ss; void printValue(const std::string& label, double value) { - std::cout << label; - pc.pr_de(value, 4, 13); - std::cout << std::endl; + ss.str(""); + ss.clear(); + ss << std::setw(13) << value; + std::cout << label << ss.str() << std::endl; } void printRates(InterfaceKinetics& iKin) @@ -40,6 +42,7 @@ void printRates(InterfaceKinetics& iKin) void testProblem() { + ss << std::scientific << std::setprecision(3) << std::uppercase; XML_Node xc; ctml::get_CTML_Tree(&xc, "ReactionSurf.xml"); XML_Node* xg = xc.findNameID("phase", "reaction_surface");