Changed "default" to "generic" for consistency with fvPatchField.

This commit is contained in:
henry
2009-08-04 10:13:01 +01:00
parent 268574393a
commit d217b8bd74
4 changed files with 8 additions and 8 deletions

View File

@ -366,7 +366,7 @@ DebugSwitches
directMappedVelocityFlux 0; directMappedVelocityFlux 0;
directionMixed 0; directionMixed 0;
directional 0; directional 0;
disallowDefaultFvsPatchField 0; disallowGenericFvsPatchField 0;
disallowGenericFvPatchField 0; disallowGenericFvPatchField 0;
disallowGenericPointPatchField 0; disallowGenericPointPatchField 0;
disallowGenericPolyPatch 0; disallowGenericPolyPatch 0;

View File

@ -96,8 +96,8 @@ public:
//- Runtime type information //- Runtime type information
TypeName("fvsPatchField"); TypeName("fvsPatchField");
//- Debug switch to disallow the use of //- Debug switch to disallow the use of genericFvsPatchField
static int disallowDefaultFvsPatchField; static int disallowGenericFvsPatchField;
// Declare run-time constructor selection tables // Declare run-time constructor selection tables

View File

@ -37,9 +37,9 @@ namespace Foam
\ \
defineNamedTemplateTypeNameAndDebug(fvsPatchTypeField, 0); \ defineNamedTemplateTypeNameAndDebug(fvsPatchTypeField, 0); \
template<> \ template<> \
int fvsPatchTypeField::disallowDefaultFvsPatchField \ int fvsPatchTypeField::disallowGenericFvsPatchField \
( \ ( \
debug::debugSwitch("disallowDefaultFvsPatchField", 0) \ debug::debugSwitch("disallowGenericFvsPatchField", 0) \
); \ ); \
defineTemplateRunTimeSelectionTable(fvsPatchTypeField, patch); \ defineTemplateRunTimeSelectionTable(fvsPatchTypeField, patch); \
defineTemplateRunTimeSelectionTable(fvsPatchTypeField, patchMapper); \ defineTemplateRunTimeSelectionTable(fvsPatchTypeField, patchMapper); \

View File

@ -100,9 +100,9 @@ tmp<fvsPatchField<Type> > fvsPatchField<Type>::New
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
if (!disallowDefaultFvsPatchField) if (!disallowGenericFvsPatchField)
{ {
cstrIter = dictionaryConstructorTablePtr_->find("default"); cstrIter = dictionaryConstructorTablePtr_->find("generic");
} }
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())