mirror of
https://github.com/Cantera/cantera.git
synced 2026-08-05 18:57:00 -05:00
Removing the phase check
This commit is contained in:
committed by
Ray Speth
parent
865dec011c
commit
ae40b869ae
+1
-7
@@ -26,13 +26,7 @@ StFlow::StFlow(ThermoPhase* ph, size_t nsp, size_t points) :
|
||||
if (ph == 0) {
|
||||
return; // used to create a dummy object
|
||||
}
|
||||
if (ph->type() == "ideal-gas" || ph->type() == "Redlich-Kwong" ||
|
||||
ph->type() == "Peng-Robinson") {
|
||||
m_thermo = ph;
|
||||
} else {
|
||||
throw CanteraError("StFlow::StFlow", "Unsupported phase type:",
|
||||
"need 'IdealGasPhase' or 'Redlich-Kwong'or 'Peng-Robinson'");
|
||||
}
|
||||
m_thermo = ph;
|
||||
|
||||
size_t nsp2 = m_thermo->nSpecies();
|
||||
if (nsp2 != m_nsp) {
|
||||
|
||||
@@ -13,7 +13,7 @@ class TestOnedim(utilities.CanteraTest):
|
||||
|
||||
def test_badInstantiate(self):
|
||||
solid = ct.Solution("diamond.yaml", "diamond")
|
||||
with pytest.raises(ct.CanteraError, match="Unsupported phase type"):
|
||||
with pytest.raises(ct.CanteraError, match="An appropriate transport model\nshould be set when instantiating"):
|
||||
ct.FreeFlow(solid)
|
||||
|
||||
def test_instantiateSurface(self):
|
||||
|
||||
Reference in New Issue
Block a user