mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
added remove command
This commit is contained in:
@ -101,7 +101,7 @@ autoPtr<topoSetSource> topoSetSource::New
|
||||
Foam::HashTable<Foam::string>* Foam::topoSetSource::usageTablePtr_ = NULL;
|
||||
|
||||
template<>
|
||||
const char* Foam::NamedEnum<Foam::topoSetSource::setAction, 7>::names[] =
|
||||
const char* Foam::NamedEnum<Foam::topoSetSource::setAction, 8>::names[] =
|
||||
{
|
||||
"clear",
|
||||
"new",
|
||||
@ -109,11 +109,12 @@ const char* Foam::NamedEnum<Foam::topoSetSource::setAction, 7>::names[] =
|
||||
"add",
|
||||
"delete",
|
||||
"subset",
|
||||
"list"
|
||||
"list",
|
||||
"remove"
|
||||
};
|
||||
|
||||
|
||||
const Foam::NamedEnum<Foam::topoSetSource::setAction, 7>
|
||||
const Foam::NamedEnum<Foam::topoSetSource::setAction, 8>
|
||||
Foam::topoSetSource::actionNames_;
|
||||
|
||||
|
||||
|
||||
@ -77,7 +77,8 @@ public:
|
||||
ADD,
|
||||
DELETE,
|
||||
SUBSET,
|
||||
LIST
|
||||
LIST,
|
||||
REMOVE
|
||||
};
|
||||
|
||||
protected:
|
||||
@ -120,7 +121,7 @@ protected:
|
||||
|
||||
private:
|
||||
|
||||
static const NamedEnum<setAction, 7> actionNames_;
|
||||
static const NamedEnum<setAction, 8> actionNames_;
|
||||
|
||||
static const string illegalSource_;
|
||||
|
||||
|
||||
@ -262,6 +262,8 @@ bool cellZoneSet::writeObject
|
||||
{
|
||||
cellZones[zoneID] = addressing_;
|
||||
}
|
||||
cellZones.clearAddressing();
|
||||
|
||||
return ok && cellZones.write();
|
||||
}
|
||||
|
||||
|
||||
@ -356,6 +356,8 @@ bool faceZoneSet::writeObject
|
||||
{
|
||||
faceZones[zoneID].resetAddressing(addressing_, flipMap_);
|
||||
}
|
||||
faceZones.clearAddressing();
|
||||
|
||||
return ok && faceZones.write();
|
||||
}
|
||||
|
||||
|
||||
@ -262,6 +262,8 @@ bool pointZoneSet::writeObject
|
||||
{
|
||||
pointZones[zoneID] = addressing_;
|
||||
}
|
||||
pointZones.clearAddressing();
|
||||
|
||||
return ok && pointZones.write();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user