multiphaseEuler: Corrected file names in model construction error messages

This commit is contained in:
Will Bainbridge
2024-02-08 15:33:22 +00:00
parent 054a5206a4
commit b4b98c1e35

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2015-2023 OpenFOAM Foundation \\ / A nd | Copyright (C) 2015-2024 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -34,11 +34,11 @@ Foam::dictionary Foam::phaseSystem::interfacialDict(const word& name) const
bool found = false; bool found = false;
dictionary dict(name); dictionary dict(name);
// If it is a dictionary then merge it in // If it is a dictionary then use it
if (this->isDict(name)) if (this->isDict(name))
{ {
found = true; found = true;
dict.merge(this->subDict(name)); dict = this->subDict(name);
} }
// Function to add old-format list/table entries // Function to add old-format list/table entries
@ -182,7 +182,7 @@ void Foam::phaseSystem::generateInterfacialModels
if (!names.found(name)) if (!names.found(name))
{ {
names.append(name); names.append(name);
dicts.append(new dictionary(name)); dicts.append(new dictionary(dict.name()));
interfaces.append(interfacePtr.ptr()); interfaces.append(interfacePtr.ptr());
models.append(nullptr); models.append(nullptr);
} }