Took out default parameters for some of the transport initialization
routines. It makes no sense to call these things if you don't have a ThermoPhase already created.
This commit is contained in:
parent
4ee4b4891f
commit
5fd13d3591
2 changed files with 4 additions and 4 deletions
|
|
@ -356,7 +356,7 @@ namespace Cantera {
|
|||
break;
|
||||
#endif
|
||||
default:
|
||||
throw CanteraError("newTransport","unknown transport model");
|
||||
throw CanteraError("newTransport","unknown transport model: " + transportModel);
|
||||
}
|
||||
phase->restoreState(state);
|
||||
return tr;
|
||||
|
|
|
|||
|
|
@ -128,15 +128,15 @@ namespace Cantera {
|
|||
|
||||
/// Build a new transport manager
|
||||
virtual Transport*
|
||||
newTransport(std::string model="", thermo_t* thermo=0, int log_level=0);
|
||||
newTransport(std::string model, thermo_t* thermo, int log_level=0);
|
||||
|
||||
/// Initialize an existing transport manager
|
||||
virtual void initTransport(Transport* tr,
|
||||
thermo_t* thermo=0, int mode=0, int log_level=0);
|
||||
thermo_t* thermo, int mode=0, int log_level=0);
|
||||
|
||||
/// Initialize an existing transport manager for liquid phase
|
||||
virtual void initLiquidTransport(Transport* tr,
|
||||
thermo_t* thermo=0,
|
||||
thermo_t* thermo,
|
||||
int log_level=0);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue