Changed "default" to "generic" for consistency with fvPatchField.
This commit is contained in:
parent
268574393a
commit
d217b8bd74
@ -366,7 +366,7 @@ DebugSwitches
|
||||
directMappedVelocityFlux 0;
|
||||
directionMixed 0;
|
||||
directional 0;
|
||||
disallowDefaultFvsPatchField 0;
|
||||
disallowGenericFvsPatchField 0;
|
||||
disallowGenericFvPatchField 0;
|
||||
disallowGenericPointPatchField 0;
|
||||
disallowGenericPolyPatch 0;
|
||||
|
@ -96,8 +96,8 @@ public:
|
||||
//- Runtime type information
|
||||
TypeName("fvsPatchField");
|
||||
|
||||
//- Debug switch to disallow the use of
|
||||
static int disallowDefaultFvsPatchField;
|
||||
//- Debug switch to disallow the use of genericFvsPatchField
|
||||
static int disallowGenericFvsPatchField;
|
||||
|
||||
|
||||
// Declare run-time constructor selection tables
|
||||
|
@ -37,9 +37,9 @@ namespace Foam
|
||||
\
|
||||
defineNamedTemplateTypeNameAndDebug(fvsPatchTypeField, 0); \
|
||||
template<> \
|
||||
int fvsPatchTypeField::disallowDefaultFvsPatchField \
|
||||
int fvsPatchTypeField::disallowGenericFvsPatchField \
|
||||
( \
|
||||
debug::debugSwitch("disallowDefaultFvsPatchField", 0) \
|
||||
debug::debugSwitch("disallowGenericFvsPatchField", 0) \
|
||||
); \
|
||||
defineTemplateRunTimeSelectionTable(fvsPatchTypeField, patch); \
|
||||
defineTemplateRunTimeSelectionTable(fvsPatchTypeField, patchMapper); \
|
||||
|
@ -100,9 +100,9 @@ tmp<fvsPatchField<Type> > fvsPatchField<Type>::New
|
||||
|
||||
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
||||
{
|
||||
if (!disallowDefaultFvsPatchField)
|
||||
if (!disallowGenericFvsPatchField)
|
||||
{
|
||||
cstrIter = dictionaryConstructorTablePtr_->find("default");
|
||||
cstrIter = dictionaryConstructorTablePtr_->find("generic");
|
||||
}
|
||||
|
||||
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
||||
@ -120,7 +120,7 @@ tmp<fvsPatchField<Type> > fvsPatchField<Type>::New
|
||||
}
|
||||
}
|
||||
|
||||
if
|
||||
if
|
||||
(
|
||||
!dict.found("patchType")
|
||||
|| word(dict.lookup("patchType")) != p.type()
|
||||
|
Loading…
Reference in New Issue
Block a user