Skip to content

Commit

Permalink
Combine default constuctor away
Browse files Browse the repository at this point in the history
  • Loading branch information
jongyoonbae committed Sep 13, 2022
1 parent 3be084c commit 6b0fde4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
15 changes: 7 additions & 8 deletions include/cantera/thermo/CoverageDependentSurfPhase.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,14 @@ namespace Cantera
class CoverageDependentSurfPhase : public SurfPhase
{
public:
//! Default constructor
CoverageDependentSurfPhase();

//! Construct and initialize a CoverageDependentSurfPhase ThermoPhase object
//! directly from an input file
//! @param infile name of the input file
//! @param id name of the phase id in the file. If this is blank, the first
//! phase in the file is used
explicit CoverageDependentSurfPhase(const std::string& infile,
//! directly from an ASCII input file
/*!
* @param infile name of the input file. If blank, an empty phase will be created.
* @param id name of the phase id in the file.
* If this is blank, the first phase in the file is used.
*/
explicit CoverageDependentSurfPhase(const std::string& infile="",
const std::string& id="");

//! Set of parameters modifying SurfPhase enthalpy and entropy based on
Expand Down
11 changes: 3 additions & 8 deletions src/thermo/CoverageDependentSurfPhase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,13 @@ using namespace std;

namespace Cantera
{
CoverageDependentSurfPhase::CoverageDependentSurfPhase():

CoverageDependentSurfPhase::CoverageDependentSurfPhase(const std::string& infile,
const std::string& id_):
m_stateNumlast(-2),
m_theta_ref(1.0)
{
setSiteDensity(1.0);
setNDim(2);
}

CoverageDependentSurfPhase::CoverageDependentSurfPhase(const std::string& infile,
const std::string& id_)
{
CoverageDependentSurfPhase();
initThermoFile(infile, id_);
}

Expand Down

0 comments on commit 6b0fde4

Please sign in to comment.