added remove command

This commit is contained in:
mattijs
2009-09-24 23:48:19 +01:00
parent fad330d3f2
commit 7e985f898e
6 changed files with 157 additions and 31 deletions

View File

@ -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_;

View File

@ -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_;

View File

@ -262,6 +262,8 @@ bool cellZoneSet::writeObject
{
cellZones[zoneID] = addressing_;
}
cellZones.clearAddressing();
return ok && cellZones.write();
}

View File

@ -356,6 +356,8 @@ bool faceZoneSet::writeObject
{
faceZones[zoneID].resetAddressing(addressing_, flipMap_);
}
faceZones.clearAddressing();
return ok && faceZones.write();
}

View File

@ -262,6 +262,8 @@ bool pointZoneSet::writeObject
{
pointZones[zoneID] = addressing_;
}
pointZones.clearAddressing();
return ok && pointZones.write();
}