Skip to content

Commit

Permalink
[test_problems] Remove checks for legacy VS versions
Browse files Browse the repository at this point in the history
_MSC_VER < 1900 corresponds to 1800 and earlier, which is
VC++ version 12.0 (Visual Studio 2013). Cantera now uses the C++17
standard, with the current minimum requirement VC++ version 14.1
(Visual Studio 2017).
  • Loading branch information
ischoegl committed Mar 10, 2023
1 parent df5fa54 commit 5cd3d8a
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 45 deletions.
3 changes: 0 additions & 3 deletions test_problems/ChemEquil_ionizedGas/ionizedGasEquil.cpp
Expand Up @@ -11,9 +11,6 @@ using namespace Cantera;

int main(int argc, char** argv)
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
try {
auto sol = newSolution("air_below6000K.yaml");
auto gas = sol->thermo();
Expand Down
3 changes: 0 additions & 3 deletions test_problems/CpJump/CpJump.cpp
Expand Up @@ -14,9 +14,6 @@ using namespace Cantera;

int main(int argc, char** argv)
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
try {
auto sol = newSolution("bad_air.yaml");
auto gas = sol->thermo();
Expand Down
3 changes: 0 additions & 3 deletions test_problems/VCSnonideal/NaCl_equil/nacl_equil.cpp
Expand Up @@ -24,9 +24,6 @@ void printUsage()

int main(int argc, char** argv)
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
suppress_deprecation_warnings();
int numSucc = 0;
int numFail = 0;
Expand Down
3 changes: 0 additions & 3 deletions test_problems/cathermo/HMW_test_1/HMW_test_1.cpp
Expand Up @@ -31,9 +31,6 @@ void pAtable(HMWSoln* HMW)

int main(int argc, char** argv)
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
int retn = 0;

try {
Expand Down
3 changes: 0 additions & 3 deletions test_problems/cathermo/HMW_test_3/HMW_test_3.cpp
Expand Up @@ -31,9 +31,6 @@ void pAtable(HMWSoln* HMW)

int main(int argc, char** argv)
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif

int retn = 0;
try {
Expand Down
3 changes: 0 additions & 3 deletions test_problems/cathermo/VPissp/ISSPTester.cpp
Expand Up @@ -21,9 +21,6 @@ using namespace Cantera;

int main(int argc, char** argv)
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif

try {
double Tkelvin = 1200.;
Expand Down
3 changes: 0 additions & 3 deletions test_problems/cathermo/ims/IMSTester.cpp
Expand Up @@ -20,9 +20,6 @@ using namespace Cantera;

int main(int argc, char** argv)
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif

try {
double Tkelvin = 298.15;
Expand Down
3 changes: 0 additions & 3 deletions test_problems/cathermo/issp/ISSPTester.cpp
Expand Up @@ -21,9 +21,6 @@ using namespace Cantera;

int main(int argc, char** argv)
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif

try {
double Tkelvin = 1200.;
Expand Down
3 changes: 0 additions & 3 deletions test_problems/cathermo/testWaterPDSS/testWaterPDSS.cpp
Expand Up @@ -18,9 +18,6 @@ double tvalue(double val, double atol = 1.0E-9)

int main()
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
double pres;
try {
Cantera::PDSS_Water* w = new PDSS_Water();
Expand Down
3 changes: 0 additions & 3 deletions test_problems/cathermo/testWaterTP/testWaterSSTP.cpp
Expand Up @@ -16,9 +16,6 @@ double tvalue(double val, double atol = 1.0E-9)

int main()
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
double pres;
try {
auto w = newThermo("liquidvapor.yaml", "liquid-water-IAPWS95");
Expand Down
3 changes: 0 additions & 3 deletions test_problems/diamondSurf/runDiamond.cpp
Expand Up @@ -12,9 +12,6 @@ using namespace Cantera;

int main(int argc, char** argv)
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
int i, k;

try {
Expand Down
3 changes: 0 additions & 3 deletions test_problems/mixGasTransport/mixGasTransport.cpp
Expand Up @@ -31,9 +31,6 @@ using namespace Cantera;

int main(int argc, char** argv)
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
try {
auto sol = newSolution("gri30.yaml", "gri30", "Mix");
auto gas = sol->thermo();
Expand Down
3 changes: 0 additions & 3 deletions test_problems/multiGasTransport/multiGasTransport.cpp
Expand Up @@ -39,9 +39,6 @@ static double cutoff(double val, double atol=1.0E-15)

int main(int argc, char** argv)
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
try {
auto sol = newSolution("gri30.yaml", "gri30", "Multi");
auto gas = sol->thermo();
Expand Down
3 changes: 0 additions & 3 deletions test_problems/pureFluidTest/testPureWater.cpp
Expand Up @@ -18,9 +18,6 @@ double tvalue(double val, double atol = 1.0E-9)

int main()
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
double pres;
try {

Expand Down
3 changes: 0 additions & 3 deletions test_problems/surfSolverTest/surfaceSolver.cpp
Expand Up @@ -132,9 +132,6 @@ void printSurf(ostream& oooo,

int main(int argc, char** argv)
{
#if defined(_MSC_VER) && _MSC_VER < 1900
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
string infile = "haca2.yaml";
string gasPhaseName = "gas";
string bulkParticlePhaseName = "soot";
Expand Down

0 comments on commit 5cd3d8a

Please sign in to comment.