Bug 1409: Add an attribute "SystemId" to configure the ID for MPI

This commit is contained in:
Hajime Tazaki
2013-04-06 23:08:13 +09:00
parent 346a725240
commit 792e59bf38

View File

@@ -62,6 +62,11 @@ Node::GetTypeId (void)
UintegerValue (0),
MakeUintegerAccessor (&Node::m_id),
MakeUintegerChecker<uint32_t> ())
.AddAttribute ("SystemId", "The systemId of this node: a unique integer used for parallel simulations.",
TypeId::ATTR_GET|TypeId::ATTR_SET,
UintegerValue (0),
MakeUintegerAccessor (&Node::m_sid),
MakeUintegerChecker<uint32_t> ())
;
return tid;
}