codedFvModel: Removed unnecessary and inconsistent "name" entry
The name of the codedFvModel is now set to the key name of the sub-dictionary in the fvModels dictionary that defines it.
This commit is contained in:
@ -60,8 +60,6 @@ void Foam::fv::codedFvModel::readCoeffs()
|
||||
{
|
||||
fieldName_ = coeffs().lookup<word>("field");
|
||||
|
||||
name_ = coeffs().lookup<word>("name");
|
||||
|
||||
if (fieldPrimitiveTypeName() != word::null)
|
||||
{
|
||||
updateLibrary();
|
||||
@ -89,7 +87,7 @@ void Foam::fv::codedFvModel::prepare
|
||||
const word primitiveTypeName = fieldPrimitiveTypeName();
|
||||
|
||||
// Set additional rewrite rules
|
||||
dynCode.setFilterVariable("typeName", name_);
|
||||
dynCode.setFilterVariable("typeName", name());
|
||||
dynCode.setFilterVariable("TemplateType", primitiveTypeName);
|
||||
dynCode.setFilterVariable("SourceType", primitiveTypeName + "Source");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user