From 35aa8be61e8e68907c4d4cff7c625907094c22c0 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Wed, 11 Jul 2018 14:13:16 -0400 Subject: [PATCH] [Transport] Fix to enable 'CK_Mix' and 'CK_Multi' model specifications These model strings were being treated in TransportFactory in a way that effectively resulted in creation of regular 'Mix' and 'Multi' transport objects. --- src/transport/TransportFactory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/transport/TransportFactory.cpp b/src/transport/TransportFactory.cpp index dc193f5d7..f04fb870f 100644 --- a/src/transport/TransportFactory.cpp +++ b/src/transport/TransportFactory.cpp @@ -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;