Browse files

ENH: Added additional 'map' option to basicSource

  • Loading branch information...
1 parent 120f516 commit 0fc5820c2ab27d656c9ab802689ac5e1e126662c andy committed Dec 17, 2012
View
17 src/finiteVolume/cfdTools/general/fieldSources/basicSource/basicSource/basicSource.C
@@ -39,16 +39,17 @@ namespace Foam
template<> const char* NamedEnum
<
basicSource::selectionModeType,
- 4
+ 5
>::names[] =
{
"points",
"cellSet",
"cellZone",
- "all"
+ "all",
+ "map"
};
- const NamedEnum<basicSource::selectionModeType, 4>
+ const NamedEnum<basicSource::selectionModeType, 5>
basicSource::selectionModeTypeNames_;
}
@@ -78,6 +79,10 @@ void Foam::basicSource::setSelection(const dictionary& dict)
{
break;
}
+ case smMap:
+ {
+ break;
+ }
default:
{
FatalErrorIn
@@ -159,6 +164,12 @@ void Foam::basicSource::setCellSet()
break;
}
+ case smMap:
+ {
+ Info<< indent << "- selecting no cells" << endl;
+
+ break;
+ }
default:
{
FatalErrorIn("basicSource::setCellIds()")
View
5 src/finiteVolume/cfdTools/general/fieldSources/basicSource/basicSource/basicSource.H
@@ -74,11 +74,12 @@ public:
smPoints,
smCellSet,
smCellZone,
- smAll
+ smAll,
+ smMap
};
//- Word list of selection mode type names
- static const NamedEnum<selectionModeType, 4> selectionModeTypeNames_;
+ static const NamedEnum<selectionModeType, 5> selectionModeTypeNames_;
protected:

0 comments on commit 0fc5820

Please sign in to comment.