typeInfo: Changed typedName to use the type() virtual function
so that the name of the most derived class is used when constructing named fields within the model.
This commit is contained in:
@ -66,14 +66,14 @@ Description
|
||||
ClassNameNoDebug(TypeNameString); \
|
||||
virtual const word& type() const { return typeName; } \
|
||||
template<class Name> \
|
||||
word typedName(Name name) const { return (typeName + ':') + name; }
|
||||
word typedName(Name name) const { return (type() + ':') + name; }
|
||||
|
||||
//- Declare a ClassName() with extra virtual type info
|
||||
#define TypeName(TypeNameString) \
|
||||
ClassName(TypeNameString); \
|
||||
virtual const word& type() const { return typeName; } \
|
||||
template<class Name> \
|
||||
word typedName(Name name) const { return (typeName + ':') + name; }
|
||||
word typedName(Name name) const { return (type() + ':') + name; }
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
@ -47,7 +47,7 @@ runTimeModifiable true;
|
||||
|
||||
cacheTemporaryObjects
|
||||
(
|
||||
SpalartAllmarasDES:LESRegion
|
||||
SpalartAllmarasDDES:LESRegion
|
||||
);
|
||||
|
||||
functions
|
||||
@ -62,7 +62,7 @@ functions
|
||||
|
||||
objects
|
||||
(
|
||||
SpalartAllmarasDES:LESRegion
|
||||
SpalartAllmarasDDES:LESRegion
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user