surfaceFilmModels::transferModels: Now defaults to a null list for backward-compatibility

This commit is contained in:
Henry Weller
2017-06-27 21:45:53 +01:00
parent d74f354f0c
commit 2a6601e1ca

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2017 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -60,7 +60,10 @@ transferModelList::transferModelList
),
massTransferred_(film.intCoupledPatchIDs().size(), 0.0)
{
const wordList activeModels(dict.lookup("transferModels"));
const wordList activeModels
(
dict.lookupOrDefault("transferModels", wordList::null())
);
wordHashSet models;
forAll(activeModels, i)