Skip to content

Commit

Permalink
[Transport] Fix to enable 'CK_Mix' and 'CK_Multi' model specifications
Browse files Browse the repository at this point in the history
These model strings were being treated in TransportFactory in a way that
effectively resulted in creation of regular 'Mix' and 'Multi' transport objects.
  • Loading branch information
speth committed Jul 11, 2018
1 parent 333d388 commit 35aa8be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/transport/TransportFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ Transport* TransportFactory::newTransport(const std::string& transportModel,
tr->setThermo(*phase);
} else {
tr = create(transportModel);
tr->init(phase, m_CK_mode[transportModel], log_level);
int mode = m_CK_mode[transportModel] ? CK_Mode : 0;
tr->init(phase, mode, log_level);
}
phase->restoreState(state);
return tr;
Expand Down

0 comments on commit 35aa8be

Please sign in to comment.