mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Changed "default" to "generic" for consistency with fvPatchField.
This commit is contained in:
@ -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;
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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); \
|
||||||
|
|||||||
@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user