dynamicCode: Renamed 'redirectType' to 'name' to clarify the purpose

of the entry which is to provide the name of the generated class.

'redirectType' is supported for backward-compatibility.
This commit is contained in:
Henry Weller
2016-05-18 23:10:42 +01:00
parent 7af20fd9db
commit 83c7e97655
18 changed files with 117 additions and 85 deletions

View File

@ -41,7 +41,7 @@ void Foam::fv::CodedSource<Type>::prepare
word sourceType(pTraits<Type>::typeName);
// Set additional rewrite rules
dynCode.setFilterVariable("typeName", redirectType_);
dynCode.setFilterVariable("typeName", name_);
dynCode.setFilterVariable("TemplateType", sourceType);
dynCode.setFilterVariable("SourceType", sourceType + "Source");
@ -58,7 +58,7 @@ void Foam::fv::CodedSource<Type>::prepare
// debugging: make BC verbose
// dynCode.setFilterVariable("verbose", "true");
// Info<<"compile " << redirectType_ << " sha1: "
// Info<<"compile " << name_ << " sha1: "
// << context.sha1() << endl;
// define Make/options
@ -132,11 +132,11 @@ Foam::fv::option& Foam::fv::CodedSource<Type>::redirectFvOption() const
if (!redirectFvOptionPtr_.valid())
{
dictionary constructDict(dict_);
constructDict.set("type", redirectType_);
constructDict.set("type", name_);
redirectFvOptionPtr_ = option::New
(
redirectType_,
name_,
constructDict,
mesh_
);
@ -157,7 +157,7 @@ void Foam::fv::CodedSource<Type>::correct
<< ">::correct for source " << name_ << endl;
}
updateLibrary(redirectType_);
updateLibrary(name_);
redirectFvOption().correct(field);
}
@ -175,7 +175,7 @@ void Foam::fv::CodedSource<Type>::addSup
<< ">::addSup for source " << name_ << endl;
}
updateLibrary(redirectType_);
updateLibrary(name_);
redirectFvOption().addSup(eqn, fieldi);
}
@ -194,7 +194,7 @@ void Foam::fv::CodedSource<Type>::addSup
<< ">::addSup for source " << name_ << endl;
}
updateLibrary(redirectType_);
updateLibrary(name_);
redirectFvOption().addSup(rho, eqn, fieldi);
}
@ -212,7 +212,7 @@ void Foam::fv::CodedSource<Type>::constrain
<< ">::constrain for source " << name_ << endl;
}
updateLibrary(redirectType_);
updateLibrary(name_);
redirectFvOption().constrain(eqn, fieldi);
}