Skip to content

Commit

Permalink
Allow default build with msvc-12.0.
Browse files Browse the repository at this point in the history
Fixes the appearance of C2536 (cannot specify explicit initializer for
arrays). This was preventing a build with msvc_version=12.0. It was
fixed using Visual Studio 2013 (12.0) Update 5.
  • Loading branch information
Evan McCorkle authored and speth committed Oct 21, 2017
1 parent 680d084 commit e921cb8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/thermo/RedlichKwongMFTP.cpp
Expand Up @@ -10,6 +10,8 @@

#include <boost/math/tools/roots.hpp>

#include <algorithm>

using namespace std;
namespace bmt = boost::math::tools;

Expand All @@ -25,21 +27,21 @@ RedlichKwongMFTP::RedlichKwongMFTP() :
m_b_current(0.0),
m_a_current(0.0),
NSolns_(0),
Vroot_{0.0, 0.0, 0.0},
dpdV_(0.0),
dpdT_(0.0)
{
fill_n(Vroot_, 3, 0.0);
}

RedlichKwongMFTP::RedlichKwongMFTP(const std::string& infile, const std::string& id_) :
m_formTempParam(0),
m_b_current(0.0),
m_a_current(0.0),
NSolns_(0),
Vroot_{0.0, 0.0, 0.0},
dpdV_(0.0),
dpdT_(0.0)
{
fill_n(Vroot_, 3, 0.0);
initThermoFile(infile, id_);
}

Expand All @@ -48,10 +50,10 @@ RedlichKwongMFTP::RedlichKwongMFTP(XML_Node& phaseRefRoot, const std::string& id
m_b_current(0.0),
m_a_current(0.0),
NSolns_(0),
Vroot_{0.0, 0.0, 0.0},
dpdV_(0.0),
dpdT_(0.0)
{
fill_n(Vroot_, 3, 0.0);
importPhase(phaseRefRoot, this);
}

Expand Down

0 comments on commit e921cb8

Please sign in to comment.